i have recently reinstalled sailfish 4.5 on xperia xa2, then upgraded to 4.6.13 immediately.
then i noticed android_storage section in gallery doesn’t show previews. and when i was entering it, everything was showing ‘empty’.
however, android storage worked, just it wasn’t visible for sailfish user apps.
then i started to mess up with permissions of android_storage: defaultuser:media_rw, media_rw:media:rw, defaultuser:defaultuser… now it is worse, some apps cannot write, reporting that probably there is no free space, but that’s me messed up with permissions.
what are the correct permissions (chown and chmod) for android_storage and its subdirectories?
someone also told me eventually, that on their xa10plus android_storage is chowned as media_rw:media_rw, and its content mostly 10036:10036, except for Android directory: media_rw:media_rw. and on xa2 it worked, in the sense that i restored what was before, now android apps work, but still android_storage feels disabled in the gallery.
I reflashed my Xperia 10 iii yesterdsy abd strangely cannot access the files under android_storage, which never was a problem in my previous installs.
apparently the read (and other) rights are set incorrectly
Update: When adding defaultuser to the appsupport-media_rw group and rebooting, I can enter the android_storage folder, but can’t go deeper because of permissions:
Here are the permissions on my phone where I’m not experiencing any problems (either access Android storage from the command line as defaultuser or using the Gallery app):
[defaultuser@kolbe ~]$ ls -lhd android_storag*
drwxrwx--- 14 501023 appsuppo 4.0K Feb 2 2023 android_storage
[defaultuser@kolbe ~]$ ls -lh android_storage
total 96K
drwxrwxr-x 2 501023 appsuppo 4.0K Jun 18 2022 Alarms
drwxrws--x 5 501023 appsuppo 4.0K Feb 2 2023 Android
drwxrwx--- 2 510048 510048 4.0K Feb 2 2023 Audiobooks
drwxrwxr-x 3 501023 appsuppo 4.0K Mar 18 12:55 DCIM
drwxrwx--- 2 510048 510048 4.0K Feb 2 2023 Documents
drwxrwxr-x 2 501023 appsuppo 4.0K Jun 18 2022 Download
drwxrwxr-x 3 501023 appsuppo 4.0K Feb 2 2023 Movies
drwxrwxr-x 3 501023 appsuppo 4.0K Feb 2 2023 Music
drwxrwxr-x 2 501023 appsuppo 4.0K Jun 18 2022 Notifications
drwxrwxr-x 5 501023 appsuppo 4.0K Jul 11 21:57 Pictures
drwxrwxr-x 2 501023 appsuppo 4.0K Jun 18 2022 Podcasts
drwxrwxr-x 2 501023 appsuppo 4.0K Jun 18 2022 Ringtones
If I change the permissions of my Pictures folder to the same as yours, I then experience what sounds like similar issues. Then when I change them back, everything works again:
[defaultuser@kolbe ~]$ devel-su chmod 700 ~/android_storage/Pictures
# Images in Android storage can't be accessed from the Gallery app
[defaultuser@kolbe ~]$ devel-su chmod 775 ~/android_storage/Pictures
# Gallery app shows Android storage fine
My permissions are for Sailfish OS 4.6 but following an upgrade, not a fresh install.
Thanks but that alone won’t fix it, because for me the group is still that weird nonexisting 510036. Maybe I should change that to the appsupport-media_rw? Because apparently one can’t be added to a nonexistant group.