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...
This commit is contained in:
AndroidHQ254 2024-07-17 07:46:45 +08:00 committed by Shirayuki39
parent 3c77cdc9d7
commit c7a171b3ea

View file

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