LG8n: Patchelf C2 service to link against libavservices_minijail

* The libavservices_minijail_vendor library was substituted for
  the vendor variant of libavservices_minijail in Android 13.

* Patchelf the C2 service to link against libavservices_minijail
  instead of libavservices_minijail_vendor.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
bengris32 2024-07-17 08:06:27 +08:00 committed by Shirayuki39
parent 573053ec58
commit f6be5fba9d

View file

@ -78,6 +78,9 @@ function blob_fixup {
vendor/etc/init/android.hardware.media.c2@1.2-mediatek.rc) vendor/etc/init/android.hardware.media.c2@1.2-mediatek.rc)
sed -i 's/@1.2-mediatek/@1.2-mediatek-64b/g' "${2}" sed -i 's/@1.2-mediatek/@1.2-mediatek-64b/g' "${2}"
;; ;;
vendor/bin/hw/android.hardware.media.c2@1.2-mediatek-64b)
"${PATCHELF}" --replace-needed "libavservices_minijail_vendor.so" "libavservices_minijail.so" "${2}"
;;
vendor/lib*/hw/mt6789/vendor.mediatek.hardware.pq@2.15-impl.so) vendor/lib*/hw/mt6789/vendor.mediatek.hardware.pq@2.15-impl.so)
"$PATCHELF" --replace-needed "libutils.so" "libutils-v32.so" "$2" "$PATCHELF" --replace-needed "libutils.so" "libutils-v32.so" "$2"
;; ;;