Merge "Revert "Revert "rootdir / sdcard : Stop creating /data/media/obb.""" into qt-dev
am: ff7da227db
Change-Id: I6f6ec4b8472a3017c47d49a910e9ca982cae6eff
This commit is contained in:
commit
3f17869556
2 changed files with 8 additions and 2 deletions
|
@ -590,7 +590,6 @@ on post-fs-data
|
|||
symlink /data/data /data/user/0
|
||||
|
||||
mkdir /data/media 0770 media_rw media_rw
|
||||
mkdir /data/media/obb 0770 media_rw media_rw
|
||||
|
||||
mkdir /data/cache 0770 system cache
|
||||
mkdir /data/cache/recovery 0770 system cache
|
||||
|
|
|
@ -214,7 +214,14 @@ static void run_sdcardfs(const std::string& source_path, const std::string& labe
|
|||
|
||||
if (multi_user) {
|
||||
std::string obb_path = source_path + "/obb";
|
||||
fs_prepare_dir(obb_path.c_str(), 0775, uid, gid);
|
||||
// Only attempt to prepare the /obb dir if it already exists. We want
|
||||
// the legacy obb path "/data/media/obb" to be fixed up so that we can
|
||||
// migrate it to its new location, but we don't want the directory to be
|
||||
// created if it doesn't already exist.
|
||||
struct stat sb;
|
||||
if (TEMP_FAILURE_RETRY(lstat(obb_path.c_str(), &sb)) == 0) {
|
||||
fs_prepare_dir(obb_path.c_str(), 0775, uid, gid);
|
||||
}
|
||||
}
|
||||
|
||||
exit(0);
|
||||
|
|
Loading…
Reference in a new issue