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 <fajarslebew31@gmail.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
fjrXTR 2024-07-26 00:46:22 +08:00 committed by Shirayuki39
parent 035c860c1a
commit 44ff68f84c
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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"