From be68d0f98ead43519eb4011100221d0cbd99e920 Mon Sep 17 00:00:00 2001 From: Tim Zimmermann Date: Wed, 17 Aug 2022 18:08:25 +0200 Subject: [PATCH] Use libutils from VNDK32 for HWC and sensors * For sensors.sensorhub.so and libexynosdisplay.so * Abort message: 'incStrongRequireStrong() called on 0x7586a3a1c0 which isn't already owned' Change-Id: Ibca93bc356b81e205c77df5992b2ae1ded9bb83b --- extract-files.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extract-files.sh b/extract-files.sh index a6ac7ab..41657a4 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -61,6 +61,11 @@ extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTIO # Fix proprietary blobs BLOB_ROOT="$ANDROID_ROOT"/vendor/"$VENDOR"/"$DEVICE"/proprietary +"${PATCHELF}" --replace-needed "libutils.so" "libutils-v32.so" "${BLOB_ROOT}"/vendor/lib/sensors.chub.so +"${PATCHELF}" --replace-needed "libutils.so" "libutils-v32.so" "${BLOB_ROOT}"/vendor/lib64/sensors.chub.so +"${PATCHELF}" --replace-needed "libutils.so" "libutils-v32.so" "${BLOB_ROOT}"/vendor/lib/hw/sensors.kane_sprout.so +"${PATCHELF}" --replace-needed "libutils.so" "libutils-v32.so" "${BLOB_ROOT}"/vendor/lib64/hw/sensors.kane_sprout.so + # Remove libhidltransport dependency "${PATCHELF}" --remove-needed "libhidltransport.so" "${BLOB_ROOT}"/vendor/lib/libril_sitril.so "${PATCHELF}" --remove-needed "libhidltransport.so" "${BLOB_ROOT}"/vendor/lib64/libril_sitril.so -- 2.20.1