LG8n: Fixup SONAMES of moved libraries

* Required to pass check_elf_files
Signed-off-by: Woomymy <woomy@woomy.be>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
Woomymy 2024-07-17 14:15:55 +08:00 committed by Shirayuki39
parent f1b0452434
commit 8324c7f693
2 changed files with 12 additions and 4 deletions

View file

@ -61,8 +61,13 @@ function blob_fixup {
vendor/bin/hw/android.hardware.lights-service.mediatek) vendor/bin/hw/android.hardware.lights-service.mediatek)
"$PATCHELF" --replace-needed "android.hardware.light-V1-ndk_platform.so" "android.hardware.light-V1-ndk.so" "$2" "$PATCHELF" --replace-needed "android.hardware.light-V1-ndk_platform.so" "android.hardware.light-V1-ndk.so" "$2"
;; ;;
vendor/lib/hw/audio.primary.mt6789.so) vendor/lib*/libspeech_enh_lib.so|\
;& vendor/lib64/libwifi-hal-mtk.so|\
vendor/lib*/hw/power.mt6789.so|\
vendor/lib*/hw/sound_trigger.primary.mt6789.so|\
vendor/lib64/libnir_neon_driver_ndk.mtk.vndk.so)
"${PATCHELF}" --set-soname "$(basename "${1}")" "${2}"
;;
vendor/lib64/hw/audio.primary.mt6789.so) vendor/lib64/hw/audio.primary.mt6789.so)
"${PATCHELF}" --replace-needed "libutils.so" "libutils-v31.so" "${2}" "${PATCHELF}" --replace-needed "libutils.so" "libutils-v31.so" "${2}"
;; ;;

View file

@ -2740,12 +2740,15 @@ vendor/etc/init/bootperf.rc
vendor/etc/init/init.fpsgo.rc vendor/etc/init/init.fpsgo.rc
vendor/etc/init/vendor.mediatek.hardware.mtkpower@1.0-init.rc vendor/etc/init/vendor.mediatek.hardware.mtkpower@1.0-init.rc
vendor/etc/init/vendor.mediatek.hardware.mtkpower@1.0-service.rc vendor/etc/init/vendor.mediatek.hardware.mtkpower@1.0-service.rc
-vendor/etc/vintf/manifest/power-default.xml:vendor/etc/vintf/manifest/power-mtk.xml
vendor/lib/hw/power.default.so:vendor/lib/hw/power.mt6789.so
vendor/lib/hw/vendor.mediatek.hardware.mtkpower@1.2-impl.so vendor/lib/hw/vendor.mediatek.hardware.mtkpower@1.2-impl.so
vendor/lib/libperfctl_vendor.so vendor/lib/libperfctl_vendor.so
vendor/lib/libpower_timer.so vendor/lib/libpower_timer.so
vendor/lib/libpowerhal.so vendor/lib/libpowerhal.so
vendor/lib/libpowerhalwrap_vendor.so vendor/lib/libpowerhalwrap_vendor.so
vendor/lib/vendor.mediatek.hardware.power@2.0.so vendor/lib/vendor.mediatek.hardware.power@2.0.so
vendor/lib64/hw/power.default.so:vendor/lib64/hw/power.mt6789.so
vendor/lib64/hw/vendor.mediatek.hardware.mtkpower@1.2-impl.so vendor/lib64/hw/vendor.mediatek.hardware.mtkpower@1.2-impl.so
vendor/lib64/libperfctl_vendor.so vendor/lib64/libperfctl_vendor.so
vendor/lib64/libpower_timer.so vendor/lib64/libpower_timer.so
@ -2868,8 +2871,8 @@ vendor/bin/hw/android.hardware.secure_element@1.2-service-mediatek
vendor/etc/init/android.hardware.secure_element@1.2-service-mediatek.rc vendor/etc/init/android.hardware.secure_element@1.2-service-mediatek.rc
# Soundtrigger # Soundtrigger
vendor/lib/hw/sound_trigger.primary.default.so -vendor/lib/hw/sound_trigger.primary.default.so:vendor/lib/hw/sound_trigger.primary.mt6789.so:
vendor/lib64/hw/sound_trigger.primary.default.so -vendor/lib64/hw/sound_trigger.primary.default.so:vendor/lib64/hw/sound_trigger.primary.mt6789.so
# Sensors # Sensors
vendor/lib/libfile_op.so vendor/lib/libfile_op.so