本文最后更新于:2023年12月9日 下午
Android MTK平台配置应用可卸载
system/vendor/mediatek/proprietary/frameworks/base/data/etc/
在路径下修改pms_sysapp_removable_system_list.txt 或者 pms_sysapp_removable_vendor_list.txt
将需要可卸载的应用包名配置到其中即可
例如Camera 和DebugLogger
1 2
| com.mediatek.camera com.debug.loggerui
|
配置文件在device.mk中加载
system/device/mediatek/system/common/device.mk
1 2 3 4 5 6 7 8 9 10
| # Add for PMS support removable system app ifneq ($(strip $(MTK_BASIC_PACKAGE)), yes) ifeq ($(strip $(MSSI_MTK_CTA_SET)), yes) PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists, \ vendor/mediatek/proprietary/frameworks/base/data/etc/pms_sysapp_removable_system_list.txt:system/etc/permissions/pms_sysapp_removable_system_list.txt)
PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists, \ vendor/mediatek/proprietary/frameworks/base/data/etc/pms_sysapp_removable_vendor_list.txt:system/etc/permissions/pms_sysapp_removable_vendor_list.txt) endif endif
|
君子可寓意于物,但不可留意于物。