diff --git a/build/make/core/main.mk b/build/make/core/main.mk
index a9d60025fa1..d839c1688bd 100755
--- a/build/make/core/main.mk
+++ b/build/make/core/main.mk
@@ -1281,6 +1281,8 @@ define product-installed-files
$(eval _pif_modules := $(filter-out $(_pif_overrides), $(_pif_modules))) \
$(eval _pif_removes := $(call get-product-var,$(1),PRODUCT_REMOVE_PACKAGES)) \
$(eval _pif_modules := $(filter-out $(_pif_removes), $(_pif_modules))) \
+ $(eval _pif_dels := $(call get-product-var,$(1),PRODUCT_DEL_PACKAGES)) \
+ $(eval _pif_modules := $(filter-out $(_pif_dels), $(_pif_modules))) \
$(eval ### Resolve the :32 :64 module name) \
$(eval _pif_modules := $(sort $(call resolve-bitness-for-modules,TARGET,$(_pif_modules)))) \
$(call expand-required-modules,_pif_modules,$(_pif_modules),$(_pif_overrides)) \
diff --git a/build/make/core/product.mk b/build/make/core/product.mk
index 90f46e8771f..94c4d378a63 100755
--- a/build/make/core/product.mk
+++ b/build/make/core/product.mk
@@ -32,6 +32,8 @@ _product_single_value_vars += PRODUCT_MODEL_FOR_ATTESTATION
# PRODUCT_MAX_PAGE_SIZE_SUPPORTED=65536, the possible values for PAGE_SIZE could be
# 4096, 16384 and 65536.
_product_single_value_vars += PRODUCT_MAX_PAGE_SIZE_SUPPORTED
+#裁剪APK
+_product_single_value_vars += PRODUCT_DEL_PACKAGES
# The resource configuration options to use for this product.
_product_list_vars += PRODUCT_LOCALES
tovi@czm:~/rk3576/project.androidU_rk3576/build$
device.mk
PRODUCT_DEL_PACKAGES = \
apxx \
apxx \
Android14裁剪APK
于 2025-02-28 10:39:53 首次发布