From 5074fd792827b9f01c63da3a53fe29c0a9a21dc0 Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Sun, 1 Sep 2019 22:43:29 +0200 Subject: sdm660-common: Nuke libMiWatermark * This lib is creating troubles on android 10 requiring old libs in vendor * Other than that, it's the only culprit for vndk runtime being kept disabled * Nuke this lib via a empty shim providing the symbols to the camera hal Change-Id: Ia844e973299d3e1be0a37473e76325be1828415d --- extract-files.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extract-files.sh') diff --git a/extract-files.sh b/extract-files.sh index 88517a6..8528cec 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -70,6 +70,10 @@ function blob_fixup() { patchelf --remove-needed vendor.xiaomi.hardware.mtdservice@1.0.so "${2}" sed -i "s|/system/etc/firmware|/vendor/firmware\x0\x0\x0\x0|g" "${2}" ;; + + vendor/lib/hw/camera.sdm660.so) + patchelf --replace-needed libMiWatermark.so libMiWatermark_shim.so "${2}" + ;; esac } -- cgit v1.2.3