diff --git a/config/common.mk b/config/common.mk index 0a6e09a0cf115f2c0a13923a6c6d50a1c8b8040e..cf21f4ca37d985e096c8991c5f69d060f29f924c 100644 --- a/config/common.mk +++ b/config/common.mk @@ -41,17 +41,22 @@ PRODUCT_COPY_FILES += \ $(VENDOR_PATH)/config/permissions/eos-allowlist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/eos-allowlist.xml # SafetyNet compatibility -ifeq (stable,$(RELEASE_TYPE)) +ifneq ($(filter stable dev,$(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)) + PRODUCT_PACKAGES += ih8sn ifneq (,$(wildcard $(PRODUCT_CONFIGURATION_FILE))) - PRODUCT_PACKAGES += ih8sn 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 diff --git a/config/ih8sn/ih8sn_default.conf b/config/ih8sn/ih8sn_default.conf new file mode 100644 index 0000000000000000000000000000000000000000..cc8f1aa2770660830315e2ef8e901327af43aa96 --- /dev/null +++ b/config/ih8sn/ih8sn_default.conf @@ -0,0 +1,4 @@ +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