From aa9cafe2b5d25273aacaa4f19044e261397a0271 Mon Sep 17 00:00:00 2001 From: Giovanni Ricca Date: Wed, 6 Dec 2023 09:50:13 +0100 Subject: [PATCH] sky: Build goodix lib from source Change-Id: Ibaf1b9489b509318032c720c9c83e315cfe6ab3e --- Android.bp | 1 + biometrics/Android.bp | 11 +++++++++++ device.mk | 3 +++ proprietary-files.txt | 1 - 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 biometrics/Android.bp diff --git a/Android.bp b/Android.bp index 9ba2427..83dbdc5 100644 --- a/Android.bp +++ b/Android.bp @@ -8,5 +8,6 @@ soong_namespace { imports: [ "hardware/qcom-caf/bootctrl", "vendor/qcom/opensource/commonsys-intf/display", + "hardware/xiaomi", ], } diff --git a/biometrics/Android.bp b/biometrics/Android.bp new file mode 100644 index 0000000..8feef34 --- /dev/null +++ b/biometrics/Android.bp @@ -0,0 +1,11 @@ +// +// Copyright (C) 2023 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// + +cc_library_shared { + name: "libvendor.goodix.hardware.biometrics.fingerprint@2.1", + shared_libs: ["vendor.goodix.hardware.biometrics.fingerprint@2.1"], + vendor_available: true, +} diff --git a/device.mk b/device.mk index be19f3b..32cd6c6 100644 --- a/device.mk +++ b/device.mk @@ -173,6 +173,9 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ android.hardware.biometrics.fingerprint@2.3-service.xiaomi +PRODUCT_PACKAGES += \ + libvendor.goodix.hardware.biometrics.fingerprint@2.1.vendor + PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml diff --git a/proprietary-files.txt b/proprietary-files.txt index 72a52e0..6e2f079 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -978,7 +978,6 @@ vendor/lib64/libgf_ca.so vendor/lib64/libgf_hal.so vendor/lib64/libgoodixhwfingerprint.so vendor/lib64/libmifpext.so -vendor/lib64/libvendor.goodix.hardware.biometrics.fingerprint@2.1.so vendor/lib64/vendor.qti.hardware.fingerprint@1.0.so vendor/lib64/vendor.xiaomi.hardware.fingerprintextension@1.0.so