From aaf6a23f3c7e6a3b0796d5056d50f4a4ca166534 Mon Sep 17 00:00:00 2001 From: Jonathan Klee Date: Fri, 1 Apr 2022 14:20:35 +0200 Subject: [PATCH] Add INCLUDE_IH8SN flag for debugging purposes Also ship ih8sn only for stable builds. --- config/common.mk | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/config/common.mk b/config/common.mk index 27e8558..df8bbdb 100644 --- a/config/common.mk +++ b/config/common.mk @@ -23,10 +23,15 @@ PRODUCT_COPY_FILES += \ $(VENDOR_PATH)/config/permissions/eos-permissions.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/default-permissions/eos-permissions.xml \ $(VENDOR_PATH)/config/permissions/eos-allowlist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/eos-allowlist.xml -# SafetyNet -PRODUCT_CONFIGURATION_FILE := vendor/eos/config/ih8sn/ih8sn_$(subst lineage_,,$(TARGET_PRODUCT)).conf +# SafetyNet compatibility +ifeq (stable,$(RELEASE_TYPE)) + INCLUDE_IH8SN ?= true +endif -ifneq (eng,$(TARGET_BUILD_VARIANT)) +INCLUDE_IH8SN ?= false + +PRODUCT_CONFIGURATION_FILE := vendor/eos/config/ih8sn/ih8sn_$(subst lineage_,,$(TARGET_PRODUCT)).conf +ifeq (true,$(INCLUDE_IH8SN)) ifneq (,$(wildcard $(PRODUCT_CONFIGURATION_FILE))) PRODUCT_PACKAGES += ih8sn PRODUCT_COPY_FILES += \ -- GitLab