Files
frameworks_base/core/java/android/app
Nikita Ioffe ac095e5a1d 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
2020-06-11 19:51:54 +01:00
..
2020-02-06 08:41:26 +00:00
2019-11-11 16:12:46 -08:00
2020-04-08 21:30:24 +08:00
2020-04-28 20:06:03 -07:00
2020-04-28 15:02:26 +01:00
2020-03-03 15:06:02 -08:00
2020-04-14 16:57:18 +08:00