nineteendo / pyvz2

PyVZ2 is a command line utility to modify PvZ2
GNU General Public License v3.0
47 stars 7 forks source link

PermissionError: [Errno 131 Permission denied: '/storage/emulated/0 /Android/obb/com.ea.game.pvz2_row (1)' #12

Open nineteendo opened 2 years ago

nineteendo commented 2 years ago

On android 11 Pydroid 3 doesn't have access to the OBB Directory. Currenty searching for a solution.

YingFengTingYu commented 2 years ago

you can see https://www.sohu.com/a/479611641_121124367

nineteendo commented 2 years ago

Well the issue is namely figuring out how to give Pydroid 3 or another Python IDE permission to "/storage/emulated/0 /Android/" as it's different from the storage permission. If that doesn't work it may be necessary to build an app that asks for that permission ...

YingFengTingYu commented 2 years ago

Hello! I use C# and MAUI to edit the file in /sdcard/Android/data and /sdcard/Android/obb. Maybe you can refer to my code. The code is to read and write pvz data. It's same as reading or writing files in /sdcard/Android/obb. I haven't studied python, so I can only give c# code to you. https://github.com/YingFengTingYu/MAUI-get-Android-data-file-in-Android11