From 095a47f8339e3b90be2dcaccfdcc12a202a4517a Mon Sep 17 00:00:00 2001 From: Apelete Seketeli Date: Fri, 27 Jun 2025 00:58:38 +0200 Subject: [PATCH] sunfish: Select apps based on WITH_GMS flag Selectively build with or without GAPPS and allow files to live in specified root path depending on WITH_GMS flag. --- lineage_sunfish.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lineage_sunfish.mk b/lineage_sunfish.mk index c7955a20..638c29a9 100644 --- a/lineage_sunfish.mk +++ b/lineage_sunfish.mk @@ -26,6 +26,10 @@ PRODUCT_BUILD_PROP_OVERRIDES += \ BuildFingerprint=google/sunfish/sunfish:13/TQ3A.230805.001.S1/10786265:user/release-keys \ DeviceProduct=sunfish +ifeq ($(WITH_GMS),false) +PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \ + system/priv-app/OmniStyle/OmniStyle.apk +else # Gapps TARGET_USES_MINI_GAPPS := true @@ -36,5 +40,6 @@ PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST += \ system/etc/permissions/privapp-permissions-google.xml \ system/priv-app/DocumentsUIGoogle/DocumentsUIGoogle.apk \ system/priv-app/TagGoogle/TagGoogle.apk +endif $(call inherit-product, vendor/google/sunfish/sunfish-vendor.mk)