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

[BUG] encrypted sdcard inaccessible by Android apps

asked 2018-11-03 20:39:04 +0300

sashikknox gravatar image

updated 2018-11-03 22:47:21 +0300

rozgwi gravatar image

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. es city guide 2gis

edit retag flag offensive close delete

Comments

are you running SFOS 3.0.0.5?

rozgwi ( 2018-11-03 22:48:00 +0300 )edit

yes, its 3.0.0.5

sashikknox ( 2018-11-03 23:07:01 +0300 )edit

now, when i format sd card to ext4 without encryption , it can open it from android only in /medai/sdcard .. but: image description

sashikknox ( 2018-11-04 10:47:03 +0300 )edit

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

ok, later i'll try mount bind, and last screenshot from unecrypted, but ext4 formatted sdcard

sashikknox ( 2018-11-04 13:56:21 +0300 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-11-04 17:00:59 +0300

sashikknox gravatar image

updated 2018-11-04 17:05:16 +0300

before problems are begining, i move android_storage from home to sdcard, and create symlink. now i try to return abdroid_storage to home, and remove symlinc to sdcard, and now android apps work as is. later i'll try encrypt sd again, and test it )

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2018-11-03 20:39:04 +0300

Seen: 363 times

Last updated: Nov 04 '18