gs101: support touch sensitivity mode switching

Route a debug system property to a persist system property to control
the touch driver attribute file glove_mode.

0: default sensitivity mode (default)
1: high sensitivity mode

Bug: 173330977
Bug: 174189638
Bug: 174191024
Test: manual test
Signed-off-by: Tai Kuo <taikuo@google.com>
Change-Id: Ia54ea2b84340c34943809373b87c31604d2ae478
diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc
index c288888..9779cb5 100644
--- a/conf/init.gs101.rc
+++ b/conf/init.gs101.rc
@@ -535,6 +535,13 @@
     chown system system /sys/devices/virtual/sec/tsp/cmd_result
     chown system system /sys/devices/virtual/sec/tsp/status
 
+# Route touch_sensitivity_mode to persist
+on property:debug.touch_sensitivity_mode=0
+    setprop persist.vendor.touch_sensitivity_mode 0
+
+on property:debug.touch_sensitivity_mode=1
+    setprop persist.vendor.touch_sensitivity_mode 1
+
 on property:init.svc.vendor.charger=running
     stop keymaster-4-0