From 59e0aa7dec751def8c679edd6de2abb67495002f Mon Sep 17 00:00:00 2001 From: R0rt1z2 Date: Wed, 7 Dec 2022 17:11:44 +0000 Subject: [PATCH] rosemary: Patch Goodix fingerprint HAL to ignore conflicting events This will fix the long standing issue of the screenshot button combination not working properly in AOSP for Goodix sensors. The patch will replace the first instruction of the 'gf_hal_send_key_event' function with a ret so that the touch events which conflict with AOSP do not get reported to userspace. Change-Id: I9e15a46b519fd7f75e39af4690c271aa63af4790 --- extract-files.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extract-files.sh b/extract-files.sh index e7ba26e..17134b0 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -84,6 +84,10 @@ function blob_fixup { vendor/lib64/libcam.halsensor.so) "${PATCHELF}" --add-needed "libshim_utils.so" "${2}" ;; + vendor/lib64/libgf_hal.so) + xxd -p "${2}" | sed "s/ffc301d1fd7b06a9fd830191e8031f2ae2037db2a94300d14ad03bd54a15/000080d2c0035fd6fd830191e8031f2ae2037db2a94300d14ad03bd54a15/g" | xxd -r -p > "${2}".patched + mv "${2}".patched "${2}" + ;; vendor/bin/hw/android.hardware.keymaster@4.0-service.beanpod) "${PATCHELF}" --add-needed "libshim_beanpod.so" "${2}" ;;