mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-27 17:18:49 +00:00
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:
@@ -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
|
||||
|
||||
8
rootdir/bin/init.goodix.events.sh
Normal file
8
rootdir/bin/init.goodix.events.sh
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user