Return installer mount mode for installers.

In the new FUSE world, we're interested to know the difference between
installers and apps that previously asked for WRITE_EXTERNAL. For
devices without FUSE enabled, they both map to the "write" sdcardfs
view, so for them this is a no-op.

Bug: 146189163
Test: device boots with and without FUSE
Change-Id: I634829eec8f0e7e65e4e740ce216dded23abc271
This commit is contained in:
Martijn Coenen
2019-12-13 16:36:27 +01:00
parent 7391820c23
commit fc9c3b6d96

View File

@@ -3812,7 +3812,7 @@ class StorageManagerService extends IStorageManager.Stub
}
}
if ((hasInstall || hasInstallOp) && hasWrite) {
return Zygote.MOUNT_EXTERNAL_WRITE;
return Zygote.MOUNT_EXTERNAL_INSTALLER;
}
// Otherwise we're willing to give out sandboxed or non-sandboxed if