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

Commit 9e59531c authored by Jonathan Klee's avatar Jonathan Klee
Browse files

Ship ih8sn for more devices

We want SafetyNet to work on more devices.

If a stable or dev device does not have a specific ih8sn config,
we now ship a default ih8sn config.
parent 42746511
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -25,17 +25,22 @@ DEVICE_PACKAGE_OVERLAYS += \
    $(VENDOR_PATH)/overlay

# SafetyNet compatibility
ifeq (stable,$(RELEASE_TYPE))
ifneq (test,$(RELEASE_TYPE))
  # Ship ih8sn on dev & stable builds
  INCLUDE_IH8SN ?= true
endif

INCLUDE_IH8SN ?= false

PRODUCT_CONFIGURATION_FILE := vendor/eos/config/ih8sn/ih8sn_$(subst lineage_,,$(TARGET_PRODUCT)).conf
DEFAULT_CONFIGURATION_FILE := vendor/eos/config/ih8sn/ih8sn_default.conf
ifeq (true,$(INCLUDE_IH8SN))
  ifneq (,$(wildcard $(PRODUCT_CONFIGURATION_FILE)))
  PRODUCT_PACKAGES += ih8sn
  ifneq (,$(wildcard $(PRODUCT_CONFIGURATION_FILE)))
    PRODUCT_COPY_FILES += \
        $(PRODUCT_CONFIGURATION_FILE):$(TARGET_COPY_OUT_SYSTEM)/etc/ih8sn.conf
  else
    PRODUCT_COPY_FILES += \
        $(DEFAULT_CONFIGURATION_FILE):$(TARGET_COPY_OUT_SYSTEM)/etc/ih8sn.conf
  endif
endif
+4 −0
Original line number Diff line number Diff line
BUILD_FINGERPRINT=Xiaomi/dipper/dipper:8.1.0/OPM1.171019.011/V9.5.5.0.OEAMIFA:user/release-keys
DEBUGGABLE=0
BUILD_TAGS=release-keys
BUILD_TYPE=user