From 44ff68f84c762aa5f69b2cdd60256ce4c8e82894 Mon Sep 17 00:00:00 2001 From: fjrXTR Date: Fri, 26 Jul 2024 00:46:22 +0800 Subject: [PATCH] LG8n: Build Required libs for QPR3 * And Patch libcamera_metadata for Camera provider * ref - Evilmove/android_device_spartan@55eb0b6 ObsidianMaximus/android_device_realme_sm8250-common@a0ed2f1 Change-Id: I4696adea73edc5a8cfe530df6d89c5b244009722 Signed-off-by: fjrXTR Signed-off-by: Shirayuki39 --- device.mk | 7 +++++++ extract-files.sh | 1 + 2 files changed, 8 insertions(+) diff --git a/device.mk b/device.mk index 020a585..b2ab357 100644 --- a/device.mk +++ b/device.mk @@ -98,6 +98,7 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ libcamera_metadata.vendor \ + libcamera_metadata_shim \ libdng_sdk.vendor \ libexpat.vendor \ libpng.vendor @@ -421,6 +422,12 @@ PRODUCT_PACKAGES += \ android.hardware.radio.config@1.3.vendor \ android.hardware.radio@1.6.vendor +# Required for QPR3 +PRODUCT_PACKAGES += \ + libjsoncpp.vendor \ + libsqlite.vendor \ + libdumpstateutil.vendor + # Secure Element PRODUCT_PACKAGES += \ android.hardware.secure_element@1.2.vendor diff --git a/extract-files.sh b/extract-files.sh index 2967ea8..2c8c541 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -107,6 +107,7 @@ function blob_fixup { ;; vendor/lib64/hw/mt6789/android.hardware.camera.provider@2.6-impl-mediatek.so) "${PATCHELF}" --replace-needed "libutils.so" "libutils-v32.so" "${2}" + grep -q libcamera_metadata_shim.so "${2}" || "${PATCHELF}" --add-needed libcamera_metadata_shim.so "${2}" ;; vendor/bin/hw/vendor.mediatek.hardware.mtkpower@1.0-service | vendor/lib64/android.hardware.power-service-mediatek.so) "${PATCHELF}" --replace-needed "android.hardware.power-V2-ndk_platform.so" "android.hardware.power-V2-ndk.so" "$2"