[Scummvm-tracker] [ScummVM :: Bugs] #12727: ANDROID: Allow Save location in SDcard (Write permission on SD)

ScummVM :: Bugs trac at scummvm.org
Mon Jul 12 10:54:23 UTC 2021


#12727: ANDROID: Allow Save location in SDcard (Write permission on SD)
-------------------------------------------------+-------------------------
Reporter:  LukasThyWalls                         |       Owner:  (none)
    Type:  feature request                       |      Status:  new
Priority:  normal                                |   Component:  Port:
                                                 |  Android
 Version:                                        |  Resolution:
Keywords:  Android, SDCard, Write permission,    |        Game:
  Savegames, Feature request                     |
-------------------------------------------------+-------------------------
Comment (by LukasThyWalls):

 Ok, i have started to see something:
 \\
 > - You will *not* see the System File Picker upon setting the Save Game
 path.
 OK, i get it. But If i try to set a game path in SDcard, it throws me the
 error it can't write, and after that it still says "Default" as save game
 path. I can't choose anything in the SDcard to set any directory...
 > - You should see the System File Picker, if you had previously set a
 Save Game path that requires SAF permission, and you are currently trying
 to actually Save a game there.
 .. and then try to save a game because it will goint to save it to
 "default"!
 > - You will *not* see the System File Picker, if at some point during the
 app's lifetime, you saw it and set a permission using it which covers the
 current access request (to save a game).
 But then it will work. But i can't choose the directory anyway.
 > - You should see the System File Picker again, if ScummVM tries to save
 / write something to a path that is not covered by previously allowed
 permissions.
 That's why i tried to pick the sdcard root, but if ScummVM need to try to
 save to bring the system picker, first you need to choose that directory
 in options, and i can't.

 > I am also not sure if clearing the permissions for the app, also clears
 the SAF permissions (I think it might not).
 >
 > Currently, the most certain way to clear those (SAF tokens/permissions)
 is to either uninstall the app and then reinstall it, or to delete its
 data (from Android's App Management) -- which is very similar to
 uninstalling and reinstalling and wipes Added games, configuration and any
 saved games from internal memory).

 I tried, and it asks for storage permissions. I can't confirm the other
 because i think it didn't take the SAF permissions at any moment.

 > **But to get to the important point**: Are you saying that you were
 getting the error message upon setting the path in the Misc Options tab
 and not upon actually trying to save a game? If so, this is very helpful,
 because I was looking elsewhere -- and while there's certainly a bug
 elsewhere, I didn't understand that the problem reported was occurring
 earlier.

 Summarizing: The error appears when i try to set the save game path to
 anywhere in the SD, i pick it in the ScummVM file browser, and then it pop
 up. The second part of the issue is after try to set that and it throw the
 error, the save game is still "default", so i can't choose any path in the
 SD and later try to save a game there.

 ----

 I want to point out the examples of two apps using SAF in my phone:
 * SyncMe Wireless: It have two options in options, "Obtain sd card
 permissions" and "Revoke sd card permissions". If you choose Obtain, it
 brings the system file picker and it want to choose the sdcard root, it
 didn't allow anything else. Since then, you can choose any sdcard
 directory inside the app.
 * NewPipe: To download videos/audios in the SDcard, you need to choose the
 directory in options, when you try to choose the directory, it brings the
 system picker and you can choose where you want, and with the picked
 directory you have the SAF permissions altogether.

 What i was expecting is when you choose the save game path with the
 ScummVM file browser and press "Choose", if it has write permissions
 nothing everything is ok, but it hasn't bring the system picker to choose
 that directory to take permissions.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/12727#comment:6>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list