赞
踩
有时候需要Android系统需要裁剪APP,单独屏蔽代码不够灵活不好管理。这时候最好是自己写个.mk在里面添加要删除的APP比较合理。
具体如下:
- diff --git a/build/make/core/main.mk b/build/make/core/main.mk
- index c5a0baeef63..65c107e2106 100644
- --- a/build/make/core/main.mk
- +++ b/build/make/core/main.mk
- @@ -1259,6 +1259,7 @@ define product-installed-files
- $(eval ### Filter out the overridden packages and executables before doing expansion) \
- $(eval _pif_overrides := $(call module-overrides,$(_pif_modules))) \
- $(eval _pif_modules := $(filter-out $(_pif_overrides), $(_pif_modules))) \
- + $(eval _pif_modules := $(filter-out $(PRODUCT_DEL_PACKAGES), $(_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)) \
- @@ -1340,6 +1341,7 @@ i
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。