From fc9c3b6d963c90085fb59064dc51b0ea25cafe45 Mon Sep 17 00:00:00 2001 From: Martijn Coenen Date: Fri, 13 Dec 2019 16:36:27 +0100 Subject: [PATCH] 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 --- .../core/java/com/android/server/StorageManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/StorageManagerService.java b/services/core/java/com/android/server/StorageManagerService.java index 24efe27fe400b..dfdb699d5ba39 100644 --- a/services/core/java/com/android/server/StorageManagerService.java +++ b/services/core/java/com/android/server/StorageManagerService.java @@ -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