Add persist.sys.phh.vsmart.dt2w for vsmart double-tap-to-wake

This commit is contained in:
Pierre-Hugues Husson 2020-06-01 19:29:55 +02:00 committed by tboy1991
parent 350f7309d7
commit 31e7a9e678

View File

@ -129,3 +129,16 @@ if [ "$1" == "persist.sys.phh.caf.audio_policy" ];then
restartAudio restartAudio
exit exit
fi 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