ppsspp icon indicating copy to clipboard operation
ppsspp copied to clipboard

android/data folder permissions issue

Open Zeudan opened this issue 10 months ago • 6 comments

Issue: On a fresh install of the stable release of PPSSPP on my Ayn Odin 2 Portal (Android), I’m unable to write to the folder: /android/data/org.ppsspp.ppsspp/files/PSP/

Details:

  • The folder appears to exist, but attempting to copy or write files (e.g., save states or assets) fails due to permission issues.
  • Other folders inside /android/data/ on the same device are writable without any problems.
  • This issue does not occur on my other devices (e.g., Retroid Pocket 5 or my phone), where writing to this folder works as expected.
  • Tested using multiple file managers that have proper permissions (e.g., All Files Access enabled).

Expected behavior: The app or a file manager should be able to write to org.ppsspp.ppsspp/files/PSP/, as it does on other Android devices.

Environment:

  • Device: Ayn Odin 2 Portal
  • Android version: 13
  • PPSSPP version: 1.18.1
  • File manager(s) used: MiXplorer, Solid Explorer

Zeudan avatar May 22 '25 08:05 Zeudan

Well how is this possibly PPSSPP's fault? PPSSPP doesn't create that folder. I don't know what I could possibly do about this.

hrydgard avatar May 22 '25 09:05 hrydgard

That is already an Android problem, many games are going through that supposedly due to Android security, although I think PPSSPP does not create a folder in that location.

ManuPech1 avatar May 24 '25 19:05 ManuPech1

That is already an Android problem, many games are going through that supposedly due to Android security, although I think PPSSPP does not create a folder in that location.

You can select this location during the app’s initial setup. I chose to use it because when saving in-game, using other locations — like internal storage outside Android/data, or worse, the SD card — causes noticeable stuttering due to slower I/O.

The drawback of using Android/data in my case, is that it’s a restricted directory: only PPSSPP itself can write to it. Interestingly, this limitation seems specific to the Odin 2's Android build. On other devices, like the Retroid Pocket 5, I’m able to write to that folder without any issues.

Zeudan avatar May 24 '25 23:05 Zeudan

The drawback of using Android/data in my case, is that it’s a restricted directory

Uninstalling ppsspp will also delete all the files in that Android/data/.../files folder, unlike on sdcard that will persists.

Btw, are your other devices also use Android 13?🤔 may be it's a bug that came from the Android 13 on Odin 2

anr2me avatar May 25 '25 03:05 anr2me

Btw, are your other devices also use Android 13?🤔 may be it's a bug that came from the Android 13 on Odin 2

Yeah both device uses Android 13. Yeah it seems to come from a firmware restriction on the Ayn Odin 2 Portal.

Zeudan avatar May 25 '25 15:05 Zeudan

Eso ya es un problema de Android, muchos juegos están pasando por eso supuestamente por seguridad de Android, aunque creo que PPSSPP no crea una carpeta en esa ubicación.

Puedes seleccionar esta ubicación durante la configuración inicial de la aplicación. La elegí porque, al guardar en el juego, usar otras ubicaciones (como el almacenamiento interno fuera de Android/datos, o peor aún, la tarjeta SD) causa un parpadeo notable debido a una E/S más lenta.

La desventaja de usar Android/data en mi caso es que es un directorio restringido: solo PPSSPP puede escribir en él. Curiosamente, esta limitación parece ser específica de la compilación de Android de Odin 2. En otros dispositivos, como el Retroid Pocket 5, puedo escribir en esa carpeta sin problemas. It doesn't give me any problem if I save it in other locations and even though I use it on a low-end Motorola, I suppose that's from your device, not the emulator.

ManuPech1 avatar May 29 '25 01:05 ManuPech1