Page 1 of 1

Android 11 and access to android/data folder

Posted: Thu Dec 17, 2020 8:39 pm
by srksrk 68
Hello,

until recently I was able to access the android/data folder of Ren'py games without problems using Anrdroid's file manager. I used this to install mods or to access the saves folder.

However, Android 11 changed the permissions so that basically no legal access to that folder is possible any more, even not for file managers. There is a complicated inofficial way with an internal filemanager (which is supposed to become obsolete in the foreseeable future), or via USB if you have access to a PC. However, not all of us have, and you cannot access secure folders like on Samsung devices via USB.

Is there a possibility to deal with this restriction? Especially not being able to share your saves migh be an issue, but also mod development will be no longer possible.

Re: Android 11 and access to android/data folder

Posted: Thu Dec 17, 2020 9:04 pm
by rayminator
this has nothing to do with renpy it has something to do with android

you might have gain access with developer mode in android or you might have wait for a rooted patch for it

Re: Android 11 and access to android/data folder

Posted: Sat Dec 19, 2020 7:19 am
by srksrk 68
I am not asking for a way around the restriction to android/data. But it might be an option to make Ren'py look into some other publically accessible folder like some other apps do, e.g. a folder renpy/<game> on the internal memory or sd card. After all, it's not an option to ask a gamer to root his device just to install a mod or transfer his saves.

Re: Android 11 and access to android/data folder

Posted: Sat Dec 19, 2020 9:19 pm
by PyTom
I'm not sure why this would need to be added to Ren'Py. You could add this to your own game - just have it search the sdk card for .rpym files, and load them in.

Re: Android 11 and access to android/data folder

Posted: Tue Dec 22, 2020 9:25 am
by srksrk 68
The thing is, as I understand, that the idea behind putting stuff (mods, saves) into the android/data folder was that this folder was publically accessible. It no longer is, so there should be another option. Also, I am not modding my own game here. I want to install mods to games I did not make. And I want to transfer saves.

Re: Android 11 and access to android/data folder

Posted: Tue Dec 22, 2020 10:07 am
by rayminator
as I said before it's on android side it's about folders permission (a security protection layer that android put in place to protect you from virus and that) the only other way to get by this is if the dev of that game that you want to mod that if he wrote a script that allows you to add mods to it or root your phone that's the only way to get full access

Re: Android 11 and access to android/data folder

Posted: Fri Dec 25, 2020 10:17 am
by emanuel
It may be worth pointing out that save games are not secure, so it might not be a good idea to have your game scan the sd card. If it loads the wrong file, it can execute arbitrary code.

Re: Android 11 and access to android/data folder

Posted: Sat Feb 20, 2021 6:19 am
by srksrk 68
To all who are affected as well and still search for a solution: it appears that meanwhile some Android File Managers can overcome this restriction and access/write to the Android/data folder.