diff --git a/config/common.mk b/config/common.mk index c2547cd06e1a4c4471f167afd3f38036906845f9..27e8558a43c0afbe44f148544133811f15d8370e 100644 --- a/config/common.mk +++ b/config/common.mk @@ -22,3 +22,14 @@ DEVICE_PACKAGE_OVERLAYS += \ 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 + +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_FP4.conf b/config/ih8sn/ih8sn_FP4.conf new file mode 100644 index 0000000000000000000000000000000000000000..2b240d12068615385bb19b400db5491dbb395181 --- /dev/null +++ b/config/ih8sn/ih8sn_FP4.conf @@ -0,0 +1,3 @@ +BUILD_SECURITY_PATCH_DATE=2021-12-05 +BUILD_FINGERPRINT=Fairphone/FP4eea/FP4:11/RKQ1.210503.001/FP3Q:user/release-keys +DEBUGGABLE=0 diff --git a/config/ih8sn/ih8sn_emerald.conf b/config/ih8sn/ih8sn_emerald.conf new file mode 100644 index 0000000000000000000000000000000000000000..e198e714431977fe89f83a3adbd00a094a7ad86b --- /dev/null +++ b/config/ih8sn/ih8sn_emerald.conf @@ -0,0 +1,3 @@ +BUILD_SECURITY_PATCH_DATE=2021-10-05 +BUILD_FINGERPRINT=Teracube/Teracube_2e/Teracube_2e:11/RP1A.200720.011/202111011925:user/release-keys +DEBUGGABLE=0