-
Notifications
You must be signed in to change notification settings - Fork 424
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. |
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. |
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. |
If you above Android 13 there is no way to access The only possible way is root. |
@DerGoogler There is a way to do it via SAF, developer of Material Files just hasn't implemented it. Amaze File Manager works well for this case. Tested on my Pixel 6 Android 13, January 2023 security update You can access it via adb as well, if you don't have or want root. |
You can create shortcuts that open DUI directly to any folder you want. But it's a bit of a manual process because no app developer has come along to make it easy.One app you can use is Shortcut Maker, by Rushikesh Kamewar, from the Play Store. Other apps that let you build an android intent will also work. The above will open the folder containing downloaded podcasts for AntennaPod (assuming it exists). The key takeaways are you are sending an action.VIEW intent, and the filepath is in the Data section. It expects a URI format and externalstorage is the document provider. %3A is like / for root of sdcard, and %2F is like / for every folder after sdcard. Mime type makes sure DUI sees the intent and the flags I chose are important to create a fresh window every time you use the shortcut. If you didn't know it already DUI can have many many windows and if you don't create a fresh one the last one you interacted with might grab the intent but not follow the path you gave it. The package name and class are optional. They skip the open-with dialogue. Otherwise some apps, like Material Files, will offer to open this kind of intent but they always fail. |
I wonder if I can help in any way? I find DUI to be pretty good for 80% of file manager tasks I do. What are you wanting to do with it? There are non-obvious tricks and methods sometimes. But for sure it lacks some seemingly basic stuff. |
Need some help. I had android/data working when i used external storage and then it directed it me straight to data. But now that i reset my phone, i can't get it to work anymore. Zarchive redirects me to data and obb by itself when i tried just now but nothing here. |
Simply on Android 14 the method used before doesn't work anymore. If you updated from Android 13 to 14 then the app retain the permission to folders you previously permitted. If you install the app ex-novo, reset it, or you want to access a folder into android/data that you never permitted to, for now seems you can't. You can still access android/data with a PC or through ADB, or with the default file manager although lacking many features |
Forgot to say that I'm on Android 12 still. |
@unOmni then you can try MiXplorer, Solid Explorer, Xplore, they should be able to access android/data Edit: I must correct myself because I found the solution. Simply uninstall the updates of the default Files app. Doing so the functionality is restored even in Android 14! |
I tried that before just some hours ago but nothing worked. It's actually the reason a reset my phone just so I don't have to see the default Files app that appeared after removing it's updates. |
So, just to be sure:
|
|
Perfect! Unfortunately the Material Files dev hasn't implemented the workaround so you need to keep using MiXplorer. In case you want a more pleasant theme for MiXplorer I suggest you this: https://github.com/DerTyp7214/MixplorerThemeCreator Or this one: https://github.com/jamal2362/MiX-Monet-Generator |
Alright. I'll stick with MX for now. |
If the material files Devs listening right now then I have a way to do this Using Shizuki the root replacement |
Zarchiver also let's you use shizuku root mode would that be possible here? |
I have discovered an another method to view files and subfolders under Android/data directly within the MaterialFiles app. Here are the steps:
P.S. I've noticed that some people, like @DerGoogler, aren't fans of MT Manager, possibly due to its reputation. I don't particularly like MT Manager either, but it's the easiest way to achieve this. As an alternative, you can use other apps that can access Android/data and start a local server simultaneously, such as Termux. The server must support at least one of the following protocols: FTP, SFTP, or WebDAV. Other less recommended but possible solutions include running MT Manager in a virtual machine like VMOS or using a cracked version of MT Manager (Telegram: @SlxshMods, @Modder_Hub, @Unpack_Dex). |
Biggest red-flag |
TCL的SmartTV里连DocumentsUI都没有,怎么搞?现在Material Files只能看到系统目录,无法增加外部存储;adb shell可以看到/sdcard ,但无法cp任何文件,也无法chmod。 |
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: