Profman: Skip dex file verification for boot jars
The introduction of new access flags into boot jars causes them to
fail dex file verification. The files are verified in `hiddenapi`
and verification should be skipped in subsequent attempts to open
them. This patch adds a new flag '--skip-apk-verification' which
instructs `profman` to skip dex file verification.
Bug: 64382372
Test: make test-art-host-gtest-profile_assistant_test
Change-Id: Iad614e47feada293218c11cff985a8012ca49a0f
diff --git a/tools/generate-boot-image-profile.sh b/tools/generate-boot-image-profile.sh
index d87123a..ee53f43 100755
--- a/tools/generate-boot-image-profile.sh
+++ b/tools/generate-boot-image-profile.sh
@@ -46,7 +46,9 @@
fi
done
-jar_args=()
+# Boot jars have hidden API access flags which do not pass dex file
+# verification. Skip it.
+jar_args=("--skip-apk-verification")
boot_jars=$("$ANDROID_BUILD_TOP"/art/tools/bootjars.sh --target)
jar_dir=$ANDROID_BUILD_TOP/$(get_build_var TARGET_OUT_JAVA_LIBRARIES)
for file in $boot_jars; do