sm6375-common: rootdir: Fix fingerprint goodix events

[1] - this fixing the goodix issue when long press the powerbutton due
annoying kernel events

Change-Id: I8d3e867de2f0c30a46c371a36b691cb9011bd519
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
This commit is contained in:
coduxer
2023-03-08 20:24:09 +02:00
committed by boedhack99
parent 863611c9ba
commit 49da079a94
6 changed files with 41 additions and 0 deletions

View File

@@ -17,6 +17,13 @@ LOCAL_SRC_FILES := bin/init.mi.btmac.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.goodix.events.sh
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := bin/init.goodix.events.sh
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES)
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.kernel.post_boot.sh

View File

@@ -0,0 +1,8 @@
#! /vendor/bin/sh
EVENT_NAME=$(tr "\n" " " < /proc/bus/input/devices | \
grep -o "uinput-goodix.*" | \
grep -Eo "event[0-9]+" | \
head -1)
[ -z "$EVENT_NAME" ] && exit
rm /dev/input/$EVENT_NAME

View File

@@ -254,6 +254,16 @@ service checknv /system/bin/checknv
oneshot
seclabel u:r:checknv:s0
service vendor.goodix-events /vendor/bin/init.goodix.events.sh
class late_start
user root
group root system input
disabled
oneshot
# Sync attribute value between system and vendor
on property:persist.sys.mcc.mnc=*
setprop persist.vendor.mcc.mnc ${persist.sys.mcc.mnc}
on property:sys.boot_completed=1
start vendor.goodix-events