Project

General

Profile

impossible to change rights on /storage/emulated/0

Added by Fil Lupin about 1 month ago

Hello,
I have a problem on my Galaxy S3 GT-1300, with Replicant 6.
Note that my partition is encrypted.

Trying to export my contacts in a VCF file, I failed because Contacts refuse to export more than 500 contacts.
Since I urgently need this, I installed Fossify contacts to export my contacts.
When exporting, it export in /storage/emultaed/0 but failed to write the file.

It seems I can't change the rights for this directory:

root@i9300:/storage/emulated # ll
total 48
drwxrwx--x 17 root sdcard_rw 4096 2024-12-14 14:29 0
drwxrwx--x  3 root sdcard_rw 4096 2024-11-22 16:24 obb
root@i9300:/storage/emulated # chmod ugo+rw 0
root@i9300:/storage/emulated # ll
total 48
drwxrwx--x 17 root sdcard_rw 4096 2024-12-14 14:29 0
drwxrwx--x  3 root sdcard_rw 4096 2024-11-22 16:24 obb

root@i9300:/storage/emulated # mount
rootfs on / type rootfs (ro,seclabel,relatime)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
/sys/kernel/debug on /sys/kernel/debug type debugfs (rw,seclabel,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
none on /sys/fs/cgroup type tmpfs (rw,seclabel,relatime,mode=750,gid=1000)
none on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
tmpfs on /mnt type tmpfs (rw,seclabel,relatime,mode=755,gid=1000)
none on /dev/memcg type cgroup (rw,relatime,memory)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/mmcblk0p3 on /efs type ext4 (rw,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1,journal_async_commit,data=ordered)
/dev/block/mmcblk0p9 on /system type ext4 (ro,seclabel,noatime,user_xattr,barrier=1,data=ordered)
/dev/block/mmcblk0p8 on /cache type ext4 (rw,seclabel,nosuid,nodev,noatime,errors=panic,user_xattr,barrier=1,journal_async_commit,data=ordered)
tmpfs on /storage type tmpfs (rw,seclabel,relatime,mode=755,gid=1000)
/dev/block/dm-0 on /data type f2fs (rw,seclabel,nosuid,nodev,noatime,background_gc=on,discard,user_xattr,inline_xattr,acl,inline_data,active_logs=6)
/dev/block/dm-1 on /mnt/expand/27ee8821-2841-4dff-a614-4782031d216c type f2fs (rw,seclabel,nosuid,nodev,noatime,background_gc=on,user_xattr,acl,active_logs=6)
/dev/fuse on /mnt/runtime/default/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /storage/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/read/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/write/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)

I tried a

usermod -aG sdcard_rw u0_a92
where u0_a92 is the account of the app seen in /data/data but usermod is not found.

Do you have any idea how to make /storage/emulated/0 writable for an app?

Regards