Grants apps with OP_NO_ISOLATED_STORAGE access to full external storage
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 MediaProviderTests
Test: atest ExternalStorageHostTest
Bug: 149894531
Change-Id: I95bfe9e362c6fc515d9bee6abfa688a0152a7477
3 files changed