[Scummvm-tracker] [ScummVM :: Bugs] #12727: ANDROID: Allow Save location in SDcard (Write permission on SD)
ScummVM :: Bugs
trac at scummvm.org
Mon Jul 12 11:09:37 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 antoniou79):
I see. I don't get this error on my phone. I can set a path on the SD card
(eg. within a path like eg. selecting something under the shortcut for my
SD card
/storage/5D9C-C55C/games/Blade Runner/saves).
There is a warning popup prompt there; "Saved games sync doesn't work with
non-default directories", and that is necessary, but it won't revert my
custom path to default. It's just that later on, the save process will
still fail after granting SAF permissions (the bug that I can reproduce)
Yes, I have one or two applications that use SAF. The ones I've seen both
urge the user to pick the root folder of the SD card but I am unsure if
they allow picking something else (a child folder in the tree).
ScummVM will popup a message recommending the user does this too (pick the
root) but it does allow picking a folder in the tree. Problem is, now that
I have checked again, both of these cases do have issues, at least with
save games (tested in Blade Runner).
ScummVM acquires the permission and keeps the token, but for some reason
writing the save game still fails. On the first case (root folder level
permission, an empty (awry) save game is created, and on the second one no
file is created whatsoever. So, like I've said, this also needs more
testing and fixing.
ScummVM has more cases of writing to storage, than just save games. Like I
wrote, this feature was primarily tested for the LAN server feature. The
idea is whenever ScummVM tries to access something that it has no write
permissions on, SAF will fire up and allow the user to grant the
permission -- pretty much as SAF is intended to be used. Of course the
user can always choose the root folder and be done with this, but that is
typically considered not a good security practice. Probably not with
ScummVM in mind, but still.
--
Ticket URL: <https://bugs.scummvm.org/ticket/12727#comment:7>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list