请问执行createBindMounts()函数时用到的/mnt/secure/staging/android_secure目录是何时创建的?
如题 --------------------编程问答-------------------- 这个目录可以不存在,其实最终都是要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)) { ==> 创建
补充:移动开发 , Android