A Golang library for interacting with adb.
Go to file
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
cmd Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
internal/errors Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
wire Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
.travis.yml Added a Makefile and used for CI. 2016-05-22 08:51:02 -07:00
adb.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
adb_test.go Renamed: HostClient -> Adb, DeviceClient -> Device, Server -> server. 2016-05-21 22:33:20 -07:00
device.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
device_descriptor.go Renamed top-level package from goadb to just adb. 2016-01-15 07:54:27 -08:00
device_info.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
device_info_test.go Renamed top-level package from goadb to just adb. 2016-01-15 07:54:27 -08:00
device_state.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
device_state_test.go Make Device.State return DeviceState instead of string. 2016-05-22 08:54:12 -07:00
device_test.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
device_watcher.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
device_watcher_test.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
devicedescriptortype_string.go Added a Makefile and used for CI. 2016-05-22 08:51:02 -07:00
devicestate_string.go Make Device.State return DeviceState instead of string. 2016-05-22 08:54:12 -07:00
dialer.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
dir_entries.go Renamed top-level package from goadb to just adb. 2016-01-15 07:54:27 -08:00
doc.go Renamed top-level package from goadb to just adb. 2016-01-15 07:54:27 -08:00
error.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
executable.go renamed files for platform specific isExecutable() 2016-08-26 20:25:25 -05:00
executable_unix.go renamed files for platform specific isExecutable() 2016-08-26 20:25:25 -05:00
executable_win.go renamed files for platform specific isExecutable() 2016-08-26 20:25:25 -05:00
LICENSE.txt Initial commit – wire format implementation and some host client commands. 2015-04-11 16:58:49 -07:00
Makefile Added a Makefile and used for CI. 2016-05-22 08:51:02 -07:00
README.md Fixed travis badge to always point to master. 2015-12-28 01:26:11 -08:00
server.go Respect specified adb server port when issuing adb start-server (#28) 2017-05-29 17:51:45 -07:00
server_mock_test.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
server_test.go Renamed: HostClient -> Adb, DeviceClient -> Device, Server -> server. 2016-05-21 22:33:20 -07:00
sync_client.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
sync_client_test.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
sync_file_reader.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
sync_file_reader_test.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
sync_file_writer.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
sync_file_writer_test.go Renamed top-level package from goadb to just adb. 2016-01-15 07:54:27 -08:00
util.go Moved error definitions to an internal package, deleted the confusing util package. 2016-05-22 10:49:34 -07:00
util_test.go Renamed top-level package from goadb to just adb. 2016-01-15 07:54:27 -08:00

#goadb

Build Status GoDoc

A Golang library for interacting with the Android Debug Bridge (adb).

See demo.go for usage.