From 946ead6db381d6f685fa86b3bddce75e8ffe6dc0 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Sun, 1 Dec 2019 17:02:34 +0100 Subject: [PATCH] Detect touchscreen with dt2w node --- rw-system.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rw-system.sh b/rw-system.sh index 4ab567b..65a4207 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -462,3 +462,10 @@ if [ -c /dev/dsm ];then chcon u:object_r:teecd_data_file_system:s0 /data/sec_storage_data mount /data/sec_storage_data /sec_storage fi + +#Try to detect DT2W +for ev in $(cd /sys/class/input;echo event*);do + if [ -f "/sys/class/input/$ev/device/device/gesture_mask" ];then + setprop persist.sys.phh.dt2w_evnode /dev/input/$ev + fi +done