mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-31 11:41:02 +00:00
[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>
9 lines
195 B
Bash
9 lines
195 B
Bash
#! /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
|