Ren'Py Android build doesn't ask for runtime permission

Tacito

Forum Fanatic
Jul 15, 2017
5,550
46,647
I have modified main.py in renpy sdk 7-3-5 in order to save in a folder like ... os.path.join("//sdcard//Android//data//RenPy", save_directory)
When I build the apk all is ok , but when I install it I have to manually enable write external memory ... and so it works.

There is a way to edit renpy/rapt/gradle in order that the apk builded , automatically ask for Write memory permission ?
 
Last edited:

Rich

Old Fart
Modder
Donor
Respected User
Game Developer
Jun 25, 2017
2,566
7,382
You need to use a modified version of the AndroidManifest.xml file.

The RAPT stuff generates multiple copies of this under rapt/project. I'm not 100% sure which one you should edit, but I'm guessing either the one in rapt\project\renpyandroid\src\main or the one in rapt\project\app\src\main. The others then might be cloned from one of those...
 
  • Like
Reactions: Tacito

Tacito

Forum Fanatic
Jul 15, 2017
5,550
46,647
The manifest seems ok.
I think one have to edit some Java file in gradle folder ... or at least it seems so looking to other apk that works :)
 
Last edited: