Android 11 and access to android/data folder

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
srksrk 68
Newbie
Posts: 24
Joined: Fri Jul 19, 2019 8:10 pm
Contact:

Android 11 and access to android/data folder

#1 Post by srksrk 68 » Thu Dec 17, 2020 8:39 pm

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.

User avatar
rayminator
Miko-Class Veteran
Posts: 598
Joined: Fri Feb 09, 2018 12:05 am
Projects: Redoing games to fix spelling mistakes other companys that don't care
Location: Canada
Contact:

Re: Android 11 and access to android/data folder

#2 Post by rayminator » Thu Dec 17, 2020 9:04 pm

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
when I try to help someone I point them into 2 direction what's right and wrong so they can learn how to

srksrk 68
Newbie
Posts: 24
Joined: Fri Jul 19, 2019 8:10 pm
Contact:

Re: Android 11 and access to android/data folder

#3 Post by srksrk 68 » Sat Dec 19, 2020 7:19 am

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.

User avatar
PyTom
Ren'Py Creator
Posts: 15662
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

#4 Post by PyTom » Sat Dec 19, 2020 9:19 pm

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
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

srksrk 68
Newbie
Posts: 24
Joined: Fri Jul 19, 2019 8:10 pm
Contact:

Re: Android 11 and access to android/data folder

#5 Post by srksrk 68 » Tue Dec 22, 2020 9:25 am

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.

User avatar
rayminator
Miko-Class Veteran
Posts: 598
Joined: Fri Feb 09, 2018 12:05 am
Projects: Redoing games to fix spelling mistakes other companys that don't care
Location: Canada
Contact:

Re: Android 11 and access to android/data folder

#6 Post by rayminator » Tue Dec 22, 2020 10:07 am

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
when I try to help someone I point them into 2 direction what's right and wrong so they can learn how to

emanuel
Newbie
Posts: 12
Joined: Fri Dec 25, 2020 8:44 am
Contact:

Re: Android 11 and access to android/data folder

#7 Post by emanuel » Fri Dec 25, 2020 10:17 am

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.

srksrk 68
Newbie
Posts: 24
Joined: Fri Jul 19, 2019 8:10 pm
Contact:

Re: Android 11 and access to android/data folder

#8 Post by srksrk 68 » Sat Feb 20, 2021 6:19 am

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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]