summaryrefslogtreecommitdiffstats
path: root/adb
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Add Smartisan usb config"Elliott Hughes2014-06-231-0/+3
|\
| * Add Smartisan usb configBao Haojun2014-04-111-0/+3
| | | | | | | | | | Change-Id: Ifd921f1dc0d2163230337805c3cf726f371300b0 Signed-off-by: Bao Haojun <baohaojun@gmail.com>
* | adb: Add USB vendor ID for HoneywellDanielMo2014-06-191-0/+3
| | | | | | | | | | Change-Id: Ib92eca23a6c75ec9323bb1b0e7d7f8cd5f9ca207 Signed-off-by: DanielMo <DanielMo@fih-foxconn.com>
* | adbd: unconditionally call setgroupsNick Kralevich2014-06-181-18/+18
| | | | | | | | | | | | | | We should ensure that the appropriate supplementary groups are set, regardless of whether we're running UID=0 or UID=shell. Change-Id: I3a1624a574102be08176a41f9c7eb5f82af2b3e5
* | Add gionee USB vendor id.xuefeng cai2014-06-161-0/+3
| | | | | | Change-Id: I3745f0e8462d0bffcd2eb4d926a9d2f9af8578f9
* | adb: avoid leaking file descriptorsNick Kralevich2014-06-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an adb shell connection comes in while taking a screenshot, an open pipe file descriptor will be leaked to the shell process. This causes SELinux denials of the form: avc: denied { read } for path="pipe:[21838]" dev="pipefs" ino=21838 scontext=u:r:shell:s0 tcontext=u:r:adbd:s0 tclass=fifo_file permissive=0 avc: denied { write } for path="pipe:[21838]" dev="pipefs" ino=21838 scontext=u:r:shell:s0 tcontext=u:r:adbd:s0 tclass=fifo_file permissive=0 Set O_CLOEXEC on the pipe connections, to avoid leaking them across an exec boundary. Bug: 15437785 Change-Id: Id2304b316bd7082d8baac246dce1f0e0e26e9197
* | Merge "Skip the "--abi" flag on "adb install" if present."Narayan Kamath2014-06-031-0/+2
|\ \
| * | Skip the "--abi" flag on "adb install" if present.Narayan Kamath2014-05-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This flag needs to be passed through to the package manager. Without this change, the argument to this flag is interpreted as a filename. NOTE: If we don't want to add special treatment for this flag, we'll have to assume that all flags with a -- prefix have an argument, and that isn't necessarily true. Change-Id: I78c3fa842bc24148d83d7278e6dee395686240a0
* | | am b24085d5: Merge "adb: Add USB vendor ID for Unowhy"Elliott Hughes2014-05-271-0/+3
|\| | | | | | | | | | | | | | * commit 'b24085d55b082d802eba699243dba26fbc6ac712': adb: Add USB vendor ID for Unowhy
| * | adb: Add USB vendor ID for UnowhyWing Tseng2014-05-271-0/+3
| | | | | | | | | | | | | | | Change-Id: I8bab07734d5b6acb4d8ceaf45b0bab0723f5fe03 Signed-off-by: Wing Tseng <Wing_Tseng@pegatroncorp.com>
* | | am 6e7343b8: Merge "adb: implement "adb reverse <local> <remote>""David 'Digit' Turner2014-05-275-101/+198
|\| | | | | | | | | | | | | | * commit '6e7343b8993fecb2f0600a9e5cff91dd4480a877': adb: implement "adb reverse <local> <remote>"
| * | adb: implement "adb reverse <local> <remote>"David 'Digit' Turner2014-05-275-101/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements the logical opposite of 'adb forward', i.e. the ability to reverse network connections from the device to the host. This feature is very useful for testing various programs running on an Android device without root or poking at the host's routing table. Options and parameters are exactly the same as those for 'adb forward', except that the direction is reversed. Examples: adb reverse tcp:5000 tcp:6000 connections to localhost:5000 on the device will be forwarded to localhost:6000 on the host. adb reverse --no-rebind tcp:5000 tcp:6000 same as above, but fails if the socket is already bound through a previous 'adb reverse tcp:5000 ...' command. adb reverse --list list all active reversed connections for the target device. Note: there is no command to list all reversed connections for all devices at once. adb reverse --remove tcp:5000 remove any reversed connection on the device from localhost:5000 adb reverse --remove-all remove all reversed connections form the current device. Reversed connections are tied to a transport, in other words, they disappear as soon as a device is disconnected. Simple testing protocol: adb forward tcp:5000 tcp:6000 adb reverse tcp:6000 tcp:7000 nc -l localhost 7000 in another terminal: echo "Hello" | nc localhost 5000 Will print "Hello" on the first terminal. Change-Id: I761af790cdb06829b68430afa4145a919fa0e6d5
* | | am 1742b7d2: Merge "Modify VID for Compal"Colin Cross2014-05-211-1/+4
|\| | | | | | | | | | | | | | * commit '1742b7d218706c596e6b40c89a6660f30bdba022': Modify VID for Compal
| * | Merge "Modify VID for Compal"Colin Cross2014-05-211-1/+4
| |\ \
| | * | Modify VID for Compalherman_lin2014-05-051-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original definition of VENDOR_ID_COMPAL is for Compal Communications, Inc. But Compal Communications, Inc(CCI) had been merged into Compal Electronics, Inc(CEI) at April of 2014 So VENDOR_ID_COMPAL should be changed from 0x1219(CCI's VID) to 0x04B7(CEI's VID). And add one new definition(VENDOR_ID_COMPALCOMM) for CCI to maintain old devices that use CCI's VID. modified: adb/usb_vendors.c Change-Id: I9e9a96f6cc81273ff2c9353a13e7ce3b0583396b
* | | | am 4a343436: Merge "Fix win32 undefined reference to ↵Elliott Hughes2014-05-201-0/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | `_socket_network_client_timeout\'." * commit '4a343436e01b07c21c043f8a903689f70000ca73': Fix win32 undefined reference to `_socket_network_client_timeout'.
| * | | Fix win32 undefined reference to `_socket_network_client_timeout'.Elliott Hughes2014-05-201-0/+7
| | | | | | | | | | | | | | | | Change-Id: I063213957b8452f4690da0f64872075f7c27b4cd
* | | | am 51e27f95: Merge "Fix win32 implicit declaration of function ↵Elliott Hughes2014-05-201-0/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | socket_network_client_timeout." * commit '51e27f955b79846e36097532a725f4b7a3eefef8': Fix win32 implicit declaration of function socket_network_client_timeout.
| * | | Fix win32 implicit declaration of function socket_network_client_timeout.Elliott Hughes2014-05-201-0/+2
| | | | | | | | | | | | | | | | Change-Id: Ic6070855a21920384c555c9c82b9a2e4a776cbae
* | | | am 9cae50b3: Merge "Bound the ADB connect time with a non-blocking connect"Elliott Hughes2014-05-191-1/+1
|\| | | | | | | | | | | | | | | | | | | * commit '9cae50b38d6a58efe0799ef3697f594cb4b100f9': Bound the ADB connect time with a non-blocking connect
| * | | Bound the ADB connect time with a non-blocking connectKen Lierman2014-05-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After a disconnect, the initial blocking connect takes a long time to return, while subsequent calls return quicks. Switch to a non-blocking connect to make the re-connect time more consistent and faster overall. Change-Id: I21d02b22a8eb9a457c2f1fa95eb17894d5612ccd Signed-off-by: Ken Lierman <ken.lierman@windriver.com> Reviewed-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com> Reviewed-by: Jovanovic, Radivoje <radivoje.jovanovic@intel.com> Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
* | | | am 905874ab: Merge "adb: avoid compilation errors for unused results"Kenny Root2014-05-131-2/+2
|\| | | | | | | | | | | | | | | | | | | * commit '905874abe45279d7c668e590d404880dd91b1869': adb: avoid compilation errors for unused results
| * | | adb: avoid compilation errors for unused resultsKenny Root2014-05-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The BIO_CTRL_FLUSH function for files doesn't return anything useful from the underlying fflush call, so it is safe to ignore this. Change-Id: If33a7efbbaaf158e3da1cd72d0a56da1d3b82fd9
* | | | am 129e9dad: Merge changes Idfd1a114,If725a1cb,I61211165,If9a05ccbMark Salyzyn2014-05-077-25/+20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '129e9dada707d66eb3242b666b6187a031dc410a': adb: turn on -Werror netcfg: turn on -Werror mkbootimg: turn on -Werror gpttool: turn on -Werror
| * | | Merge changes Idfd1a114,If725a1cb,I61211165,If9a05ccbMark Salyzyn2014-05-077-25/+20
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: adb: turn on -Werror netcfg: turn on -Werror mkbootimg: turn on -Werror gpttool: turn on -Werror
| | * | | adb: turn on -WerrorMark Salyzyn2014-05-057-25/+20
| | |/ / | | | | | | | | | | | | | | | | | | | | - Deal with some -Wunused issues Change-Id: Idfd1a114e68ae637978b52fde5144d0dca0ec79f
* | | | am 803fb62b: Merge "Remove unused LOCAL_LDLIBS."Ying Wang2014-05-071-2/+0
|\| | | | | | | | | | | | | | | | | | | * commit '803fb62bb49b551afff546b4748d2d3e9ec54af1': Remove unused LOCAL_LDLIBS.
| * | | Remove unused LOCAL_LDLIBS.Ying Wang2014-05-071-2/+0
| |/ / | | | | | | | | | Change-Id: I42aeb7668183e7a06207ee063f6eee4d37d66c6e
* | | Merge commit '4102af05a86aae36d2560fd8b3f740a52399342c' into HEADBill Yi2014-04-292-16/+2
|\ \ \ | |/ / |/| |
| * | am 4db6ce8e: Merge "Adding documentation on the sync part of the adb ↵JP Abgrall2014-03-201-0/+84
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | protocol previously missing." * commit '4db6ce8e353458de751394102084bb3a304a7ff6': Adding documentation on the sync part of the adb protocol previously missing.
| * \ \ am ee223d50: Merge "adb: Increase the max number of emulator instances to 64"David 'Digit' Turner2014-03-141-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit 'ee223d50a009af39be577c30cc35257c751f05a1': adb: Increase the max number of emulator instances to 64
| * \ \ \ am 5fb1a34a: Merge "Added transfer progress reporting for push and pull ↵JP Abgrall2014-03-133-27/+128
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commands." * commit '5fb1a34af4128bfe7332b02e31b146a82bc2872d': Added transfer progress reporting for push and pull commands.
| * \ \ \ \ am 44390474: Merge "adb: Don\'t unlink special files on sync failure."JP Abgrall2014-03-111-5/+8
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '443904746301e4d519e51075487ea4c8b9a860e3': adb: Don't unlink special files on sync failure.
| * \ \ \ \ \ am b2c34ece: Merge "adb: Don\'t clobber block devices during push"JP Abgrall2014-03-111-3/+6
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b2c34ece647c212baa30c474394c498a2d6dd61f': adb: Don't clobber block devices during push
| * \ \ \ \ \ \ am 1367854a: Merge "adb: fix windows build after "forward --list" fix."JP Abgrall2014-03-111-1/+1
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1367854a891090d1be1edfb12515691b20b350cf': adb: fix windows build after "forward --list" fix.
| * \ \ \ \ \ \ \ am 66e95d76: Merge "Fix adb forward --list when forwarding a lot"JP Abgrall2014-03-113-19/+24
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '66e95d76c47a3a099931bbebe7f4a0af4d3f7fbb': Fix adb forward --list when forwarding a lot
| * \ \ \ \ \ \ \ \ am 2e7347d6: Merge "Convert all selinux_android_restorecon and _setfilecon ↵Nick Kralevich2014-03-071-2/+2
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | calls to new API." * commit '2e7347d617b02b13d227bb4cecf6bd69b7b20fa9': Convert all selinux_android_restorecon and _setfilecon calls to new API.
| * \ \ \ \ \ \ \ \ \ am 02916aa2: Remove obsolete vdc call.Nick Kralevich2014-03-042-16/+2
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '02916aa20e3ffbe4b738bb12dc1607a7ec6a8c37': Remove obsolete vdc call.
| | * | | | | | | | | | Remove obsolete vdc call.Nick Kralevich2014-03-042-16/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since ca8e66a8b0f843812014a28d49208f9f6f64ecbc, init has been handling reboots and filesystem unmounts. Remove obsolete call to vdc. Bug: 12504045 Change-Id: If8704ca042cb3a68857743b9973e48c52e7eb881 (cherry picked from commit 225459a5da21e9397ca49b0d9af7d5fe3462706b)
| | * | | | | | | | | | am 02d90b92: am 33e7f915: am 54a80bcf: am cd072e94: am ba104fb7: am ↵Nick Kralevich2013-12-101-2/+2
| | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e975716e: am 03d4eb29: am d63fb078: am e89e09dd: Fix overflow in adb_client * commit '02d90b92ce65ad4e7f49565f0e97373e1d8b0fbf': Fix overflow in adb_client
| | | * \ \ \ \ \ \ \ \ \ am 33e7f915: am 54a80bcf: am cd072e94: am ba104fb7: am e975716e: am ↵Nick Kralevich2013-12-101-2/+2
| | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 03d4eb29: am d63fb078: am e89e09dd: Fix overflow in adb_client * commit '33e7f915d6a27880dd4c4c0709dcc921f549eea2': Fix overflow in adb_client
| | | | * \ \ \ \ \ \ \ \ \ am 54a80bcf: am cd072e94: am ba104fb7: am e975716e: am 03d4eb29: am ↵Nick Kralevich2013-12-101-2/+2
| | | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d63fb078: am e89e09dd: Fix overflow in adb_client * commit '54a80bcf88060b21f527c631c7ec911171bdb13f': Fix overflow in adb_client
| | | | | * \ \ \ \ \ \ \ \ \ am cd072e94: am ba104fb7: am e975716e: am 03d4eb29: am d63fb078: am ↵Nick Kralevich2013-12-101-2/+2
| | | | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e89e09dd: Fix overflow in adb_client * commit 'cd072e94cf7e546cd6d333cd65641edcd69402b7': Fix overflow in adb_client
| | | | | | * \ \ \ \ \ \ \ \ \ am d63fb078: am e89e09dd: Fix overflow in adb_clientNick Kralevich2013-12-101-2/+2
| | | | | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd63fb078aea697c536b19c03d29d4dde4ac087fc': Fix overflow in adb_client
| | | | | | | * \ \ \ \ \ \ \ \ \ am e89e09dd: Fix overflow in adb_clientNick Kralevich2013-12-101-2/+2
| | | | | | | |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e89e09dd2b9b42184973e3ade291186a2737bced': Fix overflow in adb_client
| | | | | | | | * | | | | | | | | | Fix overflow in adb_clientNick Kralevich2013-12-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7f8582bd8a69d61ce47d11a9ffd0e901fc371037 Credit: Joshua Drake Bug: 12060953
* | | | | | | | | | | | | | | | | | adb: Add USB vendor ID for PrestigioDanielMo2014-04-161-0/+3
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib9e79043961b9b1fa27d87f5bc815000e7965706 Signed-off-by: DanielMo <DanielMo@fih-foxconn.com>
* | | | | | | | | | | | | | | | | adb: Add USB vendor ID for Intermec Technologies Corp.DanielMo2014-03-261-0/+3
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6429bca087523829a13f905ae9dfa5f43b7abf8b Signed-off-by: DanielMo <DanielMo@fih-foxconn.com>
* | | | | | | | | | | | | | | | Merge "Adding documentation on the sync part of the adb protocol previously ↵JP Abgrall2014-03-201-0/+84
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | missing."
| * | | | | | | | | | | | | | | Adding documentation on the sync part of the adb protocol previously missing.Samuel Carlsson2014-03-201-0/+84
| | |_|_|_|_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the SERVICES.TXT a missing documentation file is mentioned - SYNC.TXT. This file is supposed to contain all the godie bits of the adb protocol for pushing and pulling files. I've read the source code and documented this in the file SYNC.TXT. I've used my own documentation to create a java implementation to verify the documentation here: https://github.com/vidstige/jadb Added line breaks at 78 characters. Added comments about remote files might be deleted. Change-Id: I48c87c2a9fb5b59b85c72679124dfbbfa9a701bc Signed-off-by: Samuel Carlsson <samuel.carlsson@gmail.com>