diff --git a/config/common.mk b/config/common.mk index c1e3b1e698f563d63f5916807623f49830575000..27bb464448b15fa37c89a9bf27eb93d217abbb29 100644 --- a/config/common.mk +++ b/config/common.mk @@ -84,17 +84,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