Use JVMTI extension API to get the list of defined classes
Use JVMTI extension API to get the list of defined classes from the boot
class loader. This change is required since dex files are stripped in
userdebug and user builds. Furthermore, even when there is dex files
(e.g. for eng builds), reading dex files using DexFile class is no
longer supported because we intentionally have invalid access flags for
the boot class path jars to hide private APIs from apps.
Bug: 73504235
Test: atest . under cts/tests/signature/api-check/system-annotation
Change-Id: I0cb2bed9d389b5a5f762a3369b674e4a9f8c0bc0
diff --git a/tests/signature/api-check/android-test-runner-current-api/AndroidManifest.xml b/tests/signature/api-check/android-test-runner-current-api/AndroidManifest.xml
index 61de501..f81665e 100644
--- a/tests/signature/api-check/android-test-runner-current-api/AndroidManifest.xml
+++ b/tests/signature/api-check/android-test-runner-current-api/AndroidManifest.xml
@@ -20,7 +20,7 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
- <application>
+ <application android:debuggable="true">
<uses-library android:name="android.test.runner"/>
</application>