From e5aa41a01e8ff782c70993134612cc92023fd04e Mon Sep 17 00:00:00 2001 From: tonyfan Date: Mon, 5 Oct 2026 08:27:10 +0530 Subject: [PATCH] ferrari: Add face unlock blobs Change-Id: Icc6d9901526796d50b2753284a7370b65c69ccf3 --- BoardConfig.mk | 8 ++++++++ .../apps/Settings/res/values/config.xml | 14 ++++++++++++++ proprietary-files.txt | 18 +++++++++++++++++- vintf/compatibility_matrix.xml | 10 ++++++++++ 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 overlay-lineage/packages/apps/Settings/res/values/config.xml create mode 100644 vintf/compatibility_matrix.xml diff --git a/BoardConfig.mk b/BoardConfig.mk index ae2d844..0747a20 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -9,6 +9,10 @@ include device/oneplus/sm8450-common/BoardConfigCommon.mk DEVICE_PATH := device/realme/ferrari +# Biometrics (Face) +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.biometrics.face.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.biometrics.face.xml + # HIDL DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml @@ -19,5 +23,9 @@ TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop TARGET_RECOVERY_DENSITY := xxhdpi TARGET_RECOVERY_UI_MARGIN_HEIGHT := 126 +# VINTF +DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += \ + $(DEVICE_PATH)/vintf/compatibility_matrix.xml + # Include the proprietary files BoardConfig. include vendor/realme/ferrari/BoardConfigVendor.mk diff --git a/overlay-lineage/packages/apps/Settings/res/values/config.xml b/overlay-lineage/packages/apps/Settings/res/values/config.xml new file mode 100644 index 0000000..4192511 --- /dev/null +++ b/overlay-lineage/packages/apps/Settings/res/values/config.xml @@ -0,0 +1,14 @@ + + + + + + true + + + false + + diff --git a/proprietary-files.txt b/proprietary-files.txt index 9bbe01e..fcc5551 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -985,7 +985,6 @@ odm/lib64/libsnpe_loader.so odm/lib64/libstblur_api.so odm/lib64/libstblur_capture_api.so odm/lib64/libstface_fd_api.so -odm/lib64/libstfaceunlockocl.so odm/lib64/libstfd_mobile_api.so odm/lib64/libthirdcapability.so odm/lib64/libtriplecam_optical_zoom_control.so @@ -1279,6 +1278,23 @@ vendor/firmware/evautil64.b07 vendor/firmware/evautil64.b08 vendor/firmware/evautil64.mdt +# Face unlock +odm/bin/hw/vendor.oplus.hardware.biometrics.face@1.0-service +odm/etc/init/vendor.oplus.hardware.biometrics.face@1.0-service.rc +odm/etc/vintf/manifest/manifest_oplus_face.xml +odm/lib64/libstfaceunlockocl.so +odm/init.oplus.face.rc +vendor/lib64/libcamera2ndk_vendor.so +odm/vendor/firmware/facereg.b00 +odm/vendor/firmware/facereg.b01 +odm/vendor/firmware/facereg.b02 +odm/vendor/firmware/facereg.b03 +odm/vendor/firmware/facereg.b04 +odm/vendor/firmware/facereg.b05 +odm/vendor/firmware/facereg.b06 +odm/vendor/firmware/facereg.b07 +odm/vendor/firmware/facereg.mdt + # Fingerprint odm/bin/hw/vendor.oplus.hardware.biometrics.fingerprint@2.1-service odm/bin/init.oplus.fingerprints.sh diff --git a/vintf/compatibility_matrix.xml b/vintf/compatibility_matrix.xml new file mode 100644 index 0000000..7c1d178 --- /dev/null +++ b/vintf/compatibility_matrix.xml @@ -0,0 +1,10 @@ + + + android.hardware.biometrics.face + 1 + + IFace + default + + +