We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-11-11 01:47:57 +0200

olf gravatar image

Android's default SD card path broken in SFOS 3.2.0

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 -l /storage/
total 0
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: <em>OI Filemanager</em> as an example

But likely some other misconfiguration causes the Android runtime environment to point Android apps to /sdcard/sdcard0.

Observed with SailfishOS 3.2.0.12 on an Xperia X.

Android's default SD card path broken in SFOS 3.2.0

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 -l /storage/
-la /storage
total 0
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: <em>OI Filemanager</em> as an example

But likely some other misconfiguration causes the Android runtime environment to point Android apps to /sdcard/sdcard0.

Observed with SailfishOS 3.2.0.12 on an Xperia X.

Android's default SD card path broken in SFOS 3.2.0

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: <em></del><ins>default (<em></ins>OI Filemanager</em> as an <del>exampleexample): OI Filemanager screenshot

But likely some other misconfiguration causes the Android runtime environment to point Android apps to /sdcard/sdcard0/storage/sdcard0.

Observed with SailfishOS 3.2.0.12 on an Xperia X.

Android's default SD card path broken in SFOS 3.2.0

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): OI Filemanager screenshot

But likely some other misconfiguration causes the Android runtime environment to point Android apps to /storage/sdcard0.

Observed with SailfishOS 3.2.0.12 3.2.0 and 3.2.1 on an Xperia X.Xperias.

Android's default SD card path broken in SFOS 3.2.03.2.x

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): OI Filemanager screenshot

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.

Android's default SD card path broken in SFOS 3.2.x

There are dangling symlinks 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): example): OI Filemanager screenshot

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 with an identical file. Hence upgrading to SailfishOS 3.2.0 overwrote these changes and because I missed to reestablish them, I ran into afore-mentioned and -depicted issues.

Android's default SD card path broken in SFOS 3.2.x

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): OI Filemanager screenshot

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 with an identical file. Hence upgrading to SailfishOS 3.2.0 overwrote these changes and because I missed to reestablish them, I ran into afore-mentioned and -depicted issues.

Android's default SD card path broken in SFOS 3.2.x

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): OI Filemanager screenshot

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

Android's default SD card path broken in SFOS 3.2.x

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): OI Filemanager screenshot

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.

Android's default SD card path broken in SFOS 3.2.x

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): OI Filemanager screenshot

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.