I am already a member of the group "aid_sdcard_rw":
android@localhost:~$ whoami
android
android@localhost:~$ groups
android aid_radio ...... aid_sdcard_rw ......
you can see that i am already in group aid_sdcard_rw. Then, when i access directory /storage/sdcard0 :
android@localhost:~$ ls /storage/sdcard0/
ls: cannot open directory '/storage/sdcard0/': Permission denied
but:
android@localhost:~$ ls -l /storage/
total 8
d---rwxr-x 17 android aid_sdcard_rw 8192 1月 1 1970 sdcard0
doesn't group "aid_sdcard_rw" members have read permission? why is this Permission denied happened?
The system i run is an ubuntu 16.04 and running in my android phone using an app called Linux Deploy, and my phone have external sd card inserted :
Welcome to Ubuntu 16.04 LTS (GNU/Linux 3.4.5 armv7l)
* Documentation: https://help.ubuntu.com/
Ubuntu 16.04 LTS [running via Linux Deploy]
The directory /storage/sdcard0 is my external sd card mount directory(see the last line below):
android@localhost:~$ cat /etc/mtab
/dev/loop1 / ext4 rw,relatime,data=ordered 0 0
proc /proc proc rw,relatime 0 0
sys /sys sysfs rw,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/block/vold/179:97 /storage/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
I have tried umount /storage/sdcard0 and remount it with option -o umask=0000 , but command ls -l /storage get same result as above.