android 9.0打开文件管理器,android 9.0 SD卡权限问题 文件管理器没有权限
原文分析https://blog.csdn.net/shift_wwx/article/details/85633801修改方法:增加-w 权限,下面第二个加上去的。alps_p0_mp2\update\alps\system\vold\model\PublicVolume.cppif (!(mFusePid = fork())) {if (getMountFlags() & MountF
原文分析
https://blog.csdn.net/shift_wwx/article/details/85633801
修改方法:
增加-w 权限,下面第二个加上去的。
alps_p0_mp2\update\alps\system\vold\model\PublicVolume.cpp
if (!(mFusePid = fork())) {
if (getMountFlags() & MountFlags::kPrimary) {
if (execl(kFusePath, kFusePath,
"-u", "1023", // AID_MEDIA_RW
"-g", "1023", // AID_MEDIA_RW
"-U", std::to_string(getMountUserId()).c_str(),
"-w",
mRawPath.c_str(),
stableName.c_str(),
NULL)) {
PLOG(ERROR) << "Failed to exec";
}
} else {
if (execl(kFusePath, kFusePath,
"-u", "1023", // AID_MEDIA_RW
"-g", "1023", // AID_MEDIA_RW
"-U", std::to_string(getMountUserId()).c_str(),
"-w",//add by for add sdcard permission 就是这样
mRawPath.c_str(),
stableName.c_str(),
NULL)) {
PLOG(ERROR) << "Failed to exec";
}
}
更多推荐
所有评论(0)