Android14裁剪APK

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  \
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值