diff --git a/CleanSpec.mk b/CleanSpec.mk index 6c5ecd901d..42bcb3c24b 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -699,6 +699,9 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib*/vndk-*) # again, as the original change removing them was reverted. $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/framework/*.jar) +# The core image variant has been renamed to "" +$(call add-clean-step, find $(SOONG_OUT_DIR)/.intermediates -type d -name "android_*_core*" -print0 | xargs -0 rm -rf) + # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************