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

Permission Problem SD Card/Aliendalvik

asked 2016-07-24 13:59:04 +0200

GermanJollaUser1 gravatar image

updated 2016-08-11 00:41:32 +0200

bomo gravatar image

Using my Jolla C I encounter a problem with my SD Card.

For Android Applications it seems to be rx only while using regular sailfish applications it is rwx.

I verified it by looking at /media/sdcard/XXXX-XXXX. In the native browser it is rwx, in Amaze from F Droid it is just rx.

via ssh I get

drwxr-xr-x nemo:nemo /media/sdcard

mount gives

/dev/mmcblk1p1 on /media/sdcard/XXXX-XXXX type vfat (rw,nosuid,nodev,noexec,noatime,dirsync,uid=100000,gid=100000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,flush,errors=remount-ro,discard)
/dev/mmcblk1p1 on /opt/alien/media/sdcard/XXXX-XXXX type vfat (rw,nosuid,nodev,noexec,noatime,dirsync,uid=100000,gid=100000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,flush,errors=remount-ro,discard)

fsck in my pc reports no errors

edit retag flag offensive close delete

Comments

3 Answers

Sort by » oldest newest most voted
0

answered 2016-07-24 14:11:24 +0200

Please have a look at https://together.jolla.com/question/138603/wrong-premission-after-sd-card-formated-by-native-storage-app-to-ext4/

rx is enough for /media/sdcard

rwx is needed on /media/sdcard/BLKID e.g. rwxrwxr-- nemo nemo

edit flag offensive delete publish link more

Comments

I have seen the above thread, but I have an vfat SD Card.

rwx is on /media/sdcard/BLKID under Sailfish, but i seem to be rx only in Android

GermanJollaUser1 ( 2016-07-24 14:45:10 +0200 )edit
0

answered 2016-08-11 00:11:02 +0200

GermanJollaUser1 gravatar image

I found Aliendalvik emulates Android 4.4, preventing SD Card write access. After having a look at /opt/alien/system/etc/platform.xml I modified it according to various instructions by adding group gid="media_rw" /.

  <permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
        <group gid="sdcard_r" />
        <group gid="sdcard_rw" />
        <group gid="media_rw" />
  </permission>

After restarting aliendalvik nothing changed. Any ideas what to do to enable write access to the SD. On the Tablet it works flawlessly without any change.

Thanks

edit flag offensive delete publish link more
0

answered 2016-08-11 00:32:09 +0200

bomo gravatar image

updated 2016-08-11 00:40:30 +0200

Android apps run under different UID for each app, so I guess you have to make it rwx for ALL in order to have access from all android apps and sailfish to the folder.

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

Question tools

Follow
4 followers

Stats

Asked: 2016-07-24 13:59:04 +0200

Seen: 721 times

Last updated: Aug 11 '16