Hi,
I would like to change the owner of a directory on the sdcard
/sdcard/aDirectory
I have a terminal installed on my Android 10 (LineageOS 17)
com.android.terminal
sudo
is not present so I use su
and it works.
su
#Terminal was granted Superuser rights
cd /sdcard
chown 10:10 aDirectory
#I don't get any error message.
stat aDirectory
#Uid (0/root)
So the owner stay root no matter what I’m doing, any ideas ?
Thanks all for your input !
So yes
/sdcard
was/storage/emulated/0
and it’s a real sd-card.That was indeed formatted as
FAT
, I reformatted intoEXT4
(from a desktop Linux) put the SD-card back into the phone and started the phone.Ive tried (in the phone)
su chmod 777 /storage/emulated/0 #yes it's still mounted as emulated ! stat /storage/emulated/0 #... #Access: (0771) #....
So I’m still blocked… any ideas ?
Thanks.