Merge "thermal: enable SendPowerHint of skin-therm-monitor" into rvc-d1-dev am: 2fc0bfbfcc

Original change: https://googleplex-android-review.googlesource.com/c/device/google/bramble/+/12356472

Change-Id: I47c4e18acdd68d0a30397fea1e873ce2b5a8228e
diff --git a/bramble/init.bramble.rc b/bramble/init.bramble.rc
index 21fae7c..e6b5830 100644
--- a/bramble/init.bramble.rc
+++ b/bramble/init.bramble.rc
@@ -19,6 +19,21 @@
 on property:vendor.all.modules.ready=1
     chown system system /sys/class/spi_master/spi0/spi0.0/stm_fts_cmd
     chown system system /sys/class/spi_master/spi0/spi0.0/audio_status
+    chown system system /sys/class/spi_master/spi0/spi0.0/glove_mode
+
+# Toggle glove_mode according to touch_sensitivity_mode
+on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
+    write /sys/class/spi_master/spi0/spi0.0/glove_mode 00
+
+on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
+    write /sys/class/spi_master/spi0/spi0.0/glove_mode 01
+
+# 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
 
 service vendor.mdm_helper /vendor/bin/mdm_helper
     class core