New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow android/data access even without root #611
Comments
|
Another duplicate - Please use Add storage -> External storage. |
|
That has never worked for me. Once DocumentsProvider appears, browsing into Android folder, only shows 1 folder named media, with a message above saying Can't use this folder. I was referring to using SAF to directly grant it access to Android/data, no need of manually going into different section of the app, even if above did work. I've already seen an issue thread mentioning Add Storage -> External storage method. |
Works for me. Only Android/media folder is visible, but I can select the parent Android folder. |
|
How to acces SAF?. Pls help
|
Hamburger menu > Add storage > External storage > Navigate to |
A million thanks |
Unfortunately, this doesn't work for me in Android 12. I can't grant access to the |
|
You can use the folder "Android' |
I can't give access to the If someone knows of another workaround, please let me know. However it seems that the method of using 'Add storage' -> 'External storage' doesn't work in Android 12 because of new security/privacy restrictions. Neither As @dhammel pointed out, Amaze file manager can access (Additionally I noticed that Amaze file manager needs 'Special app access' -> 'Access to all files'. Maybe this is required to make it work in Android 12?) I'd appreciate if @zhanghai could verify my findings and maybe reopen the issue if appropriate. Also I'm happy to provide more information and test things out if that would help in any way. |
|
Oh, so Amaze is already directly asking the folder. I'll do the same then. |
|
Added into the codebase and will be available in the next release. Note that there are other issues to resolve in order to release a new version, including #384, so it will not come very quickly. |
|
https://drive.google.com/file/d/1hFjDjUsJ6rjCv4tqyhUIthBEkVFagQTV/view?usp=drivesdk |
|
It is known that some version of |
|
That's great news! Thank you for your awesome work! |
|
@unilock You are opening the directory directly in your screenshot, which is expected to not work. You need to use "Add storage" in navigation drawer, and then select "Android/data". Note that even this is expected to stop working on a future Android version or security update. |
|
@zhanghai Doing so opens DUI at |
|
Then you've got the security fix and there's no good way around it. You can still use DUI to manage those files though. |
|
@zhanghai ZArchiver can access Any plans for a settings backup feature...? |
|
I tried ZArchiver, and when openning So I don't think ZArchiver has any magic here either - you probably just have granted the access before your DUI is updated with security fix, and if you clear data for ZArchiver so that it loses the previously granted access, it probably won't be able to get the access back now. For the same reason, I don't think reinstalling Material Files will do you any good for this DUI restriction. That being said, the intructions for backing up settings for this app can be found at #523 (comment) . |
ZArchiver's workaround still works; I just tested it again after clearing its app data, on Android 13 Beta 2. Example (after opening the app for the first time): Resetting Material Files' app data didn't help, either. Same problem as in one of my previous comments - selecting "Add storage..." -> "Android/data" opens DUI at |
|
I see, ZArchiver probably hacked around the previous imperfect security fix that prevents opening DUI with |
|
@zhanghai Fair enough. I guess the only "official" way to access |
|
I think so (it's not intended to be readable to third-party file managers), but you can also just use DocumentsUI directly. |
|
@zhanghai Ohh, I didn't know you could open DUI directly. Thanks! |
|
Now i can see all the nested folders inside |
|
Why can't I just grant access to the folders android/data and android/obb when I try to access them on android 11 Lineage OS for microg like other file explorers? Using add external storage option and navigating to android/data and android/obb and granting access works fine for internal storage but not SD card. Why is this the case? Hope I'm not a bother and thanks for all your hard work. |
|
Android 13 can't choose android/data folder? |
|
FV file |
|
The subdirectory hack is a known issue and has been reported, so it will be fixed in the future. I'm tired of playing such a cat & mouse game so if you want to access Android/data, please just use the built-in DocumentsUI for that. |
I can understand. Documents UI however is just horrible for serious file management |
Adding this shortcut doesn't launch the android data path for me but rather the download folder. |





dhammel commentedOct 29, 2021
Hello,
when I was messing with my new pixel 6 prior to rooting it, I realized MaterialFiles (unlike Amaze File Manager), doesn't have access to Apps External Storage, located (on pixel's at least): /storage/emulated/0/Android/data
this now either requires root, or to trigger it via SAF which would prompt a system dialog used to select that folder, to give MaterialFiles access to it, no root needed. It's the method amaze file manager uses.
Would you be open to implement SAF, to address this issue for non-root users?
The text was updated successfully, but these errors were encountered: