Add persist.sys.phh.vsmart.dt2w for vsmart double-tap-to-wake
This commit is contained in:
parent
afb17027d2
commit
0359b91442
@ -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
|
||||
|
3
vndk.rc
3
vndk.rc
@ -41,3 +41,6 @@ on property:persist.sys.phh.disable_audio_effects=*
|
||||
on property:persist.sys.phh.caf.audio_policy=*
|
||||
exec u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "persist.sys.phh.caf.audio_policy"
|
||||
|
||||
on property:persist.sys.phh.vsmart.dt2w=*
|
||||
exec u:r:phhsu_daemon:s0 root -- /system/bin/phh-prop-handler.sh "persist.sys.phh.vsmart.dt2w"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user