Commit graph

85 commits

Author SHA1 Message Date
timoxa0 c303241c8c Improve forward errors 2024-06-17 12:33:14 +05:00
Timofey 3ce4c3a352
Update README.md 2024-06-14 21:53:20 +05:00
timoxa0 a333df0af4 Update doc for Device.ListForwards() 2024-06-14 21:47:28 +05:00
timoxa0 dba4311d8a Implement String for ForwardType 2024-06-14 15:58:07 +05:00
timoxa0 756c605365 Remove useless fmt.Sprintf 2024-06-14 15:57:28 +05:00
timoxa0 2d9cf39596 Make forward type and target public 2024-06-14 15:56:58 +05:00
timoxa0 627bfc67be Implement adb forward 2024-06-12 16:57:38 +05:00
timoxa0 3f33e09453 Add recovery state change description 2024-06-12 16:56:50 +05:00
timoxa0 157162bea3 Fix keyVal parse 2024-06-12 10:23:08 +05:00
timoxa0 b062257995 Fix mod path 2024-06-11 21:25:58 +05:00
timoxa0 de5056ceb2 Add StateRecovery 2024-06-11 21:14:06 +05:00
Evrins Hu d49e5ad793 fix: mod path 2020-10-29 10:18:51 +08:00
Evrins Hu 11bff25cc8 fix: import path 2020-07-13 14:31:19 +08:00
Evrins Hu 5532b49f7e migrate to go mod 2020-07-13 14:18:10 +08:00
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
Zach Klippenstein 6cf99d9b4a Merge pull request #23 from mandarl/master
Add conditional build files for unix.Access.
2017-03-19 19:31:55 -07:00
Mandar Limaye cd529c014a renamed files for platform specific isExecutable() 2016-08-26 20:25:25 -05: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 e87d5c6814 Merge pull request #20 from zach-klippenstein/cleanup-errors
Moved error definitions to an internal package, deleted the confusing util package.
2016-05-22 11:16:37 -07: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 64c3235bc2 Merge pull request #18 from zach-klippenstein/devicestate
Make Device.State return DeviceState instead of string.
2016-05-22 08:57:56 -07:00
Zach Klippenstein 49dbce382b Make Device.State return DeviceState instead of string. 2016-05-22 08:54:12 -07:00
Zach Klippenstein a7944b4afc Merge pull request #19 from zach-klippenstein/makefile
Added a Makefile and used for CI.
2016-05-22 08:53:54 -07:00
Zach Klippenstein 267feeab14 Added a Makefile and used for CI. 2016-05-22 08:51:02 -07:00
Zach Klippenstein 02ccca28d2 Merge pull request #17 from zach-klippenstein/more-renames
Renamed: HostClient -> Adb, DeviceClient -> Device, Server -> server.
2016-05-22 08:03:18 -07:00
Zach Klippenstein b43886affb Renamed: HostClient -> Adb, DeviceClient -> Device, Server -> server. 2016-05-21 22:33:20 -07:00
Zach Klippenstein 3d9104fbc1 Merge pull request #14 from zach-klippenstein/format-flags
[cmd/adb] Formatted flag definitions.
2016-05-07 18:46:53 -07:00
Zach Klippenstein b7039f514b [cmd/adb] Formatted flag definitions. 2016-05-07 18:41:49 -07:00
Zach Klippenstein 4e963f536d HostClient.ListDevices now returns an empty list instead of nil if there are no devices. 2016-03-13 18:34:06 -07:00
Zach Klippenstein c4de7097d7 Merge pull request #11 from zach-klippenstein/package-rename
Renamed top-level package from `goadb` to just `adb`.
2016-02-27 11:38:43 -08:00
Zach Klippenstein 019b1a3607 Merge pull request #12 from zach-klippenstein/go16
Build with go 1.6.
2016-02-21 15:48:34 -08:00
Zach Klippenstein 6c4c200601 Build with go 1.6. 2016-02-21 15:41:55 -08:00
Zach Klippenstein 5fb43080b6 Renamed top-level package from goadb to just adb. 2016-01-15 07:54:27 -08:00
Zach Klippenstein ee01d1202e Merge pull request #10 from zach-klippenstein/server
Refactored ClientConfig into a Server interface.
2016-01-10 14:24:22 -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
Zach Klippenstein 11dc26d9ba Merge pull request #9 from zach-klippenstein/start-server-errs
Added command output to StartServer error.
2016-01-08 14:35:08 -08:00
Zach Klippenstein f8a8785326 Added command output to StartServer error. 2016-01-08 10:23:20 -08:00
Zach Klippenstein aea57fe58f Merge pull request #8 from zach-klippenstein/fix-reads
Fix a bunch of bugs with the new SyncSender stuff.
2015-12-30 03:24:41 -08:00
Zach Klippenstein db28472ff7 FileWriter.Write will now always attempt to write the entire buffer, even if larger than max chunk size.
This is required to work with io.Copy, which returns an error if a write doesn't write the entire buffer but returns no error.
2015-12-30 03:05:56 -08:00
Zach Klippenstein 9803f7f9f3 Fixed a potential NPE when printing error cause chains. 2015-12-30 01:58:06 -08:00
Zach Klippenstein 325901c2c3 Fixed bug where tried closing a single net.Conn multiple times. 2015-12-30 00:02:30 -08:00
Zach Klippenstein d2cac01b63 Fixed a panic when reading an empty file. 2015-12-29 23:31:05 -08:00
Zach Klippenstein 3e1d948164 [cmd/adb] Support pulling/pushing from stdin and to stdout. 2015-12-29 13:25:17 -08:00
Zach Klippenstein e6b354ce69 Merge pull request #6 from zach-klippenstein/sync-send
Implemented sync file send and cmd/adb push command.
2015-12-28 20:03:30 -08:00
Zach Klippenstein 340dcab2df Implemented sync file send and cmd/adb push command. 2015-12-28 19:59:07 -08:00
Zach Klippenstein d32cf6b500 Merge pull request #7 from zach-klippenstein/fix-openread-errors
OpenRead will now return an error if the server returns an error when trying to open a file.
2015-12-28 19:57:39 -08:00
Zach Klippenstein cb7e06bdb9 OpenRead will now return an error if the server returns an error when trying to open a file.
All sync status reads now also check for failure status,
using the same logic as the normal Scanner (the only difference
being that for normal scanners, length is encoded as a hex
string, but for sync scanners it's in binary little-endian).
2015-12-28 19:46:14 -08:00
Zach Klippenstein 2515c6d11a [cmd/adb] Implemented pull command. 2015-12-28 13:40:36 -08:00
Zach Klippenstein eabeb3aa77 Fixed travis badge to always point to master. 2015-12-28 01:26:11 -08:00