I would like to read Android/data so I can extract documents for backup purposes. Android 11 has changes that prohibit/limit this, but is it still possible? I don't want to use the legacy-approach (if possible).
According to this Manage all files on a storage device which talks about the MANAGE_EXTERNAL_STORAGE
permission it seems Google claims it should now be impossible (at least with this method):
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.
https://developer.android.com/training/data-storage/manage-all-files https://developer.android.com/about/versions/11/privacy/storage#other-apps-data
Here storage#other-apps-data Google also says that apps can no longer access other apps Android/data
Access to app-specific directories on external storage On Android 11, apps can no longer access files in any other app's dedicated, app-specific directory within external storage.
Here on stackoveflow Thoryia shows us how to ask for the permission.
But can we use it (or any other method) to read those forbidden other app-data folders, Android/data/* ?
The Android app 'Total Commander' does it (on Android 11), and it seems to be using the StorageAccessFramework Intent Intent.ACTION_OPEN_DOCUMENT_TREE
to access the files (a guess based on the gui that pops up), but I havn't managed to figure out how to get that working either. Its possible Total Commander use a legacy-approach.
Pr request I've screenshots of Total Comander (TC) here on my OneDrive.
I strongly suspect TC just uses the target-29 access method, I found a list of its permissions here but cannot find which version it targets: Aptoide: TC v3.21