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.
Android 11 and access to android/data folder
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
- Miko-Class Veteran
- Posts: 793
- Joined: Fri Feb 09, 2018 12:05 am
- Location: Canada
- Contact:
Re: Android 11 and access to android/data folder
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
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
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.
- PyTom
- Ren'Py Creator
- Posts: 16093
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Android 11 and access to android/data folder
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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Android 11 and access to android/data folder
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.
-
- Miko-Class Veteran
- Posts: 793
- Joined: Fri Feb 09, 2018 12:05 am
- Location: Canada
- Contact:
Re: Android 11 and access to android/data folder
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
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
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.
Who is online
Users browsing this forum: No registered users