Commit graph

64 commits

Author SHA1 Message Date
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
Zach Klippenstein 64750956ff [cmd/adb] Make devices -l look more like the official command's output. 2015-12-27 17:37:26 -08:00
Zach Klippenstein 9e134f40b3 Merge pull request #5 from zach-klippenstein/adb-command
Started basic clone of adb command.
2015-12-20 23:08:22 -08:00
Zach Klippenstein b65c913aaf Updated go version for travis build. 2015-12-20 23:01:07 -08:00
Zach Klippenstein f6d7b0b665 Started basic clone of the adb command. 2015-12-20 23:00:15 -08:00
Zach Klippenstein 39a21306a5 Merge pull request #3 from zach-klippenstein/zach-klippenstein/devicewatcher-restart-backoff
Randomly backoff restarting adb server from DeviceWatcher.
2015-11-29 10:48:49 -08:00
Zach Klippenstein b966d11cda Randomly backoff restarting adb server from DeviceWatcher. 2015-11-29 10:41:10 -08:00
Zach Klippenstein 677e09425f Merge pull request #2 from zach-klippenstein/zach-klippenstein/deviceclient-deviceinfo
Add GetDeviceInfo method to DeviceClient.
2015-11-26 12:47:14 -08:00
Zach Klippenstein e3c41d9cbf Add GetDeviceInfo method to DeviceClient. 2015-11-26 11:49:29 -08:00
Zach Klippenstein d964e00da0 Merge pull request #1 from zach-klippenstein/zach-klippenstein/fix-devicenotfound-newservers
Handle newer adb servers' device not found error messages.
2015-09-12 15:31:49 -07:00
Zach Klippenstein 81043d7260 Handle newer adb servers' device not found error messages. 2015-09-12 15:30:32 -07:00
Zach Klippenstein af4b3ddcf2 DeviceWatcher events are more strongly typed and added higher-level methods. 2015-09-07 21:19:59 -07:00
Zach Klippenstein 0aa31c0548 If dialing the server fails initially, attempt to start the server and retry. 2015-09-07 16:06:20 -07:00
Zach Klippenstein bdf8f854c3 Added utility method to DirEntries for reading all entries. 2015-09-06 12:56:35 -07:00
Zach Klippenstein 92af9f1b15 Removed unused err return value from NewDeviceWatcher. 2015-09-05 23:24:02 -07:00
Zach Klippenstein a92512cf8f Added function to build more useful error messages for debugging. 2015-09-05 20:55:20 -07:00
Zach Klippenstein 695e0af07b Fixed DeviceClient not closing the connection on Stat. 2015-09-05 20:37:40 -07:00
Zach Klippenstein b0842f499c Cleaned ErrCode constant definitions. 2015-07-23 20:51:08 -07:00
Zach Klippenstein c0133b8ec7 Fixed device watcher tests. 2015-07-19 14:41:27 -07:00
Zach Klippenstein 164ab27d25 Implemented device event watcher and improved errors. 2015-07-19 12:45:24 -07:00
Zach Klippenstein 946c9e8ff8 Fixed scanner tests. 2015-07-19 06:43:13 -07:00
Zach Klippenstein 34b3a07ca8 Richer error handling. 2015-07-12 00:37:58 -07:00