mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-27 11:33:32 +00:00
sm6375-common: add remove_packages and make it optional
set new flag TARGET_DEBLOAT for optional remove_packages this may be useful to debloat updater for unofficial roms. you can expand the list for any package, just write them in the Android.mk of remove_packages folder Co-Authored-By: Michael Bestas <mikeNG@users.noreply.github.com>
This commit is contained in:
@@ -405,6 +405,12 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/permissions/telephony_system-ext_privapp-permissions-qti.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/telephony_system-ext-privapp-permissions-qti.xml
|
||||
|
||||
# Remove unwanted packages
|
||||
ifeq ($(TARGET_DEBLOAT),true)
|
||||
PRODUCT_PACKAGES += \
|
||||
RemovePackages
|
||||
endif
|
||||
|
||||
# RIL
|
||||
PRODUCT_PACKAGES += \
|
||||
CarrierConfigOverlay \
|
||||
|
||||
11
remove_packages/Android.mk
Normal file
11
remove_packages/Android.mk
Normal file
@@ -0,0 +1,11 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := RemovePackages
|
||||
LOCAL_MODULE_CLASS := APPS
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_OVERRIDES_PACKAGES := Updater
|
||||
LOCAL_UNINSTALLABLE_MODULE := true
|
||||
LOCAL_CERTIFICATE := PRESIGNED
|
||||
LOCAL_SRC_FILES := /dev/null
|
||||
include $(BUILD_PREBUILT)
|
||||
Reference in New Issue
Block a user