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

Android's default SD card path broken in SFOS 3.2.x [not a question]

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

olf gravatar image

updated 2020-06-17 16:53:00 +0200

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.

edit retag flag offensive reopen delete

The question has been closed for the following reason "not a real question" by olf
close date 2020-06-17 16:39:58.091823

Comments

2

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 )edit

I 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 )edit

You 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 )edit

The 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 )edit

To 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

2 Answers

Sort by » oldest newest most voted
1

answered 2019-11-18 14:40:24 +0200

svistak gravatar image

Do you think this issue might be remedied by correcting the symlinks manually? I am eager to try, but don't want to mess up my system even more...

edit flag offensive delete publish link more

Comments

I have no idea what locations ("sources") and which targets these two links really ought to have.

If you do, you may try rectifying them.
Any change executed per rm -i <link name> and ln -s <target> <link_name> can be easily reverted by these two commands, too.

Please report the outcome of your research here.

olf ( 2019-12-27 21:04:21 +0200 )edit

As I recently discovered, these symlinks are 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.

olf ( 2020-06-17 16:46:18 +0200 )edit
1

answered 2020-03-08 12:57:40 +0200

campeon gravatar image

Hi. Does anyone know if there is a solution for SD-card with android applications. Thanks

edit flag offensive delete publish link more

Comments

I also don't understand what happenened, in the times it was possible to read and also save stuff on the sd card, also creating a link to the sd-catd in applications was no problem. Now its like sd-card wouldn't be existing. I know that the Dalvik layer and SFOS are 2 different systems, but if SFOS users can program apps that can exchange data between both systems, Jolla should be able too

Firefox84 ( 2020-03-08 14:21:02 +0200 )edit
1

Since 3.2.0.12 or 3.2.0.20 (in my case on an XA2) I also can't use the sd card with android apps. In older versions this was easily possible with a change in /var/lib/lxc/aliendalvik/extra_config. I also wrote emails to Jolla customer service, because I thought that the Jolla developer know a solution for this problem but I always got the answer "We are still working on this issue and unfortunately we cannot give any deadlines or SW release number when this would be completed.". Best regards, Uwe.

UweLabs ( 2020-03-10 16:24:40 +0200 )edit

Question tools

Follow
9 followers

Stats

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

Seen: 973 times

Last updated: Jun 17 '20