summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorsatayev <satayev@google.com>2021-02-22 17:24:48 +0000
committerArtur Satayev <satayev@google.com>2021-02-23 18:28:32 +0000
commitcb9fb0aaaf3a0a66c8bbdb1bfc7979dbe636fa31 (patch)
tree8f299f343f061b5def9bccd6b4699677e9d35a4e /core/java
parent9efcb0bd3f1eccf88952c4483ba6e46bc0c1d0e6 (diff)
Revert "Do not propogate test api access flags to Zygote."
This reverts commit bff33b8c31b42dff8d4d7164e68858ef16cabc86. Reason for revert: cts tests on -user builds is broken Bug: 147113465 Change-Id: I2edf200561f839e49e067403714ea6fa65bdc978
Diffstat (limited to 'core/java')
-rw-r--r--core/java/com/android/internal/os/Zygote.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/com/android/internal/os/Zygote.java b/core/java/com/android/internal/os/Zygote.java
index c8afea9b0982..b99c953fa4e8 100644
--- a/core/java/com/android/internal/os/Zygote.java
+++ b/core/java/com/android/internal/os/Zygote.java
@@ -103,7 +103,7 @@ public final class Zygote {
*/
public static final int PROFILE_FROM_SHELL = 1 << 15;
- /**
+ /*
* Enable using the ART app image startup cache
*/
public static final int USE_APP_IMAGE_STARTUP_CACHE = 1 << 16;
@@ -116,6 +116,13 @@ public final class Zygote {
*/
public static final int DEBUG_IGNORE_APP_SIGNAL_HANDLER = 1 << 17;
+ /**
+ * Disable runtime access to {@link android.annotation.TestApi} annotated members.
+ *
+ * <p>This only takes effect if Hidden API access restrictions are enabled as well.
+ */
+ public static final int DISABLE_TEST_API_ENFORCEMENT_POLICY = 1 << 18;
+
public static final int MEMORY_TAG_LEVEL_MASK = (1 << 19) | (1 << 20);
public static final int MEMORY_TAG_LEVEL_NONE = 0;