summaryrefslogtreecommitdiff
path: root/CleanSpec.mk
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2019-10-28 20:07:57 +0000
committer Roland Levillain <rpl@google.com> 2019-10-30 16:25:19 +0000
commitc7c4a766f094ed9f7449539f93c2c278a967af35 (patch)
treeac94ecd8faa33dc880537a289d4f2fef8df6a76e /CleanSpec.mk
parent10954b52ee068988ce8245a05033ed2fcdf81c4b (diff)
Reland "Remove Core Library JARs from `/system/framework`."
These JARs are part of the ART APEX, and are now located in `/apex/com.android.art/javalib`. Remove the supernumerary copies in `/system/framework` and save ~11 MiB on the system partition. This change no longer breaks coverage builds, as module `jacocoagent` has been removed from `TARGET_CORE_JARS` in CL https://android-review.googlesource.com/c/platform/build/+/1151464. This reverts commit 7c39368927ca6226e6071a9f0613945ee0755268. Test: Device boot test Test: Check that: export EMMA_INSTRUMENT=true && unset EMMA_INSTRUMENT_STATIC && m installclean && m systemimage generates a system image that contains these files: /system/framework/apex-jacocoagent.vdex /system/framework/boot-jacocoagent.vdex /system/framework/jacocoagent.jar /system/framework/<arch>/apex-jacocoagent.art /system/framework/<arch>/apex-jacocoagent.oat /system/framework/<arch>/apex-jacocoagent.vdex /system/framework/<arch>/boot-jacocoagent.art /system/framework/<arch>/boot-jacocoagent.oat /system/framework/<arch>/boot-jacocoagent.vdex Test: Run test ATP test avd/avd_boot_health_check on build target cf_x86_phone-userdebug_coverage Bug: 142944799 Bug: 143304991 Change-Id: Ifdb2331c5dcb992adbfd6c5a3983d8b9b13d16b2
Diffstat (limited to 'CleanSpec.mk')
-rw-r--r--CleanSpec.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/CleanSpec.mk b/CleanSpec.mk
index ee38a74644..6c5ecd901d 100644
--- a/CleanSpec.mk
+++ b/CleanSpec.mk
@@ -695,6 +695,10 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib*/vndk-*)
# Switch to symlinks for VNDK libs
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib*/vndk-*)
+# Remove Android Core Library artifacts from the system partition
+# again, as the original change removing them was reverted.
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/framework/*.jar)
+
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************