From c88ecd9aeb3d37eb509159461125a9f1dc511fd8 Mon Sep 17 00:00:00 2001 From: althafvly Date: Wed, 14 Jun 2023 15:25:00 +0530 Subject: [PATCH] eos: Remove google vendor apps - Remove HotwordEnrollment, AmbientSensePrebuilt and Intelligence apps --- config/common.mk | 4 ++++ remove/Android.mk | 30 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 remove/Android.mk diff --git a/config/common.mk b/config/common.mk index 3697184..1200070 100644 --- a/config/common.mk +++ b/config/common.mk @@ -14,6 +14,10 @@ VENDOR_PATH := vendor/eos +# Removes proprietary apps +PRODUCT_PACKAGES += \ + RemoveProprietaryApps + # CustomLocale ifeq (test,$(RELEASE_TYPE)) PRODUCT_PACKAGES += \ diff --git a/remove/Android.mk b/remove/Android.mk new file mode 100644 index 0000000..6bf622d --- /dev/null +++ b/remove/Android.mk @@ -0,0 +1,30 @@ +LOCAL_PATH := $(call my-dir) + +HOTWORD_PACKAGES := HotwordEnrollmentOKGoogleWCD9340 HotwordEnrollmentXGoogleWCD9340 HotwordEnrollment \ + HotwordEnrollmentOKGoogleWCD9330 HotwordEnrollmentTGoogleWCD9330 HotwordEnrollmentXGoogleWCD9330 \ + HotwordEnrollmentOKGoogleHEXAGON HotwordEnrollmentXGoogleHEXAGON HotwordEnrollmentOKGoogleExCORTEXM4 \ + HotwordEnrollmentXGoogleExCORTEXM4 HotwordEnrollmentOKGoogleRT5677 HotwordEnrollmentOKGoogleWCD9335 \ + HotwordEnrollmentXGoogleWCD9335 HotwordEnrollmentOKGoogleEx2TL3210 HotwordEnrollmentXGoogleEx2TL3210 \ + HotwordEnrollmentOKGoogleWCD9340_SDM845 HotwordEnrollmentXGoogleWCD9340_SDM845 HotwordEnrollmentTGoogleWCD9335 \ + HotwordEnrollmentOKGoogleCORTEXM4 HotwordEnrollmentXGoogleCORTEXM4 HotwordEnrollmentOKGoogleEx3HEXAGON \ + HotwordEnrollmentXGoogleEx3HEXAGON HotwordEnrollmentOKGoogleWM8280 HotwordEnrollmentOKGoogleHI6403 \ + HotwordEnrollmentXGoogleHI6403 HotwordEnrollmentOKGoogleRT5514P HotwordEnrollmentXGoogleRT5514P \ + HotwordEnrollmentOKGoogleFUSIONPro HotwordEnrollmentXGoogleFUSIONPro HotwordEnrollmentOKGoogleFUSION \ + HotwordEnrollmentXGoogleFUSION HotwordEnrollmentXGoogleExWCD9340 HotwordEnrollmentOKGoogleExWCD9340 \ + HotwordEnrollmentOKGoogleRT5514 HotwordEnrollmentXGoogleRT5514 HotwordEnrollmentOKGoogleHEMIDELTA \ + HotwordEnrollmentXGoogleHEMIDELTA + +DEVICE_PERSONALIZATION_PACKAGES := DevicePersonalizationPrebuiltPixel2 DevicePersonalizationPrebuiltPixel3 \ + DevicePersonalizationPrebuiltPixel4 DevicePersonalizationPrebuiltPixel2020 \ + DevicePersonalizationPrebuiltPixel2021 DevicePersonalizationPrebuiltPixel2022 + +include $(CLEAR_VARS) +LOCAL_MODULE := RemoveProprietaryApps +LOCAL_MODULE_TAGS := optional +LOCAL_MODULE_CLASS := APPS +LOCAL_OVERRIDES_PACKAGES := DeviceIntelligenceNetworkPrebuilt AmbientSensePrebuilt \ + $(DEVICE_PERSONALIZATION_PACKAGES) $(HOTWORD_PACKAGES) +LOCAL_UNINSTALLABLE_MODULE := true +LOCAL_SRC_FILES := /dev/null +LOCAL_CERTIFICATE := PRESIGNED +include $(BUILD_PREBUILT) -- GitLab