mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-22 21:56:26 -08:00
Shirayuki39
70cd3788d3
* Instead of trying to read from a secure key, use it to assist dt2w service Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
15 lines
338 B
Bash
15 lines
338 B
Bash
#!/vendor/bin/sh
|
|
|
|
# Enable DT2W
|
|
while [[ -z $(getprop sys.boot_completed) ]]; do sleep 5; done
|
|
|
|
while true; do
|
|
dt2w_state=$(getprop persist.sys.MT6789.dt2w)
|
|
if [ "$dt2w_state" == "0" ]; then
|
|
echo cc2 > /proc/gesture_function
|
|
elif [ "$dt2w_state" == "1" ]; then
|
|
echo cc1 > /proc/gesture_function
|
|
fi
|
|
sleep 1
|
|
done
|