d2s: Use libutils from VNDK32 for HWC and sensors
* Abort message: 'incStrongRequireStrong() called on 0x7586a3a1c0 which isn't already owned'
Change-Id: Icd5a845ecf5226d5b2c74c5d19ba699eb74acda0
diff --git a/extract-files.sh b/extract-files.sh
index 24d4824..5d14daa 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -20,6 +20,9 @@
xxd -p "${2}" | sed "s/8b022036/1f2003d5/g" | xxd -r -p > "${2}".patched
mv "${2}".patched "${2}"
;;
+ vendor/lib*/libexynosdisplay.so|vendor/lib*/hw/hwcomposer.exynos9825.so|vendor/lib*/sensors.*.so)
+ "${PATCHELF}" --replace-needed libutils.so libutils-v32.so "${2}"
+ ;;
vendor/lib64/libiu456_datapath_processor.so)
"${PATCHELF}" --add-needed libshim_sfpex.so "${2}"
;;