summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2021-09-30 09:38:19 +0000
committer Jiakai Zhang <jiakaiz@google.com> 2021-10-29 11:55:20 +0000
commit0a0a2fbea9025c23fa6305c9b481f72955a88ecf (patch)
tree7cae791d1d50846b6bba547947e6618f7b114058 /Android.bp
parentbc909df73215735a98490a3da5bf375c7edb3d0c (diff)
Add a build-time check for dexpreopting system server jars.
This change adds a Soong module that stores the paths to the compilation artifacts of system server jars in a variable, which will then be consumed by Make to check if the artifacts are installed. When the check fails, it means that dexpreopting is not working for some system server jars and needs to be fixed. Bug: 201371822 Test: m nothing Test: manual - 1. Add "service-permission" to DEXPREOPT_DISABLED_MODULES (https://cs.android.com/android/platform/superproject/+/master:build/make/core/product_config.mk?q=DEXPREOPT_DISABLED_MODULES) 2. m nothing 3. See the error: Missing compilation artifacts. Dexpreopting is not working for some system server jars Offending entries: system/framework/oat/x86_64/apex@com.android.permission@javalib@service-permission.jar@classes.odex system/framework/oat/x86_64/apex@com.android.permission@javalib@service-permission.jar@classes.vdex Change-Id: I4816f19668f1dae180a34adafdbfa448c97aa0db
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index b5ddaa4e4..0e8d86d3b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -127,3 +127,7 @@ genrule {
srcs: ["cc/config/global.go"],
out: ["clang-prebuilts-version.txt"],
}
+
+dexpreopt_systemserver_check {
+ name: "dexpreopt_systemserver_check",
+}