twolip: Switch to patchelf v0.17.2 for patching our blobs

[tedomi2705]: Adapt with twolip blobs

* All our fingerprint blobs are quite nasty, patchelf v0.9 could
  easily break loading of these fingerprint blobs

Change-Id: I8c3976f99c26314c97b2f1384a9091c7d7c29566
This commit is contained in:
Alexander Martinz
2023-09-27 17:13:12 +02:00
committed by Le Hong Duc
parent b837baa161
commit fbb871278d

View File

@@ -81,7 +81,7 @@ function blob_fixup() {
sed -i "s|/system/etc/firmware|/vendor/firmware\x0\x0\x0\x0|g" "${2}"
;;
vendor/lib64/libvendor.goodix.hardware.fingerprint@1.0.so|vendor/lib64/vendor.xiaomi.hardware.mlipay@1.1.so|vendor/lib64/vendor.xiaomi.hardware.mlipay@1.0.so|vendor/lib64/vendor.qti.hardware.fingerprint@1.0.so)
"${PATCHELF}" --replace-needed "libhidlbase.so" "libhidlbase-v32.so" "${2}"
"${PATCHELF_0_17_2}" --replace-needed "libhidlbase.so" "libhidlbase-v32.so" "${2}"
;;
vendor/bin/pm-service)
grep -q libutils-v33.so "${2}" || "${PATCHELF}" --add-needed "libutils-v33.so" "${2}"