summaryrefslogtreecommitdiff
path: root/apct-tests
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 /apct-tests
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 'apct-tests')
0 files changed, 0 insertions, 0 deletions