Add change id ALLOW_TEST_API_ACCESS
We will use this change id in art/runtime/hidden_api.cc to provide a
mechanism for applications to access @TestApi methods
This change id will always be disabled by default and should only be
used by platform test code.
Bug: 166236554
Test: adb shell dumpsys platform_compat
Change-Id: If354a4dcadcf8e0e7a8fd83bac9c95dbaf0dbb2e
diff --git a/libart/src/main/java/dalvik/system/VMRuntime.java b/libart/src/main/java/dalvik/system/VMRuntime.java
index 53e4c7e..5f001c1 100644
--- a/libart/src/main/java/dalvik/system/VMRuntime.java
+++ b/libart/src/main/java/dalvik/system/VMRuntime.java
@@ -18,6 +18,7 @@
import android.compat.annotation.ChangeId;
import android.compat.annotation.EnabledSince;
+import android.compat.annotation.Disabled;
import android.compat.annotation.UnsupportedAppUsage;
import dalvik.annotation.compat.VersionCodes;
@@ -89,6 +90,15 @@
private static final long HIDE_MAXTARGETSDK_Q_HIDDEN_APIS = 149994052; // This is a bug id.
/**
+ * Allow apps accessing @TestApi APIs.
+ *
+ * <p>This will always be disabled by default and should only be used by platform test code.
+ */
+ @ChangeId
+ @Disabled
+ private static final long ALLOW_TEST_API_ACCESS = 166236554; // This is a bug id.
+
+ /**
* Interface for logging hidden API usage events.
*/
@libcore.api.CorePlatformApi