mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-22 21:56:26 -08:00
Shirayuki39
9e8121393c
* may have to be adapted for every rom since not every rom uses the same dt2w settings key lol Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
13 lines
324 B
Bash
13 lines
324 B
Bash
# Enable DT2W
|
|
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
|
|
echo cc2 > /proc/gesture_function
|
|
elif [ "$dt2wstate" == "1" ]; then
|
|
echo cc1 > /proc/gesture_function
|
|
fi
|
|
sleep 1
|
|
done
|