summaryrefslogtreecommitdiffstats
path: root/adb
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | fix windows buildDoug Zongker2014-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia7b236f1a915630fe85d488072efb9784ba10dad
* | | | | | | adb: fix 64-bit buildColin Cross2014-07-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | strlen returns a size_t, but the * modifier in printf expects an int. On arm64 size_t != int. Change-Id: I11e84a7b62c935162abc0aba910d14e63d11efd3
* | | | | | | Merge "add sideload-host mode to adb"Doug Zongker2014-07-073-3/+113
|\ \ \ \ \ \ \
| * | | | | | | add sideload-host mode to adbDoug Zongker2014-07-073-3/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sideload-host mode turns the host into a server capable of sending the device various pieces of the file on request, rather than downloading it all in one transfer. It's used to support sideloading OTA packages to devices without the need for them to hold the whole package in RAM. If the connected device doesn't support sideload-host mode, we fall back to the older sideload connection. Change-Id: I5adaedd8243dc3b76414bba0149879ca2bbf35fa
* | | | | | | | Added support for vendor partition to adbDaniel Rosenberg2014-07-024-48/+87
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remount will now remount the vendor partition as well, if it exists. Sync will also allow you to sync vendor, and will include it by default if it exists. Change-Id: Iea1e8212f445e96233438a8d8a9d3266bf3d6557 Signed-off-by: Daniel Rosenberg <drosen@google.com>
* | | | | | | am f6d86d75: am d08b80cc: am 20bda70f: Merge "Add Smartisan usb config"Elliott Hughes2014-06-241-0/+3
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | * commit 'f6d86d75461ae3a246522932759e045dcc7a4952': Add Smartisan usb config
| * | | | | | am d08b80cc: am 20bda70f: Merge "Add Smartisan usb config"Elliott Hughes2014-06-241-0/+3
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit 'd08b80ccc6f7d106a8bfc410f89e466b798e2ebe': Add Smartisan usb config
| | * | | | | 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: use oom_score_adj instead of oom_adjRom Lemarchand2014-06-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I76c6ce83d7d400c8b84bfece5d30189640cb2505
* | | | | | | am d7d9b6fc: am f02fd9f0: am 5e504a4e: Merge "adb: Add USB vendor ID for ↵Colin Cross2014-06-191-0/+3
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Honeywell" * commit 'd7d9b6fcaa415ea6251e45d84b95a95740ea807e': adb: Add USB vendor ID for Honeywell
| * | | | | | am f02fd9f0: am 5e504a4e: Merge "adb: Add USB vendor ID for Honeywell"Colin Cross2014-06-191-0/+3
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit 'f02fd9f0b061d29bb872664479ed4a5949d23ac9': adb: Add USB vendor ID for Honeywell
| | * | | | | adb: Add USB vendor ID for HoneywellDanielMo2014-06-191-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib92eca23a6c75ec9323bb1b0e7d7f8cd5f9ca207 Signed-off-by: DanielMo <DanielMo@fih-foxconn.com>
* | | | | | | am 4224edf5: am 89e4fad0: am 4e6aa6a2: Merge "adbd: unconditionally call ↵Nick Kralevich2014-06-181-18/+18
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setgroups" * commit '4224edf51dcddf9e014b198bb23fc40ef61a5834': adbd: unconditionally call setgroups
| * | | | | | am 89e4fad0: am 4e6aa6a2: Merge "adbd: unconditionally call setgroups"Nick Kralevich2014-06-181-18/+18
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit '89e4fad09e1ae765ab0be1580a468bc0837ef7e4': adbd: unconditionally call setgroups
| | * | | | | 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
* | | | | | | am cd0d5935: am 6c65cd5d: am 60218f19: Merge "Add gionee USB vendor id."Elliott Hughes2014-06-161-0/+3
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | * commit 'cd0d593569d7f2b8f8ec81ab3ef6dd942230e973': Add gionee USB vendor id.
| * | | | | | am 6c65cd5d: am 60218f19: Merge "Add gionee USB vendor id."Elliott Hughes2014-06-161-0/+3
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit '6c65cd5db84361c66983903638ddb251762f9151': Add gionee USB vendor id.
| | * | | | | Add gionee USB vendor id.xuefeng cai2014-06-161-0/+3
| | | | | | | | | | | | | | | | | | | | | Change-Id: I3745f0e8462d0bffcd2eb4d926a9d2f9af8578f9
* | | | | | | Partially revert argument escaping.Jeff Sharkey2014-06-111-13/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commands chained with && need to be passed through literally instead of always being quoted. Bug: 15479704 Change-Id: I2998e40a92a3bfd092098cd526403b469c86c9a6
* | | | | | | Uniformly escape shell arguments.Jeff Sharkey2014-06-101-40/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Arguments with embedded spaces need to be wrapped in quotes, which changes the overall escaping strategy. Instead of mixing the two strategies, just always wrap arguments in quotes. Bug: 15479704 Change-Id: I03eacfa1bd6c220d4ec6617b825ebb0c43c7221e
* | | | | | | am f3af14e6: am ef47eb19: am 30136150: Merge "adb: avoid leaking file ↵Nick Kralevich2014-06-071-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | descriptors" * commit 'f3af14e6df266f466e0bf7868d002cfe8104c128': adb: avoid leaking file descriptors
| * | | | | | am ef47eb19: am 30136150: Merge "adb: avoid leaking file descriptors"Nick Kralevich2014-06-071-1/+1
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit 'ef47eb1948ba394866f53c41c459561fc372a3b5': adb: avoid leaking file descriptors
| | * | | | | 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
* | | | | | | am 7cf8e1cb: am 4e26c95a: Merge "Skip the "--abi" flag on "adb install" if ↵Narayan Kamath2014-06-031-0/+2
|\ \ \ \ \ \ \ | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | present." * commit '7cf8e1cb88c44963ccb2128113d8a804d85645b9': Skip the "--abi" flag on "adb install" if present.
| * | | | | | am 4e26c95a: Merge "Skip the "--abi" flag on "adb install" if present."Narayan Kamath2014-06-031-0/+2
| |\ \ \ \ \ \ | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | * commit '4e26c95a6363da4885bb9178c9d42c273b357043': Skip the "--abi" flag on "adb install" if present.
| | * | | | | 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
* | | | | | | | Merge "Add "exec" service: shell commands with no pty."Jeff Sharkey2014-06-025-218/+171
|\ \ \ \ \ \ \ \
| * | | | | | | | Add "exec" service: shell commands with no pty.Jeff Sharkey2014-05-305-218/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To facilitate device scripts that want to read/write binary data from the host side, this change introduces a new "exec" service that behaves like "shell" but without creating a pty, which would otherwise mangle binary data. After forking, it hooks up stdin/stdout of the child process to the socket connected through to the host. The adb transport doesn't support shutdown(), so the host can't half-close the socket and wait for device termination. Instead, the host side now has two explicit commands "exec-in" and "exec-out" for either sending or receiving data. Teach host side copy_to_file() to deal with stdin/stdout special cases. Switch device side backup/restore services to use the new create_subproc_raw under the hood. Change-Id: I5993049803519d3959761f2363037b02c50920ee
* | | | | | | | | am 8ed26bd6: am 769db021: am b24085d5: Merge "adb: Add USB vendor ID for Unowhy"Elliott Hughes2014-05-271-0/+3
|\ \ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | * commit '8ed26bd6531a8d52dcaff6c14b6fc59749791679': adb: Add USB vendor ID for Unowhy
| * | | | | | | | am 769db021: am b24085d5: Merge "adb: Add USB vendor ID for Unowhy"Elliott Hughes2014-05-271-0/+3
| |\ \ \ \ \ \ \ \ | | | |/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | * commit '769db021e6b61d10c13a7b17a72750f18ebdee16': adb: Add USB vendor ID for Unowhy
| | * | | | | | | 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 97267755: am c3358875: am 6e7343b8: Merge "adb: implement "adb reverse ↵David 'Digit' Turner2014-05-275-101/+198
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <local> <remote>"" * commit '972677557bd2c3a0678a945765783e85c7ec7b9c': adb: implement "adb reverse <local> <remote>"
| * | | | | | | | am c3358875: am 6e7343b8: Merge "adb: implement "adb reverse <local> <remote>""David 'Digit' Turner2014-05-275-101/+198
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c3358875169b920847a72428f4e8b8f09f7bdf05': adb: implement "adb reverse <local> <remote>"
| | * | | | | | | 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 b696bec3: am 28c30518: am 1742b7d2: Merge "Modify VID for Compal"Colin Cross2014-05-211-1/+4
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b696bec3541dc3091fb7c8764750f8ba21f64636': Modify VID for Compal
| * | | | | | | | am 28c30518: am 1742b7d2: Merge "Modify VID for Compal"Colin Cross2014-05-211-1/+4
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '28c305183a6596eb3241771422d22351fbeaa9fb': Modify VID for Compal
| | * | | | | | | 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 f7a7e3c3: am 6dfb039b: am 4a343436: Merge "Fix win32 undefined reference ↵Elliott Hughes2014-05-201-0/+7
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to `_socket_network_client_timeout\'." * commit 'f7a7e3c301fdf7d98d8bcabf6fefb0fcf5bbf90d': Fix win32 undefined reference to `_socket_network_client_timeout'.
| * | | | | | | | am 6dfb039b: am 4a343436: Merge "Fix win32 undefined reference to ↵Elliott Hughes2014-05-201-0/+7
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `_socket_network_client_timeout\'." * commit '6dfb039b0ba56576b4ed043e02ae43fb6afd42aa': Fix win32 undefined reference to `_socket_network_client_timeout'.
| | * | | | | | | 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 9bcc5512: am 796b2015: am 51e27f95: Merge "Fix win32 implicit declaration ↵Elliott Hughes2014-05-201-0/+2
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / | | | | | / / / / | |_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | of function socket_network_client_timeout." * commit '9bcc55123ec814074417994db99730929a31fec8': Fix win32 implicit declaration of function socket_network_client_timeout.
| * | | | | | | am 796b2015: am 51e27f95: Merge "Fix win32 implicit declaration of function ↵Elliott Hughes2014-05-201-0/+2
| |\ \ \ \ \ \ \ | | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | socket_network_client_timeout." * commit '796b20157f75e46ad91b7d894796e0ba55a7766e': Fix win32 implicit declaration of function socket_network_client_timeout.
| | * | | | | | 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.