Android MTK平台配置应用可卸载

文章目录

    • Android MTK平台配置应用可卸载

Android MTK平台配置应用可卸载

system/vendor/mediatek/proprietary/frameworks/base/data/etc/
在路径下修改pms_sysapp_removable_system_list.txt 或者 pms_sysapp_removable_vendor_list.txt
将需要可卸载的应用包名配置到其中即可

例如Camera 和DebugLogger

com.mediatek.camera
com.debug.loggerui

配置文件在device.mk中加载
system/device/mediatek/system/common/device.mk

# 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
君子可寓意于物,但不可留意于物。

你可能感兴趣的:(GMS,android,安卓)