diff options
author | Josh Gao <jmgao@google.com> | 2020-03-27 18:09:56 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2020-03-30 16:43:06 -0700 |
commit | 6b55e755786fff16a04471b56cfaf8a79adf8004 (patch) | |
tree | 6463441e90f25b44d46e174612637dd7713c8170 /adb.h | |
parent | de9078dd2983da810c9a53c2cb2f230ab838829a (diff) | |
download | adb-6b55e755786fff16a04471b56cfaf8a79adf8004.tar.gz |
Move adbd's legacy USB implementation to fastboot.
This code path is effectively dead in adbd, and fastboot's dependency on
libadbd makes it hard to refactor adbd's dependencies.
Bug: http://b/150317254
Test: built and flashed aosp_walleye-eng
Change-Id: I5118136d32fdcbbd011559ed0a4a71e1dc7bf064
Diffstat (limited to 'adb.h')
-rw-r--r-- | adb.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -29,7 +29,6 @@ #include "fdevent/fdevent.h" #include "socket.h" #include "types.h" -#include "usb.h" constexpr size_t MAX_PAYLOAD_V1 = 4 * 1024; constexpr size_t MAX_PAYLOAD = 1024 * 1024; @@ -139,7 +138,6 @@ int adb_server_main(int is_daemon, const std::string& socket_spec, int ack_reply /* initialize a transport object's func pointers and state */ int init_socket_transport(atransport* t, unique_fd s, int port, int local); -void init_usb_transport(atransport* t, usb_handle* usb); std::string getEmulatorSerialString(int console_port); #if ADB_HOST @@ -253,4 +251,5 @@ void update_transport_status(); // Wait until device scan has completed and every transport is ready, or a timeout elapses. void adb_wait_for_device_initialization(); +void usb_init(); #endif |