Commit graph

7 commits

Author SHA1 Message Date
Tobias Salzmann 029cc6bee4 Respect specified adb server port when issuing adb start-server (#28)
When a custom host/port is specified for connecting to the adb server, they are used to establish the connection. However, if the server is not running, they are not passed to the `adb start-server` command, and so the connection will fail because the server isn't listening on the expected port.

This change passes the address to the command, according to the following line from the adb usage info:
```
 -L SOCKET  listen on given socket for adb server [default=tcp:localhost:5037]
```
2017-05-29 17:51:45 -07:00
Mandar Limaye 5d71bb68b4 refactor code 2016-08-26 20:17:20 -05:00
Mandar Limaye daaa0fa467 Add conditional build files for unix.Access.
This will allow library to be built on windows.
2016-08-09 12:07:21 -05:00
Zach Klippenstein 701ea3a245 Moved error definitions to an internal package, deleted the confusing util package.
Public API for error querying and formatting lives in top-level package.
2016-05-22 10:49:34 -07:00
Zach Klippenstein b43886affb Renamed: HostClient -> Adb, DeviceClient -> Device, Server -> server. 2016-05-21 22:33:20 -07:00
Zach Klippenstein 5fb43080b6 Renamed top-level package from goadb to just adb. 2016-01-15 07:54:27 -08:00
Zach Klippenstein 9f7d11a3bc Refactored ClientConfig into a Server interface.
* StartServer is now a method on Server.
* What used to be Dialer.Dial is now Server.Dial.
* Server.Dial handles trying to start the server if the initial connection fails.
* Dialer now dials a network address.
* All types that took a Dialer now take a Server.
* Server now has tests!
2016-01-10 14:01:58 -08:00