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

ScummVM :: Bugs trac at scummvm.org
Mon Jul 12 18:20:03 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):

 I need to point this:

 >>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 going to save it to
 "default"!

 When it shows the popup with the it can't write, the path is not set to
 "default", it simply is not changed and it shows the same used. I need to
 said that to clarify, i was testing some paths (ScummVM's Android/Data in
 internal storage and SDcard, in ScummVM's /data/user/, anywhere in the
 internal storage) and as it should they work.

 >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.

 I understand the SAF needs to be fired up when ScummVM is trying to
 create/moving something where it hasn't the permissions, and it's a good
 idea, but i saw not firing it up when you choose the save folder strange,
 because it will pop out in the middle of the game when you are saving in
 it (although it only happens once). It's seems more natural in that way,
 although it does again when is going to do something.
 And then it can also be coded the revoke of the permission if you change
 the folder in settings.
 Also choose only the folder for the SAF is the safe measure, for sure.

 \\
 If a can do anything more to test, tell me.

 -----

 >There is a warning popup prompt there; "Saved games sync doesn't work
 with non-default directories", and that is necessary
 Well... i was thinking to use too the sync save games but with the
 directory i want to choose this i think i could not.
 Thinking out how the LAN Server works, i suppose that is because ScummVM
 syncs everything in that folder whatever is there, so is a bit concerning
 about security.
 I know this is pretty off-topic, but both ScummVM cloud sync and ScummVM
 LAN Server work for sure but both seems like it could be more and with
 need of a bit of further work, because the LAN server is just a server
 that you can share everything, and entire disc of unrelated ScummVM data
 if you want, you can see the potential but also is a very generic...
 I'm not criticizing ScummVM devs, if i'm not contributing to the code i
 haven't any to say here as anyone can do things here (it they know), only
 i'm guessing it's something maybe planned but for now there is a lot of
 other things to deal (ResidualVM merge, new themes, new engines, etc.).
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/12727#comment:8>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list