Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 495ab817 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5730547 from 0d9c4080 to qt-qpr1-release

Change-Id: Ic5d9484bec5122e5bdc13b067e9c7dc8c227bdc0
parents 41c454c2 0d9c4080
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -589,6 +589,7 @@ on post-fs-data
    symlink /data/data /data/user/0
    symlink /data/data /data/user/0


    mkdir /data/media 0770 media_rw media_rw
    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 0770 system cache
    mkdir /data/cache/recovery 0770 system cache
    mkdir /data/cache/recovery 0770 system cache
+1 −8
Original line number Original line Diff line number Diff line
@@ -214,15 +214,8 @@ static void run_sdcardfs(const std::string& source_path, const std::string& labe


    if (multi_user) {
    if (multi_user) {
        std::string obb_path = source_path + "/obb";
        std::string obb_path = source_path + "/obb";
        // 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);
        fs_prepare_dir(obb_path.c_str(), 0775, uid, gid);
    }
    }
    }


    exit(0);
    exit(0);
}
}