In the init.rc,i can see the following codes:
mkdir /system
mkdir /data 0771 system system
So,I wonder can we change the mode of /system or /data in the init.rc by rewrite such command.
Acutally,I have aready do a test.I change the codes above into the following:
mkdir /system 0777
mkdir /data 0777 system system
But,unfortunately,it fails.
So,two questions come to my mind.
- are there any other init script that will change the mode of these
two directory? - Are my codes in correct written in correct language form?
I guess it’s not enough to change only init.rc file. Android also specifies permissions to some directories and files in the
system/core/include/private/android_filesystem_config.hfile which is built in during the image creation.