From 31e7a9e678014b5dbdb3ff5746a42285571878bd Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Mon, 1 Jun 2020 19:29:55 +0200 Subject: [PATCH] Add persist.sys.phh.vsmart.dt2w for vsmart double-tap-to-wake --- phh-prop-handler.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/phh-prop-handler.sh b/phh-prop-handler.sh index c857558..9dc9a2a 100644 --- a/phh-prop-handler.sh +++ b/phh-prop-handler.sh @@ -129,3 +129,16 @@ if [ "$1" == "persist.sys.phh.caf.audio_policy" ];then restartAudio exit fi + +if [ "$1" == "persist.sys.phh.vsmart.dt2w" ];then + if [[ "$prop_value" != "0" && "$prop_value" != "1" ]]; then + exit 1 + fi + + if [[ "$prop_value" == 1 ]];then + echo 0 > /sys/class/vsm/tp/gesture_control + else + echo > /sys/class/vsm/tp/gesture_control + fi + exit +fi