Disable USB contaminant detection when the disable flag is true
Bug: 192208389
Test: Manually tested
Change-Id: Iee32ec4175283417eaa8d86d65c2a80757ebc32a
Signed-off-by: Darren Hsu <darrenhsu@google.com>
diff --git a/disable_contaminant_detection.sh b/disable_contaminant_detection.sh
new file mode 100755
index 0000000..97ae794
--- /dev/null
+++ b/disable_contaminant_detection.sh
@@ -0,0 +1,3 @@
+#!/vendor/bin/sh
+
+echo 0 > "$(find /sys/devices/platform/10d50000.hsi2c -name contaminant_detection)"