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:
kamikaonashi
2023-12-29 10:05:13 +01:00
parent 3f6b7f691a
commit d3eeac4cd2
2 changed files with 17 additions and 0 deletions

View File

@@ -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 \

View 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)