Merge "Create new mount directory /mnt/runtime/full."
am: 598a4bcb13
Change-Id: If4fb975fa4d182ad50cf44e134063d87c5ff7338
This commit is contained in:
commit
051a89009c
2 changed files with 11 additions and 2 deletions
|
|
@ -117,6 +117,8 @@ on init
|
||||||
mkdir /mnt/runtime/read/self 0755 root root
|
mkdir /mnt/runtime/read/self 0755 root root
|
||||||
mkdir /mnt/runtime/write 0755 root root
|
mkdir /mnt/runtime/write 0755 root root
|
||||||
mkdir /mnt/runtime/write/self 0755 root root
|
mkdir /mnt/runtime/write/self 0755 root root
|
||||||
|
mkdir /mnt/runtime/full 0755 root root
|
||||||
|
mkdir /mnt/runtime/full/self 0755 root root
|
||||||
|
|
||||||
# Symlink to keep legacy apps working in multi-user world
|
# Symlink to keep legacy apps working in multi-user world
|
||||||
symlink /storage/self/primary /sdcard
|
symlink /storage/self/primary /sdcard
|
||||||
|
|
|
||||||
|
|
@ -160,6 +160,7 @@ static void run_sdcardfs(const std::string& source_path, const std::string& labe
|
||||||
std::string dest_path_default = "/mnt/runtime/default/" + label;
|
std::string dest_path_default = "/mnt/runtime/default/" + label;
|
||||||
std::string dest_path_read = "/mnt/runtime/read/" + label;
|
std::string dest_path_read = "/mnt/runtime/read/" + label;
|
||||||
std::string dest_path_write = "/mnt/runtime/write/" + label;
|
std::string dest_path_write = "/mnt/runtime/write/" + label;
|
||||||
|
std::string dest_path_full = "/mnt/runtime/full/" + label;
|
||||||
|
|
||||||
umask(0);
|
umask(0);
|
||||||
if (multi_user) {
|
if (multi_user) {
|
||||||
|
|
@ -172,7 +173,10 @@ static void run_sdcardfs(const std::string& source_path, const std::string& labe
|
||||||
default_normal, use_esdfs) ||
|
default_normal, use_esdfs) ||
|
||||||
!sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_write, uid, gid,
|
!sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_write, uid, gid,
|
||||||
multi_user, userid, AID_EVERYBODY, full_write ? 0007 : 0027,
|
multi_user, userid, AID_EVERYBODY, full_write ? 0007 : 0027,
|
||||||
derive_gid, default_normal, use_esdfs)) {
|
derive_gid, default_normal, use_esdfs) ||
|
||||||
|
!sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_full, uid, gid,
|
||||||
|
multi_user, userid, AID_EVERYBODY, 0007, derive_gid,
|
||||||
|
default_normal, use_esdfs)) {
|
||||||
LOG(FATAL) << "failed to sdcardfs_setup";
|
LOG(FATAL) << "failed to sdcardfs_setup";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -186,7 +190,10 @@ static void run_sdcardfs(const std::string& source_path, const std::string& labe
|
||||||
derive_gid, default_normal, use_esdfs) ||
|
derive_gid, default_normal, use_esdfs) ||
|
||||||
!sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_write, uid, gid,
|
!sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_write, uid, gid,
|
||||||
multi_user, userid, AID_EVERYBODY, full_write ? 0007 : 0022,
|
multi_user, userid, AID_EVERYBODY, full_write ? 0007 : 0022,
|
||||||
derive_gid, default_normal, use_esdfs)) {
|
derive_gid, default_normal, use_esdfs) ||
|
||||||
|
!sdcardfs_setup_secondary(dest_path_default, source_path, dest_path_full, uid, gid,
|
||||||
|
multi_user, userid, AID_EVERYBODY, 0007, derive_gid,
|
||||||
|
default_normal, use_esdfs)) {
|
||||||
LOG(FATAL) << "failed to sdcardfs_setup";
|
LOG(FATAL) << "failed to sdcardfs_setup";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue