From 7419322181c6631f9c53dd430e4c619b82857264 Mon Sep 17 00:00:00 2001 From: pjgowtham Date: Fri, 7 Mar 2025 14:30:03 +0530 Subject: [PATCH] ferrari: prebuilt Face AIDL Change-Id: I73fd655c8e92d425526353585a8eabdcaaccb459 --- device.mk | 4 ++++ extract-files.py | 6 ++++++ proprietary-files.txt | 22 +++++++++++++++++++++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/device.mk b/device.mk index c5b8c4d..3412718 100644 --- a/device.mk +++ b/device.mk @@ -34,6 +34,10 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/display_id_4630946358012694402.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_4630946358012694402.xml +# Face +PRODUCT_COPY_FILES += \ + frameworks/native/data/etc/android.hardware.biometrics.face.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/android.hardware.biometrics.face.xml + # NFC PRODUCT_PACKAGES += \ android.hardware.nfc-service.nxp \ diff --git a/extract-files.py b/extract-files.py index c9a48a3..ced6067 100755 --- a/extract-files.py +++ b/extract-files.py @@ -31,6 +31,9 @@ lib_fixups: lib_fixups_user_type = { } blob_fixups: blob_fixups_user_type = { + 'odm/bin/hw/vendor.oplus.hardware.biometrics.face@1.0-service': blob_fixup() + .replace_needed('android.hardware.biometrics.common-V1-ndk_platform.so', 'android.hardware.biometrics.common-V1-ndk.so') + .replace_needed('android.hardware.biometrics.face-V1-ndk_platform.so', 'android.hardware.biometrics.face-V1-ndk.so'), 'odm/bin/hw/vendor.oplus.hardware.biometrics.fingerprint@2.1-service': blob_fixup() .replace_needed('android.hardware.biometrics.common-V1-ndk_platform.so', 'android.hardware.biometrics.common-V1-ndk.so') .replace_needed('android.hardware.biometrics.fingerprint-V1-ndk_platform.so', 'android.hardware.biometrics.fingerprint-V1-ndk.so'), @@ -43,6 +46,9 @@ blob_fixups: blob_fixups_user_type = { .replace_needed('vendor.qti.hardware.display.config-V2-ndk_platform.so', 'vendor.qti.hardware.display.config-V5-ndk.so'), 'odm/lib64/libextensionlayer.so': blob_fixup() .replace_needed('libziparchive.so', 'libziparchive_odm.so'), + 'vendor/bin/hw/android.hardware.biometrics.face@1.0-service.face': blob_fixup() + .replace_needed('android.hardware.biometrics.common-V1-ndk_platform.so', 'android.hardware.biometrics.common-V1-ndk.so') + .replace_needed('android.hardware.biometrics.face-V1-ndk_platform.so', 'android.hardware.biometrics.face-V1-ndk.so'), 'vendor/etc/libnfc-nci.conf': blob_fixup() .regex_replace('NFC_DEBUG_ENABLED=1', 'NFC_DEBUG_ENABLED=0'), 'vendor/etc/libnfc-nxp.conf': blob_fixup() diff --git a/proprietary-files.txt b/proprietary-files.txt index 0fcf889..7110849 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -990,7 +990,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 @@ -1228,6 +1227,27 @@ odm/lib64/hw/vendor.qti.esepowermanager@1.1-impl.so odm/lib64/vendor.qti.esepowermanager@1.0.so odm/lib64/vendor.qti.esepowermanager@1.1.so +# Face +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 +vendor/bin/hw/android.hardware.biometrics.face@1.0-service.face +vendor/etc/init/android.hardware.biometrics.face@1.0-service.face.rc +vendor/lib64/vendor.qti.hardware.secureprocessor.common@1.0.so +vendor/lib64/vendor.qti.hardware.secureprocessor.config@1.0.so +vendor/lib64/vendor.qti.hardware.secureprocessor.device@1.0.so +vendor/lib64/vendor.qti.hardware.secureprocessor.common@1.0-helper.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 +odm/lib64/libstfaceunlockocl.so + # Fingerprint odm/bin/hw/vendor.oplus.hardware.biometrics.fingerprint@2.1-service odm/bin/init.oplus.fingerprints.sh