我们可以改变/系统在init.rc模式或/数据 [英] can we change the mode of /system or /data in the init.rc
问题描述
在init.rc,我可以看到下面的codeS:
的mkdir /系统
的mkdir /数据0771系统系统
所以,我不知道我们可以改变/系统或/数据的模式,通过改写这样的命令的init.rc。
NOTE:事实上,我有aready做一个test.I改变codeS上面到下面的:
的mkdir / 0777系统
的mkdir /数据0777系统系统
但不幸的是,它失败。
于是,两个问题来到我的脑海里。
- 还有没有其他的init脚本,这将改变这些模式
两个目录来? - 是我的codeS在正确的写在正确的语言形式?
我想这并不足以改变只init.rc文件。 Android版还指定权限,某些目录和文件中的系统/核心/包括在图像创建过程中内置/私营/ android_filesystem_config.h
文件。
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.h
file which is built in during the image creation.
这篇关于我们可以改变/系统在init.rc模式或/数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!