From b21660e22f4cbce054c433d13c43b9860823a0ae Mon Sep 17 00:00:00 2001 From: Arian Date: Sun, 23 Jun 2024 21:43:02 +0700 Subject: [PATCH] shark: Build fingerprint extension interface from source * Also patch libgoodixhwfingerprint.so for use vendor.goodix.hardware.fingerprintextension@1.0.so Co-authored-by: Andrey Sprynga Change-Id: I08db4948ec1d4b3df5f0c57f87c00575ab3fe778 --- device.mk | 4 ++++ extract-files.sh | 3 +++ proprietary-files.txt | 3 +-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/device.mk b/device.mk index 5ca587a..fdfd322 100644 --- a/device.mk +++ b/device.mk @@ -246,6 +246,10 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ fastbootd +# Fingerprint +PRODUCT_PACKAGES += \ + vendor.goodix.hardware.fingerprintextension@1.0.vendor + # Health PRODUCT_PACKAGES += \ android.hardware.health@2.0.vendor \ diff --git a/extract-files.sh b/extract-files.sh index a28a20e..f8139c8 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -42,6 +42,9 @@ function blob_fixup() { vendor/lib/camera/components/com.qti.node.watermark.so) grep -q "libpiex_shim.so" "${2}" || ${PATCHELF} --add-needed "libpiex_shim.so" "${2}" ;; + vendor/lib64/libgoodixhwfingerprint.so) + patchelf --replace-needed "libvendor.goodix.hardware.fingerprintextension@1.0.so" "vendor.goodix.hardware.fingerprintextension@1.0.so" "${2}" + ;; esac } diff --git a/proprietary-files.txt b/proprietary-files.txt index 9a18ead..2673cd2 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -544,8 +544,7 @@ vendor/lib/vendor.qti.esepowermanager@1.0.so # Fingerprint vendor/lib64/hw/fingerprint.default.so:vendor/lib64/hw/fingerprint.goodix.sdm845.so -vendor/lib64/libgoodixhwfingerprint.so -vendor/lib64/libvendor.goodix.hardware.fingerprintextension@1.0.so +vendor/lib64/libgoodixhwfingerprint.so|33f9cf91b30b72ad9ed5884a28e252429fb21d9b vendor/lib64/libgf_ca.so vendor/lib64/libgf_hal.so