Do not enable storage data isolation when mount mode is none.

By definition, MOUNT_EXTERNAL_NONE should not mount anything from
external storage.

Bug: 148049767
Test: App with mount mode none is not mounting storage data or obb dirs anymore
Change-Id: I6ad4cc22c395c9e6aa28210143185bc8c591da66
This commit is contained in:
Ricky Wai
2020-07-10 15:21:47 +00:00
parent a1f3fd5b46
commit 3504617760

View File

@@ -2218,7 +2218,8 @@ public final class ProcessList {
// access /mnt/user anyway.
&& app.mountMode != Zygote.MOUNT_EXTERNAL_ANDROID_WRITABLE
&& app.mountMode != Zygote.MOUNT_EXTERNAL_PASS_THROUGH
&& app.mountMode != Zygote.MOUNT_EXTERNAL_INSTALLER;
&& app.mountMode != Zygote.MOUNT_EXTERNAL_INSTALLER
&& app.mountMode != Zygote.MOUNT_EXTERNAL_NONE;
}
private Process.ProcessStartResult startProcess(HostingRecord hostingRecord, String entryPoint,