Detect touchscreen with dt2w node

This commit is contained in:
Pierre-Hugues Husson 2019-12-01 17:02:34 +01:00
parent b701c84f58
commit 946ead6db3
1 changed files with 7 additions and 0 deletions

View File

@ -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