What's happening to my "android_storage"?

asked 2019-12-22 22:56:21 +0200

Robomike gravatar image

XperiaX 5121, 3.2.0.12

tl;dr: androids virtual sdcard is not linked to android_storage anymore.

More detailed: I prefer to mount a folder on my 256GB µSD at home/nemo/android_storage using a service:

[Unit]
Description=SD card bind mount for Android
ConditionPathExists=/dev/mmcblk1p1
ConditionPathExists=!/tmp/os-update-running
ConditionPathIsDirectory=/home/nemo/android_storage/
ConditionPathIsMountPoint=/media/sdcard/Jolla256/
Requires=local-fs.target systemd-user-sessions.service
Before=aliendalvik.service
After=mount-sd@mmcblk1p1.service
BindsTo=mount-sd@mmcblk1p1.service

[Mount]
What=/media/sdcard/Jolla256/.android/
Where=/home/nemo/android_storage/
Type=none
Options=bind

[Install]
WantedBy=local-fs.target aliendalvik.service

This was working fine for ages. One of the benefits of doing it this way is the automatic fallback if the card is missing. In that case Android will use the folder "/home/nemo/android_storage" as usual.

So, two weeks ago something broke (only thing I did consciously that time was a WhatsApp-Update), and I didn't recognize it in time, because all apps are still working. I miss some files, but the mount is still active, "/home/nemo/android_storage" is still located on mmcblk1p1 ("mount" output):

/dev/mmcblk1p1 on /home/nemo/android_storage type ext4 (rw,nosuid,nodev,relatime,data=ordered)

Generating a file with an android app and "find -name" it I found out, that androids "sdcard" is now and exclusively in "./opt/alien/storage/sdcard0/" and also in "/opt/alien/home/nemo/android_storage/", so that "/home/nemo/android_storage/" is NOT identical with "/opt/alien/home/nemo/android_storage/". Android-Apps use the latter.

Other subfolders of "/home/nemo/" and "opt/alien/home/nemo/" seem to "ls -al" identically.

Where is the (literally) missing link? Respectively, where should it be?

I feel a bit uncomfortable with what's going on...

edit retag flag offensive close delete