LG8n: Link to the correct shims for libcamera_metadata and libsource

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
Shirayuki39 2024-07-31 01:33:45 +08:00
parent e3c051f79e
commit 6fb14f6697

View file

@ -104,7 +104,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}"
grep -q libshim_camera_metadata.so "${2}" || "${PATCHELF}" --add-needed libshim_camera_metadata.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"
@ -126,7 +126,7 @@ function blob_fixup {
"${PATCHELF}" --add-needed "libshim_sensors.so" "${2}"
;;
lib64/libsource.so)
grep -q libui_shim.so "$2" || "$PATCHELF" --add-needed libui_shim.so "$2"
grep -q libshim_ui.so "$2" || "$PATCHELF" --add-needed libshim_ui.so "$2"
;;
esac
}