summaryrefslogtreecommitdiff
path: root/core/proto
diff options
context:
space:
mode:
authorNikita Ioffe <ioffe@google.com>2020-06-08 22:24:06 +0100
committerNikita Ioffe <ioffe@google.com>2020-06-11 19:51:54 +0100
commitac095e5a1dc4b76af6b82dd246ed54d0fca888fb (patch)
tree861bc31fdb4f1f3f61cf0885682488c854b12b53 /core/proto
parent95e41f279ddb8cea10fc650d08a4cca2efb509a3 (diff)
Start OP_NO_ISOLATED_STORAGE on `am instrument --no-isolated-storage`
This provides a signal for MediaProvider to whitelist access for full external storage access. Here is an overview of how the flow looks like: 1. When app is started within instrumentation with --no-isolated-storage flag, ActivityManagerService will grant OP_NO_ISOLATED_STORAGE to that package. 2. MediaProvider will note the OP_NO_ISOLATED_STORAGE app op as fallback in case app doesn't have MANAGE_EXTERNAL_STORAGE permissions. 3. When instrumentation finishes, ActivityManagerService will change mode of OP_NO_ISOLATED_STORAGE app op to MODE_ERRORED. Test: atest ExternalStorageHostTest Bug: 149894531 Change-Id: I51cd87e5e887b887fd8ac7a1a7ffff208266ffa8
Diffstat (limited to 'core/proto')
-rw-r--r--core/proto/android/app/enums.proto1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/proto/android/app/enums.proto b/core/proto/android/app/enums.proto
index 563ef145b79c..bd5cb62f7fde 100644
--- a/core/proto/android/app/enums.proto
+++ b/core/proto/android/app/enums.proto
@@ -206,4 +206,5 @@ enum AppOpEnum {
APP_OP_DEPRECATED_1 = 96 [deprecated = true];
APP_OP_AUTO_REVOKE_PERMISSIONS_IF_UNUSED = 97;
APP_OP_AUTO_REVOKE_MANAGED_BY_INSTALLER = 98;
+ APP_OP_NO_ISOLATED_STORAGE = 99;
}