Skip to content
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

Alternative method of accessing data and obb #899

Open
SodaWithoutSparkles opened this issue Jan 8, 2023 · 9 comments
Open

Alternative method of accessing data and obb #899

SodaWithoutSparkles opened this issue Jan 8, 2023 · 9 comments

Comments

@SodaWithoutSparkles
Copy link

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:

Screenrecorder-2023-01-08-14-44-59-544.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
Copy link
Author

SodaWithoutSparkles commented Jan 8, 2023

Related: #892 #881 #852 #611

@zhanghai
Copy link
Owner

zhanghai commented Jan 8, 2023

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.

@SodaWithoutSparkles
Copy link
Author

Oh that makes sense.

@DerGoogler
Copy link

So, now do that on Android 13

@JasonHK
Copy link

JasonHK commented Feb 9, 2023

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

@cjliux
Copy link

cjliux commented Mar 18, 2023

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

@SodaWithoutSparkles
Copy link
Author

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

@Xynonners
Copy link

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

@soredake
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants