diff --git a/config/common.mk b/config/common.mk index 15748c7ae40a2cb24c47e902e239ccada9c4f1b3..67110fc648aecf429425d6cc228e49f13efe95c9 100644 --- a/config/common.mk +++ b/config/common.mk @@ -17,3 +17,14 @@ VENDOR_PATH := vendor/eos # Overlays DEVICE_PACKAGE_OVERLAYS += \ $(VENDOR_PATH)/overlay + +# SafetyNet compatibility +PRODUCT_CONFIGURATION_FILE := vendor/eos/config/ih8sn/ih8sn_$(subst lineage_,,$(TARGET_PRODUCT)).conf + +ifneq (eng,$(TARGET_BUILD_VARIANT)) + ifneq (,$(wildcard $(PRODUCT_CONFIGURATION_FILE))) + PRODUCT_PACKAGES += ih8sn + PRODUCT_COPY_FILES += \ + $(PRODUCT_CONFIGURATION_FILE):$(TARGET_COPY_OUT_SYSTEM)/etc/ih8sn.conf + endif +endif diff --git a/config/ih8sn/ih8sn_FP3.conf b/config/ih8sn/ih8sn_FP3.conf new file mode 100644 index 0000000000000000000000000000000000000000..f4048f2f39c819c10360193262339314f0f25243 --- /dev/null +++ b/config/ih8sn/ih8sn_FP3.conf @@ -0,0 +1,3 @@ +BUILD_SECURITY_PATCH_DATE=2022-01-05 +BUILD_FINGERPRINT=Fairphone/FP3/FP3:10/8901.3.A.0135.20211222/gms-3e31ddee:user/release-keys +DEBUGGABLE=0 diff --git a/config/ih8sn/ih8sn_GS290.conf b/config/ih8sn/ih8sn_GS290.conf new file mode 100644 index 0000000000000000000000000000000000000000..e8328396a9b12c0a27f744bd0c5c28bc5f7f326c --- /dev/null +++ b/config/ih8sn/ih8sn_GS290.conf @@ -0,0 +1,3 @@ +# Do not set BUILD_FINGERPRINT because it will make GS290 boot into recovery +BUILD_SECURITY_PATCH_DATE=2021-12-05 +DEBUGGABLE=0 diff --git a/config/ih8sn/ih8sn_starlte.conf b/config/ih8sn/ih8sn_starlte.conf new file mode 100644 index 0000000000000000000000000000000000000000..5eec82ac23c880880f3e463a29a59cdab56fb8ed --- /dev/null +++ b/config/ih8sn/ih8sn_starlte.conf @@ -0,0 +1,3 @@ +BUILD_FINGERPRINT=samsung/starltexx/starlte:10/QP1A.190711.020/G960FXXSHFUJ2:user/release-keys +BUILD_SECURITY_PATCH_DATE=2021-11-01 +DEBUGGABLE=0