summaryrefslogtreecommitdiff
path: root/adb_client.h
AgeCommit message (Collapse)Author
2016-09-01adb: allow use of arbitrary socket specs for command socket.Josh Gao
Bug: http://b/30445394 Change-Id: I474ede35ec3c56ad86da503c9703f83ef5e80862
2016-08-30DO NOT MERGE: Split bugreport() into its own file and added unit tests.Felipe Leme
bugreport() will be soon refactored to track progress, which will require more comprehensive unit tests. As such, it's better to move it to its own files, which in turn also requires moving send_shell_command() and usage() to commandline.h. Fixes: 30100363 Bug: 30268737 Change-Id: I3cdf114a0b5547293320042ff0749a60886440b0 (cherry picked from commit 78e0963e4bce9cc9f0bbf0b686004ba15b1e3929) (cherry picked from commit 218e1ff75998052c7bb30b483c15e75a853283a8)
2016-03-04adb: wait for adbd to die and respawn in root/unroot.Josh Gao
Bug: http://b/19749057 Change-Id: I57dbc113803b6fd3016c1801410be0f4023245d9
2016-01-31adb: add nullability specifiers to adb_client.h.Josh Gao
Change-Id: I93287b876cb06d871b4330d2733ef6f43c58fbbf
2016-01-31adb: add adb_get_feature_set.Josh Gao
Extract a feature set getter function from commandline.cpp. Change-Id: I30a3eb0b060a88379e29be16264637816e378978
2015-05-29Fix error handling/reporting for "adb forward" and "adb reverse".Elliott Hughes
We really need better infrastructure for parsing adb subcommands, but in the meantime... At least this cleans up a little more of the implementation too. Bug: http://b/20736014 Change-Id: I76209847da3724906c71924017bcb69fa31e0b49
2015-05-06adb: win32: fix adb emu commandSpencer Low
The adb emu command was never working because the socket connection to the emulator was closed without reading all of the data that the emulator sent. On Windows, this caused the emulator's recv() call to error-out, so it never got the command that was sent. Before settling on this fix, I also experimented changing the arguments to the socket shutdown() call and that didn't seem to help. I also tried removing the call to shutdown() and that didn't help. So that should rule out shutdown() as the problem. One experiment that helped was delaying before calling adb_close(), but that is of course fragile and doesn't address the real issue, which is not closing the socket until the commands have been read. https://code.google.com/p/android/issues/detail?id=21021 Change-Id: I8fa4d740a2faa2c9922ec50792e16564a94f6eed Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
2015-05-05Give enum types CamelCase names for clarity.Elliott Hughes
Change-Id: I1c89f1cc155ee839f372fb14d972a288183b8bcd
2015-04-30More fixed-length buffer removal.Elliott Hughes
Bug: http://b/20666660 Change-Id: I0c738e9fed2defed48a9cf2d0a4f7b99c08dcf3d
2015-04-29Move __adb_error to std::string, and improve various errors.Elliott Hughes
Also remove an sprintf. Also fix various bits of code that were reporting stale adb_error values when they meant strerror. Bug: http://b/20666660 Change-Id: Ibeb48b7bc21bb0ec30ba47889d1d671ee480e1b7
2015-04-17Remove extern "C" barriers to using C++.Elliott Hughes
Change-Id: Ic046d6aa540738cb46b54531bc59ba3b47b0136d
2015-03-09Move adb to C++.Dan Albert
I keep trying to clean things up and needing std::strings. Might as well just do this now. usb_linux_client.c is going to stay as C because GCC isn't smart enough to deal with the designated initializers it uses (though for some reason it is in C mode). The Darwin files are staying as C because I don't have a way to test that they build. The Windows files are staying as C because while I can actually build for them, it's slow and painful. Change-Id: I75367d29205a9049d34460032b3bb36384f43941
2015-02-18Add extern "C" to all the adb headers.Dan Albert
Change-Id: Iaefa3e18d6ee2e065eb97271a796613b2a8e7d6e
2013-01-04Support adb client connect to remote serverMatt Gumbel
ADB client: allow user to specify hostname and port number of remote adb server. ADB server: bind server to all network interfaces instead of just localhost when user gives -a flag. Primary use-case for this change is to support remote testing of USB devices. HostA is running some test automation software which invokes adb client. HostB has USB-only device attached and is running adb server. adb client on HostA makes connection to adb server on HostB to talk to the USB device. Change-Id: I845cc8c00350b400317f8c18f813e6fd79bd5470 Signed-off-by: Dean Kwon <daex.i.kwon@intel.com> Signed-off-by: Jim Bride <jim.bride@intel.com> Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
2010-04-22Make adb's daemon-port on the host machine configurable.Stefan Hilzinger
This is the first CL of a somewhat larger effort which, among other things, will involve changing the emulator and ddms to talk to adb running on a configurable port. The port can be configured using environment variable ANDROID_ADB_SERVER_PORT. Further CLs will also address the set of ports used for the local transport. Change-Id: Ib2f431801f0adcd9f2dd290a28005644a36a780a
2010-04-12Revert "Make adb's daemon-port on the host machine configurable."Mike Lockwood
Fix the build. This reverts commit 5a00fd1c5542b302e5534d7c424ee92da3d6bceb.
2010-04-08Make adb's daemon-port on the host machine configurable.Stefan Hilzinger
This is the first CL of a somewhat larger effort which, among other things, will involve changing the emulator and ddms to talk to adb running on a configurable port. The port can be configured using environment variable ANDROID_ADB_PORT. Further CLs will also address the set of ports used for the local transport. Change-Id: I8082ee10ce504dab1cf89fe6d189eccf43ce9cf4
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2008-10-21Initial ContributionThe Android Open Source Project