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

Commit 06af1c0e authored by Robert Sesek's avatar Robert Sesek
Browse files

Respect force_mount_namespace in MountEmulatedStorage().

In Ieb75cc3009ed26b7366213409d5fad836f597084, the unshare step was
skipped if no storage is required. But the change failed to take the force
parameter into account

Test: m
Test: angler boots
Test: fugu boots

Bug: 21643067
Change-Id: I52447f02fd25f553628564733fd6bf2523c07f7c
parent c0aacbe5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -304,7 +304,7 @@ static bool MountEmulatedStorage(uid_t uid, jint mount_mode,
        storageSource = "/mnt/runtime/read";
    } else if (mount_mode == MOUNT_EXTERNAL_WRITE) {
        storageSource = "/mnt/runtime/write";
    } else {
    } else if (!force_mount_namespace) {
        // Sane default of no storage visible
        return true;
    }