Ppsspp: Failed to saved settings need to restart/reboot the phone to saved

Created on 8 May 2018  ยท  26Comments  ยท  Source: hrydgard/ppsspp

Using ppsspp build 1.5.7-971 failed to saved settings.
I need to manually on the permission in phone
settings if not need to restart/reboot the phone

Android 6.0
Mali-T720

All 26 comments

Even granted the permission ppsspp always say failed to saved
screenshot_20180508-171414

So I need to manually on the permission in the phone settings
screenshot_20180508-171456

@Jinzombie
So you mean if you uninstall the app and reinstall it, the permission dialog doesn't appear automatically? Or maybe not saving the granted permission?

Have you cleared the app data? It can also reset the permissions.

@hrydgard
I think the issue here is that PPSSPP doesn't ask again for the storage permission if the user has somehow turned it off.
Maybe you should ask again if saving fails? ๐Ÿค”

We do show a button to allow the user to retrigger the question. Or at least I think we do...

Here's my screen recorder it show up the button and I allow the permission but always failed to saved settings.
https://youtu.be/nSdbdPAssFQ

So permission was definitely granted then, if it could see the games, right? I wonder why the setting had to be turned on again?

-[Unknown]

If I exit in the ppsspp (remove from recent app) and open it again all of the changes in the settings will back to default.

That means it has indeed failed to save the config... Or failed to load it on the next startup, hm.

Yes

Tried a lot of things but can't get it to misbehave on my S8...

Maybe my tablet has the problem and not the ppsspp? ๐Ÿ˜Ÿ

Just downloaded now build 1.5.4-980 and I test it on android 7.1 Mali-400 my friend phone but the issue of saved settings is still happen.

Note:First time to install in his android phone

Well, we do ask the system for the path to the SD card...

Ideally we should probably move ppsspp.ini to app-private storage which always works, with an option to have it in the current location too in case you want to manually edit it..

Why not save it in the private storage in these cases (when error occurs), then try to move it to the PSP directory?

Oops! Deleted my comment accidentally! ๐Ÿ˜… Here it is again:

@hrydgard
I don't think this has anything to do with storage permission. If the permission was not granted or saved, then you couldn't even display the contents of the sdcard.

The real issue here is (or at least I think it is) that you're accessing the sdcard from an invalid path, which only grants reading permissions not writing permissions. You have to access it via the valid path which is not that easy and varies across devices (or rather ROMs).

It's a ROM bug not that of PPSSPP. (seen it a lot on Huawei phones)

@Jinzombie
I have 2 questions for you

  1. Have you inserted a memory card into your device?
  2. Does your device allow you to change the default storage for apps?

I plan to do something like that but it's too scary a change for 1.6, I can foresee all sorts of bizarre problems that could arise...

Maybe create a temporary PoC app for testing? (do not merge it to the main branch just upload it here!)

@leopard20
No! Phone Storage Only.
This issue can easily bypass by rebooting/restarting my android phone ๐Ÿ˜…

Opps... I will close this because I figured out if I delete the system folder or just newly installed a ppsspp build the problem happen but if I had already a system folder this isn't happen and also restarting the ppsspp fix the issue โœŒ๐Ÿ˜…

*Sorry for mistake ๐Ÿ™‡

Oh! Hm, that's worth fixing....

Told you it was because of invalid path! Although not exactly what I had in mind! ;)

@hrydgard
What about the SYSTEM directory? I didn't see it in the diff.

Adding it.

This should be ok now, please confirm :)

its OK now ๐Ÿ‘
@hrydgard thank you!

Awesome, glad to hear it.

-[Unknown]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

moura464 picture moura464  ยท  3Comments

tilkinsc picture tilkinsc  ยท  3Comments

zminhquanz picture zminhquanz  ยท  6Comments

marosis picture marosis  ยท  6Comments

joelolopez picture joelolopez  ยท  3Comments