MaterialFiles icon indicating copy to clipboard operation
MaterialFiles copied to clipboard

Alternative method of accessing data and obb

Open SodaWithoutSparkles opened this issue 3 years ago • 10 comments

So I use material files and unable to access Android/data and Android/obb. But today another redditor told me he was able to get it to work with Mixplorer. I kinda figured out how it did this. Here is the recording:

https://user-images.githubusercontent.com/64138578/211184012-80819449-ad81-4890-a3e1-87eca17c2833.mp4

You can see that I can have access to individual dirs in Android/data and Android/obb, but not Android/data and Android/obb,

The problem is that Android blocks RW access to Android/data and Android/obb, but not RW access to Android/data/* and Android/obb/*. So material files can access Android/data/app.revanced.manager.flutter, for example, but not Android/data.

So we just need to ask SAF to give access to Android/data/<package_name> and Android/obb/<package_name>. But how can we get the package names? You can see that Mixplorer asks for the permission for listing the installed apps, thats how it gets the name of installed packages. You can also see I allowed it to query installed packages twice, possibily for Android/data and Android/obb respectively.

I hope Material files can also implement this.

Mixplorer Download Mixplorer

In the meantime, you could use material files to add another storage to Android/data and Android/obb by asking Mixplorer to grant the permission via SAF.

SodaWithoutSparkles avatar Jan 08 '23 06:01 SodaWithoutSparkles

Related: #892 #881 #852 #611

SodaWithoutSparkles avatar Jan 08 '23 07:01 SodaWithoutSparkles

This is a known issue in Android and will be fixed in the near future, so trying to have this ugly hack won't make sense for too long. The only right solution should be invoking DocumentsUI itself to let the user manage files with DocumentsUI if they want to touch those directories.

zhanghai avatar Jan 08 '23 15:01 zhanghai

Oh that makes sense.

SodaWithoutSparkles avatar Jan 08 '23 22:01 SodaWithoutSparkles

So, now do that on Android 13

DerGoogler avatar Jan 26 '23 21:01 DerGoogler

I think RikkaApps/Shizuku should be a viable alternative compare to the SAF hack.

JasonHK avatar Feb 09 '23 14:02 JasonHK

并没有找到能够跳转 Android/data/*Android/obb/* 的方式,系统在提示父目录没有权限之后就不能再往里跳转了。建议能够实现像muPDF那种功能,感觉界面很相似,但是muPDF浏览起来很直观方便。 Screenshot_20230318_174631

cjliux avatar Mar 18 '23 09:03 cjliux

@cjliux 是应用要请求data或obb的子目录。应用请求data目录会查找不到子目录,所以是进不了的。你可以理解为应用没有读取data目录权限(即无法知道有什么子目录)但可以在请求之后读取data子目录。

SodaWithoutSparkles avatar Mar 19 '23 16:03 SodaWithoutSparkles

I think shizuku would be viable now with the security fix breaking allowing perms to the Android directory.

Xynonners avatar May 18 '23 15:05 Xynonners

https://github.com/rayshift/nextgenfs

soredake avatar Feb 26 '24 10:02 soredake

2025, almost 2026, why is there still no android/data access in material files

shawchip avatar Oct 09 '25 17:10 shawchip