extra: Add abillity to remove Dialer/Telephony Apps

* GMS packages include them regardless.
cm-14.1
Nolen Johnson 5 years ago
parent a14896904f
commit 36f674bb47
  1. 10
      product.mk
  2. 11
      remove-dialer/Android.mk
  3. 11
      remove-telephony/Android.mk

@ -14,6 +14,16 @@ PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
## Recovery ## Recovery
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += persist.sys.recovery_update=true PRODUCT_SYSTEM_DEFAULT_PROPERTIES += persist.sys.recovery_update=true
## Remove Dialer Apps
ifneq ($(filter %yellowstone,$(TARGET_PRODUCT)),)
PRODUCT_PACKAGES += remove-dialer
endif
## Remove Telephony Apps
ifneq ($(filter %flo %gts4lvwifi %icosa,$(TARGET_PRODUCT)),)
PRODUCT_PACKAGES += remove-telephony
endif
## Updater ## Updater
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += cm.updater.uri="https://updater.oddsolutions.us/api/v1/{device}/{type}/{incr}" PRODUCT_SYSTEM_DEFAULT_PROPERTIES += cm.updater.uri="https://updater.oddsolutions.us/api/v1/{device}/{type}/{incr}"
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += cm.updater.allow_downgrading=true PRODUCT_SYSTEM_DEFAULT_PROPERTIES += cm.updater.allow_downgrading=true

@ -0,0 +1,11 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := remove-dialer
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := APPS
LOCAL_OVERRIDES_PACKAGES := Dialer GoogleDialer
LOCAL_UNINSTALLABLE_MODULE := true
LOCAL_SRC_FILES := /dev/null
LOCAL_CERTIFICATE := PRESIGNED
include $(BUILD_PREBUILT)

@ -0,0 +1,11 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := remove-telephony
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := APPS
LOCAL_OVERRIDES_PACKAGES := CarrierServicesGoogle Dialer GoogleDialer Messages Messaging Telecom Telephony
LOCAL_UNINSTALLABLE_MODULE := true
LOCAL_SRC_FILES := /dev/null
LOCAL_CERTIFICATE := PRESIGNED
include $(BUILD_PREBUILT)
Loading…
Cancel
Save