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

Commit 8953999b authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Android (Google) Code Review
Browse files

Merge "Use "sys.isolated_storage_snapshot" prop to check for the feature."

parents e6f2eefc a3801585
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -95,6 +95,7 @@ using android::base::GetBoolProperty;
static pid_t gSystemServerPid = 0;

static const char kIsolatedStorage[] = "persist.sys.isolated_storage";
static const char kIsolatedStorageSnapshot[] = "sys.isolated_storage_snapshot";
static const char kZygoteClassName[] = "com/android/internal/os/Zygote";
static jclass gZygoteClass;
static jmethodID gCallPostForkSystemServerHooks;
@@ -539,7 +540,7 @@ static bool MountEmulatedStorage(uid_t uid, jint mount_mode,
        return true;
    }

    if (GetBoolProperty(kIsolatedStorage, false)) {
    if (GetBoolProperty(kIsolatedStorageSnapshot, GetBoolProperty(kIsolatedStorage, false))) {
        if (mount_mode == MOUNT_EXTERNAL_FULL) {
            storageSource = "/mnt/runtime/write";
            if (TEMP_FAILURE_RETRY(mount(storageSource.string(), "/storage",