summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorKyle Tso <kyletso@google.com>2022-09-28 11:00:20 +0800
committerTreeHugger Robot <treehugger-gerrit@google.com>2022-09-30 08:56:59 +0000
commit2307196bb89d53377c393186a3ffd3fe896cdfed (patch)
treea3fd229a5f7a7a8f551c0bf102f4ecead6cde779 /conf
parentbfb57fd23f075ca2086a2cda6105f17b05dd8eca (diff)
downloadgs201-2307196bb89d53377c393186a3ffd3fe896cdfed.tar.gz
Disable USB contaminant detection when the disable flag is true
(ported from 6b1106498e1164f46b9a895ed2258a20a0c7a7b5) Bug: 244658328 Signed-off-by: Kyle Tso <kyletso@google.com> Change-Id: I9d17748d24f3c402deaddb8a9bca89f8ef606056 Merged-In: I9d17748d24f3c402deaddb8a9bca89f8ef606056
Diffstat (limited to 'conf')
-rw-r--r--conf/init.gs201.usb.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/init.gs201.usb.rc b/conf/init.gs201.usb.rc
index 36203f4..4ac57f9 100644
--- a/conf/init.gs201.usb.rc
+++ b/conf/init.gs201.usb.rc
@@ -194,3 +194,6 @@ on property:sys.usb.config=charger && property:sys.usb.configfs=1
on property:ro.bootmode=usbuwb
setprop persist.vendor.usb.usbradio.config uwb_acm
+
+on property:vendor.usb.contaminantdisable=true
+ exec /vendor/bin/hw/disable_contaminant_detection.sh