Android's default SD card path broken in SFOS 3.2.x [not a question]
There are dangling symlinks WRT the SD-card in SailfishOS:
# ls -l /sdcard
lrwxrwxrwx 1 root root 21 1970-10-18 09:49 /sdcard -> /storage/self/primary
# ls -la /storage
total 8
drwxr-xr-x 2 root root 4096 1970-10-18 08:49 .
drwxr-xr-x 33 root root 4096 1972-03-19 10:16 ..
lrwxrwxrwx 1 root root 7 1970-10-18 09:49 sdcard0 -> /sdcard
#
As /storage/self/primary
obviously does not exist, both symlinks point to nowhere!
This seems to be one part of the reason, why many file utilities for Android show a pretty void directory by default (OI Filemanager as an example):
But likely some other misconfiguration causes the Android runtime environment to point Android apps to /storage/sdcard0
.
Observed with SailfishOS 3.2.0 and 3.2.1 on Xperias.
Sorry, I should have followed my own advice, given at the last paragraph of section 2.2, there.
What happened: SailfishOS 3.2.0 replaced Jolla's original /opt/alien/system/script/platform_envsetup.sh
(for the first time since SailfishOS 2.2.0) with an identical file. Hence upgrading to SailfishOS 3.2.0 overwrote these changes I had applied to platform_envsetup.sh
and because I missed to reestablish them, I ran into afore-mentioned and -depicted issues.
P.S.: These symlinks seem to be fine and work as they should, but only within the Android runtime environment (AlienDalvik). Thus they "point in circles to nowhere" when looked at outside of the Android runtime environment.
Do you think this observation covers the "Pictures/videos on SD card are not visible to Android apps." issue mentioned here?
svistak ( 2019-11-11 02:59:48 +0200 )editI have no idea, which technical issue Jolla intends to address with that statement, it far too "high-levelish".
Note, that this also is not true (technically): With a proper Android file-manager (e.g. OI Filemanager) everything (the whole file-system) is accessible as usual.
Why are you asking / what is your concern?
olf ( 2019-11-11 16:21:35 +0200 )editYou have already seen (and commented on) my thread, but I'll link it here in case anyone is interested.
svistak ( 2019-11-12 03:06:24 +0200 )editThe question "3.2.0.1 on XA2 Dual SIM: SD-Card in Android" might be identical to @svistak's, as already noticed.
olf ( 2019-11-13 02:26:39 +0200 )editTo begin by the beginning, i would like that Gallery and Media Jolla Apps can find the encrypt µSD card. To see my pictures i can only use Footo and to listen musics, i can only use Muzik ...
mips_tux ( 2020-03-09 00:04:08 +0200 )edit