这个目录可以不存在,其实最终都是要rename成/mnt/secure/staging/.android_secure /mnt/secure/staging是在init.rc里面创建的。/mnt/secure/staging/.android_secure是在函数createBindMounts中的如下行创建的: /* * Ensure that /android_secure exists and is a directory */ if (access(SEC_STG_SECIMGDIR, R_OK | X_OK)) { if (errno == ENOENT) { if (mkdir(SEC_STG_SECIMGDIR, 0777)) { ==> 创建
/mnt/secure/staging是在init.rc里面创建的。/mnt/secure/staging/.android_secure是在函数createBindMounts中的如下行创建的: /*
* Ensure that /android_secure exists and is a directory
*/
if (access(SEC_STG_SECIMGDIR, R_OK | X_OK)) {
if (errno == ENOENT) {
if (mkdir(SEC_STG_SECIMGDIR, 0777)) { ==> 创建