Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aaf6a23f authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Add INCLUDE_IH8SN flag for debugging purposes

Also ship ih8sn only for stable builds.
parent 9e503380
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -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 += \