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
15 files changed