From c7a171b3eadfa5a084d17387da8896f8a5be2dbd Mon Sep 17 00:00:00 2001 From: AndroidHQ254 Date: Wed, 17 Jul 2024 07:46:45 +0800 Subject: [PATCH] LG8n: Link older libhidlbase & libbinder for PQ service F linker : CANNOT LINK EXECUTABLE /vendor/bin/hw/vendor.mediatek.hardware.pq@2.2-service: cannot locate symbol _ZN7android8String16aSEOS0_ referenced by /apex/com.android.vndk.v34/lib64/libhidlbase.so... --- extract-files.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extract-files.sh b/extract-files.sh index 72ff322..f4512e6 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -78,6 +78,11 @@ function blob_fixup { vendor/lib*/hw/mt6789/vendor.mediatek.hardware.pq@2.15-impl.so) "$PATCHELF" --replace-needed "libutils.so" "libutils-v32.so" "$2" ;; + vendor/bin/hw/vendor.mediatek.hardware.pq@2.2-service) + "${PATCHELF}" --replace-needed "libbinder.so" "libbinder-v31.so" "${2}" + "${PATCHELF}" --replace-needed "libhidlbase.so" "libhidlbase-v31.so" "${2}" + "${PATCHELF}" --replace-needed "libutils.so" "libutils-v31.so" "${2}" + ;; vendor/bin/hw/vendor.mediatek.hardware.mtkpower@1.0-service) "${PATCHELF}" --replace-needed "android.hardware.power-V2-ndk_platform.so" "android.hardware.power-V2-ndk.so" "${2}" ;;