From 4cbcb7d7aa9151d8eb2822a62dcfc84d7060c4a1 Mon Sep 17 00:00:00 2001 From: Jonathan Klee Date: Tue, 29 Mar 2022 08:26:24 +0200 Subject: [PATCH] Add ih8sn configurations for SafetyNet compatibility Do not force security patch level with the build system because it causes issues for deployment through OTA. Instead use ih8sn to force security patch level later in the boot. We also add the build fingerprint instead of shipping it with GmsCore. --- config/common.mk | 11 +++++++++++ config/ih8sn/ih8sn_FP3.conf | 3 +++ config/ih8sn/ih8sn_GS290.conf | 3 +++ config/ih8sn/ih8sn_starlte.conf | 3 +++ 4 files changed, 20 insertions(+) create mode 100644 config/ih8sn/ih8sn_FP3.conf create mode 100644 config/ih8sn/ih8sn_GS290.conf create mode 100644 config/ih8sn/ih8sn_starlte.conf diff --git a/config/common.mk b/config/common.mk index 15748c7..67110fc 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 0000000..f4048f2 --- /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 0000000..e832839 --- /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 0000000..5eec82a --- /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 -- GitLab