[BUG] encrypted sdcard inaccessible by Android apps
I have Jolla C device, and after update, i format my sdcard to encrypted ext4 format (that cool =) ), than recover all sdcard data by rsync from PC. All native apps works nice, but all android apps can't see sdcard.
are you running SFOS 3.0.0.5?
rozgwi ( 2018-11-03 22:48:00 +0200 )edityes, its 3.0.0.5
sashikknox ( 2018-11-03 23:07:01 +0200 )editnow, when i format sd card to ext4 without encryption , it can open it from android only in /medai/sdcard .. but:
sashikknox ( 2018-11-04 10:47:03 +0200 )editThe error above is correct and expected because of linking in the android's namespace. If one needs to check the android runtime's file system, CWD to /opt/alien which is the runtime's root, i.e.
cd /opt/alien
or set root by
devel-su chroot /opt/alien bash
In this namespace, /storage/sdcard0 is accessible but seems to be the internal storage also seen as /home/nemo/android_storage. However, the filesystem in the luks volume is mounted in the usual place as /run/media/nemo/LABEL and can be accessed when one can select the location.
As it stands, android cannot access the card as a device /dev/mmcblk1p1 when encryption is enabled as this partition does not contain anything similar to a filesystem. It needs to access the already mounted file system under /run/media/nemo/LABEL (or any link pointing to this mountpoint), or bind mount it. I cannot recall exactly but one may need to adjust directory permissions of the mountpoint's path. Hope this helps.
woodenmo ( 2018-11-04 11:47:31 +0200 )editok, later i'll try mount bind, and last screenshot from unecrypted, but ext4 formatted sdcard
sashikknox ( 2018-11-04 13:56:21 +0200 )edit