2

Is there any way at all aside from rooting to gain access to the SD card's android/data directory on Android 11? My (non-play store) app requires access to another app's public Android/data/com.appname folder.

1

2 Answers 2

2

You can't

On Android 11, apps can no longer access files in any other app's dedicated, app-specific directory within external storage.

Even using MANAGE_EXTERNAL_STORAGE won't help

Apps that are granted this permission still cannot access the app-specific directories that belong to other apps because these directories appear as subdirectories of Android/data/ on a storage volume.

Unless, the other application set those files sharable

To allow other apps to access files stored in this directory within internal storage, use a FileProvider with the FLAG_GRANT_READ_URI_PERMISSION attribute.

For more Sharing files

Sign up to request clarification or add additional context in comments.

Comments

0

As of October 2021, Google has updated android and any existing method is no longer possible. You can voice your concern about Google removing user access to folders on their own devices here: https://issuetracker.google.com/issues/196422354?pli=1

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.