From bab2b740cc7c15eafa37f430c0e3489a7a6b7133 Mon Sep 17 00:00:00 2001 From: Sebastiano Barezzi Date: Tue, 12 Oct 2021 18:41:32 +0200 Subject: [PATCH] lisa: Patch xiaomi camera libraries The modified library NOPs out the instruction to change binder threadpool, allowing the library to load and camera to work on S. Change-Id: I1ef0ed29e4a2eb820826e5d7df1fa53c9e3df584 --- extract-files.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extract-files.sh b/extract-files.sh index 228985f..f77de57 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -14,6 +14,9 @@ function blob_fixup() { vendor/lib64/hw/camera.qcom.so) sed -i "s/\x73\x74\x5F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x6C\x69\x63/\x63\x61\x6D\x65\x72\x61\x5F\x63\x6E\x66\x2E\x74\x78\x74/g" "${2}" ;; + vendor/lib64/hw/camera.xiaomi.so) + "${SIGSCAN}" -p "29 07 00 94" -P "1F 20 03 D5" -f "${2}" + ;; esac }