commit | 3a2172b79bd9d07f3314e3d392ec4701116620cb | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Thu Mar 28 15:47:44 2019 -0700 |
committer | Josh Gao <jmgao@google.com> | Thu Mar 28 15:47:44 2019 -0700 |
tree | a8b0ebda996189f7cdec5a5b3a9256c248165cbc | |
parent | dcaede059f840a53c660f360cedc481f5fba1a52 [diff] [blame] |
adb: make `adb reconnect` perform a USB reset. Bug: http://b/128941083 Test: manual Change-Id: Iaf46d2c46cc82b590768004486d119244591c8e2
diff --git a/daemon/usb_legacy.cpp b/daemon/usb_legacy.cpp index 7ace59d..b65727a 100644 --- a/daemon/usb_legacy.cpp +++ b/daemon/usb_legacy.cpp
@@ -307,6 +307,10 @@ return 0; } +void usb_reset(usb_handle* h) { + usb_close(h); +} + void usb_kick(usb_handle* h) { h->kick(h); }