diff options
| author | Artur Satayev <satayev@google.com> | 2019-10-31 12:07:55 +0000 |
|---|---|---|
| committer | Artur Satayev <satayev@google.com> | 2019-11-12 12:52:19 +0000 |
| commit | e2ebc1be4bbc1c6fa2759fce5fc4d47bd4072ee1 (patch) | |
| tree | 429378690aa9f1be5be43729f3261498ee51a7fc /core/java | |
| parent | 423c3a32d6f3aad5484232be208530b05b1116d0 (diff) | |
Add --no-test-api-acces to am instrument.
By default instrumented processed have access to @TestApis; however for certain CTS tests we want to disable access to test APIs, where this flag would be used.
Test: manual
Bug: 133832325
Change-Id: Id56ce3079bcea2632d4002edcf120d9d5c9e0a26
Merged-In: Id56ce3079bcea2632d4002edcf120d9d5c9e0a26
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/ActivityManager.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/app/ActivityManager.java b/core/java/android/app/ActivityManager.java index 91b98c71a613..752f3e3c6bbe 100644 --- a/core/java/android/app/ActivityManager.java +++ b/core/java/android/app/ActivityManager.java @@ -153,6 +153,12 @@ public class ActivityManager { */ public static final int INSTR_FLAG_MOUNT_EXTERNAL_STORAGE_FULL = 1 << 1; + /** + * Disable test API access for the newly started instrumentation. + * @hide + */ + public static final int INSTR_FLAG_DISABLE_TEST_API_CHECKS = 1 << 2; + static final class UidObserver extends IUidObserver.Stub { final OnUidImportanceListener mListener; final Context mContext; |
