rosemary: Patch FPC fingerprint HAL to ignore conflicting events

This will fix the long standing issue of the screenshot button
combination not working properly in AOSP. The patch will change the
first instruction of the report_input_event function with a ret so
that the touch events which conflict with AOSP do not get reported
to userspace.

Signed-off-by: bengris32 <bengris32@protonmail.ch>
Change-Id: Ib36d784b28e0fd18d4bda11cdafaf9865f55e5c9
This commit is contained in:
bengris32
2022-12-07 17:20:06 +00:00
committed by Matsvei Niaverau
parent 59e0aa7dec
commit 615e1b9cfe

View File

@@ -88,6 +88,10 @@ function blob_fixup {
xxd -p "${2}" | sed "s/ffc301d1fd7b06a9fd830191e8031f2ae2037db2a94300d14ad03bd54a15/000080d2c0035fd6fd830191e8031f2ae2037db2a94300d14ad03bd54a15/g" | xxd -r -p > "${2}".patched
mv "${2}".patched "${2}"
;;
vendor/lib64/hw/fingerprint.fpc.default.so)
xxd -p "${2}" | sed "s/5fd600000000ff4301d1fd7b02a9fd830091f51b00f9f44f04a954d03bd5/5fd600000000c0035fd6fd7b02a9fd830091f51b00f9f44f04a954d03bd5/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}"
;;