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
Loading
Please register or sign in to comment