LG8n: rootdir: Change init.gesture.sh code

* Instead of trying to read from a secure key, use it to assist dt2w service

Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
Shirayuki39 2024-08-13 22:44:40 +08:00
parent 856f196618
commit 70cd3788d3

View file

@ -4,10 +4,10 @@
while [[ -z $(getprop sys.boot_completed) ]]; do sleep 5; done
while true; do
dt2wstate=$(settings get secure double_tap_to_wake)
if [ "$dt2wstate" == "0" ]; then
dt2w_state=$(getprop persist.sys.MT6789.dt2w)
if [ "$dt2w_state" == "0" ]; then
echo cc2 > /proc/gesture_function
elif [ "$dt2wstate" == "1" ]; then
elif [ "$dt2w_state" == "1" ]; then
echo cc1 > /proc/gesture_function
fi
sleep 1