commit | 1bec44836ed6b29e128849b7be34dc7b2a214e76 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Thu Feb 23 12:40:54 2017 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Thu Feb 23 12:40:57 2017 -0700 |
tree | 24991990db8a7fcf6f502077dfd05360c5d1e166 | |
parent | bfaaa44f274050d708b149bc94a4250e4cc5ca32 [diff] |
Take another pass at detecting USB connections. For some odd reason, devices with ADB connections in test harnesses are reporting that they're connected over an AC charger instead of USB charger. So switch to reading a sysfs file to detect an active USB connection. Test: builds, boots, rescue disabled when USB connection present Bug: 34872406 Change-Id: I4c2cb9ed7e51b9692ce81eb0ef4945dae0036212