summaryrefslogtreecommitdiffstats
path: root/adb
Commit message (Collapse)AuthorAgeFilesLines
...
* | adb: grant it AID_NET_BW_STATS for full /proc/net/xt_qtaguid/statsJP Abgrall2011-11-091-1/+3
|/ | | | | | | | | Normally only bandwidth stats for the uid reading .../stats is returned. With the extra group, adb shell will be able to read stats from all UIDs. This is to be used to offer data usage profiling to developers. Change-Id: If3d2941ce5aa4dbb1a23947b97b893149ba224f7
* Add command line help for the new 'adb backup -all -nosystem'Christopher Tate2011-10-031-5/+9
| | | | | | | | Documentation-only change that supports the new framework-side feature to omit system packages when you're using adb backup -all. Bug 5361503. Change-Id: I86bca8883a7fb8c713ca352ad5980e92fd640d18
* Skip argument when parsing adb installKenny Root2011-09-231-2/+5
| | | | | | | | A command line flag with an argument was checked in the Pm.java code, but it wasn't being checked by "adb install" so attempts to use it failed. Change-Id: I0b84a4203a416f7323fa823c0f1f1750670d0c76
* Add Positivo's vendor ID to adb.Xavier Ducrohet2011-09-161-1/+4
| | | | Change-Id: Ida6fc323d766249f4f12708bae1c50ae5d937b2c
* adb: Add USB vendor IDs for K-Touch, Pegatron and ArchosMike Lockwood2011-09-131-0/+9
| | | | | | | | Change-Id: Idbc212abfb7d4d0a53e6b8ecd55134b81f4e960d Bug: 5182028 Bug: 5157478 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Fix 'adb backup' command line validationChristopher Tate2011-08-221-3/+3
| | | | | | | | | The host side wasn't properly checking for argument-list sufficiency *after* removing any [-f filename] sequence. Fixes bug 5164135 Change-Id: I7bc49e37ef168182088e0e664b6897dd2a088ebf
* Merge "Add install arg for verification"Kenny Root2011-08-161-28/+90
|\
| * Add install arg for verificationKenny Root2011-08-061-28/+90
| | | | | | | | | | | | | | Allow "adb install" to transfer the file for the verification argument to the package manager "pm install" command. Change-Id: I4834f45019eb1387a5d2b205b53a67e91d5fa67e
* | am 549bfcda: am 003771d1: am 80d508fd: Merge "correct VID of Lenovo(0x2006 ↵Mike Lockwood2011-08-151-1/+4
|\ \ | | | | | | | | | | | | | | | | | | is for LenovoMobile,0x17EF is for Lenovo)" * commit '549bfcda6df30dd00db254b3717fc8df463ce710': correct VID of Lenovo(0x2006 is for LenovoMobile,0x17EF is for Lenovo)
| * \ am 003771d1: am 80d508fd: Merge "correct VID of Lenovo(0x2006 is for ↵Mike Lockwood2011-08-151-1/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | LenovoMobile,0x17EF is for Lenovo)" * commit '003771d1c0ad6c3c6cd0c82f787636111c9e193c': correct VID of Lenovo(0x2006 is for LenovoMobile,0x17EF is for Lenovo)
| | * | correct VID of Lenovo(0x2006 is for LenovoMobile,0x17EF is for Lenovo)zhangclb2011-08-151-1/+4
| | | | | | | | | | | | | | | | Change-Id: I3466fdf7b03cf5da189efe4efb563d09f14b467a
* | | | Change default backup filename and terminologyChristopher Tate2011-08-091-5/+5
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | We now use "backup.ab" as the default backup archive filename, and no longer refer to "tar" or "tarfiles" in the help text. The underlying format may be tar, but we're certainly not interoperable even with ustar/pax thanks to our compression & encryption layers and our custom header. Change-Id: I3e74af96cfc102e94848c969eb36af54304bfd9b
* | | Merge "Default to secure mode"Kenny Root2011-08-051-1/+1
|\ \ \
| * | | Default to secure modeKenny Root2011-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | If ro.secure is not set for some reason, default to secure mode. Change-Id: Id0ce3ea5507a3f9690332fb5a2daef7d3303481d
* | | | am 189de0c1: am adabe566: am 810cf41b: Merge "Fixed memory leak when using ↵Nick Kralevich2011-07-291-1/+1
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | transport:serial." * commit '189de0c1f4339abd7b938b4905775163d2a94bbe': Fixed memory leak when using transport:serial.
| * | am adabe566: am 810cf41b: Merge "Fixed memory leak when using transport:serial."Nick Kralevich2011-07-291-1/+1
| |\ \ | | |/ | | | | | | | | | * commit 'adabe566906aa5e8ce791327559aeb10c139b365': Fixed memory leak when using transport:serial.
| | * Merge "Fixed memory leak when using transport:serial."Nick Kralevich2011-07-291-1/+1
| | |\
| | | * Fixed memory leak when using transport:serial.Tom Marlin2011-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed memory leak when using transport:serial. Code was previously using strdup() to make a copy of the serial number which was not necessary. Instead, just set serial=service. Change-Id: Ifa8fe7999c6fb88955d2c6bdfcd3cd724ec1f020 Signed-off-by: Tom Marlin <tomm@bsquare.com>
* | | | am b1cfa672: am 7d39463e: am d1015de9: Merge "adb: Add USB vendor ID for Vizio"Mike Lockwood2011-07-291-0/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'b1cfa672014d197d6d4d12fca0d40cd59de436bc': adb: Add USB vendor ID for Vizio
| * | | am 7d39463e: am d1015de9: Merge "adb: Add USB vendor ID for Vizio"Mike Lockwood2011-07-291-0/+3
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '7d39463eff2a9002208f34f1d2ce4d62546f6c3a': adb: Add USB vendor ID for Vizio
| | * | adb: Add USB vendor ID for VizioMike Lockwood2011-07-291-0/+3
| | |/ | | | | | | | | | | | | Change-Id: I280ff83d7f1fda1ed811bd42cb6fd65036525559 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 01acea11: am 1f72fe99: am 7df080b2: am 3ddaa0ad: Merge "adb: Add USB ↵Mike Lockwood2011-07-181-0/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | vendor ID for Lenovo" * commit '01acea112501f7d140f100591319781e59b90d0e': adb: Add USB vendor ID for Lenovo
| * | am 1f72fe99: am 7df080b2: am 3ddaa0ad: Merge "adb: Add USB vendor ID for Lenovo"Mike Lockwood2011-07-181-0/+3
| |\ \ | | |/ | | | | | | | | | * commit '1f72fe991dc2e48c13518015c523f9e3ea048af2': adb: Add USB vendor ID for Lenovo
| | * adb: Add USB vendor ID for LenovoMike Lockwood2011-07-141-0/+3
| | | | | | | | | | | | | | | Change-Id: I1c2423f567272493067fae04e64fdcb651b0af62 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am f75a2ed2: Merge from gingerbread-plus-aospJean-Baptiste Queru2011-07-141-0/+9
|\ \ \ | |/ / | | | | | | | | | | | | | | | * commit 'f75a2ed2138cd8b74597bd57e13d12e1f0b815c2': adb: Add vendor IDs for iRiver, Compal and T & A Mobile Phones Add Gigabyte's USB vendor ID to adb. Add Funai's USB vendor ID to adb.
| * | Merge from gingerbread-plus-aospJean-Baptiste Queru2011-07-122-1/+10
| |\ \ | | |/ | | | | | | Change-Id: I55b84eda30edf0eade8b43712ab011cd3f65f0d9
| | * adb: Add vendor IDs for iRiver, Compal and T & A Mobile PhonesMike Lockwood2011-07-112-1/+10
| | | | | | | | | | | | | | | Change-Id: I4dafc43aa76049dd0075e1d70ba05d899e545c8d Signed-off-by: Mike Lockwood <lockwood@android.com>
| | * Add Gigabyte's USB vendor ID to adb.Joe Bass2011-07-111-0/+3
| | | | | | | | | | | | | | | | | | Bug #4452872 Change-Id: Ib97548d121d40e96ccc519323a335fc90f3b32b9
| | * Add Funai's USB vendor ID to adb.Xavier Ducrohet2011-07-111-0/+3
| | | | | | | | | | | | Change-Id: Idc2974d4437ab1c79cfea5aade98b599a877aad3
* | | Remove the simulator target from all makefiles.Jeff Brown2011-07-111-15/+3
| | | | | | | | | | | | | | | | | | Bug: 5010576 Change-Id: I2fcf31af681d92880e5d31a46d5f6777f7ca1977
* | | Reimplement the "adb root" command to more closely match its previous behaviorMike Lockwood2011-06-221-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The adb gadget driver used to reset the USB bus when the adbd daemon exited, and the host side adb relied on this behavior to force it to reconnect with the new adbd instance after init relaunches it. The new gadget drivers no longer automatically reset the USB bus when adbd is restarted which caused adb to hang since it was no longer forced to reconnect with the device. We attempted to work around this on the host side adb, but that work around has not been reliable. This change adds a property trigger on the service.adb.root system property which will reset the USB bus and restart the adbd daemon when adbd sets the property to 1. This should be much closer to the previous behavior and will hopefully fix some problems with automated testing. Change-Id: I177c37400009a3d83f21a5f9431f94fd1cc19b9b Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Revert "adb: kick the transport after sending the "adb root" command"Mike Lockwood2011-06-222-23/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit d15e6ac95dc898fb78fb5917bb2e4498b40b716f. Also increment adb version to 1.0.29 Change-Id: I890643f0c18a2fe90f170134df039c54116cecda Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Merge "Fix hang after end of backup"Mike Lockwood2011-06-211-4/+17
|\ \ \
| * | | Fix hang after end of backupChristopher Tate2011-06-211-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The buggy behavior was that the 'adb backup ....' host command line invocation would hang forever, even after the backup finished and the forked device-side subprocess had been reaped. The reason for this is that the device adbd end of the socketpair used to send the data back from the forked subprocess was still stuck readable even after the remote end of it had been closed. With this patch, the thread whose job it is to waitpid() in order to harvest the forked child process also closes the local (adbd) end of the socketpair. This makes the fdevent logic notice that the socket is dead, at which point it cleans up everything including the communication back to the host. Change-Id: I90e7e4e5db36c5a6f7363708b29a6d2c56d1250e
* | | | adb: Update version to 1.0.28Mike Lockwood2011-06-211-1/+1
|/ / / | | | | | | | | | | | | Change-Id: Ib8a98d3840abf24cf062112aca7ce462a0f44bc5 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Tidy up the end-of-data handling in backupChristopher Tate2011-06-203-10/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Increase transfer buffer size to 32K * Add logging about error conditions and fd teardown * Pass the fd number as a command line option to the 'bu' subprocess * Properly harvest the 'bu' subprocess after it's done Change-Id: Id44dde25778ecf43c5604fd9d01d726ba58861e5
* | | Use adb_sleep_ms for Cygwin compatKenny Root2011-06-151-1/+1
| | | | | | | | | | | | Change-Id: Iabb2cddfb6740a35e4b6b1563a81b64972c29453
* | | adb: kick the transport after sending the "adb root" commandMike Lockwood2011-06-122-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed because the USB driver on the device no longer resets the bus when exits and restarts. Since the host side adb no longer detects that adbd has restarted we need to reset the connection on the host side now. Change-Id: I1a8eabd292e8b45c34fa07a8a8b8c609cc15648d Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 4ba5a8ac: am eafcbe10: am 072a0fac: Merge "Fixed adb crash due to ↵Nick Kralevich2011-06-091-2/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | accessing freed memory" * commit '4ba5a8acba033127befd184f2f78cf0580995b07': Fixed adb crash due to accessing freed memory
| * | am eafcbe10: am 072a0fac: Merge "Fixed adb crash due to accessing freed memory"Nick Kralevich2011-06-071-2/+5
| |\ \ | | |/ | | | | | | | | | * commit 'eafcbe109f97e5a687cc944e65c383fa45d71c8f': Fixed adb crash due to accessing freed memory
| | * Fixed adb crash due to accessing freed memoryTom Marlin2011-06-031-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reset peers to NULL after closing them down. This prevents other code from attempting to access that freed memory (which prevents crashes). Previously, it left pointers to freed memory and the "if (s->peer)" guards could not block the attempt to access that memory later. Resolves many crashes seen while taking repeated screenshots on WinXP. Change-Id: I32553f4d19f6ddc9b05b6ab4dc1e9efe69e5be4f
* | | Make 'adb backup' -f handling more bulletproof and more flexibleChristopher Tate2011-06-011-7/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | * "adb backup" as the entire command line no longer crashes * The "-f filename" option can now appear anywhere in the command line. A trailing "-f" at EOL prompts an error message and usage summary. Change-Id: I040ed73c2ca3687e265e35600eb3ab2b3c879695
* | | am 0efe2f2f: am b27c682e: am f5144d34: Add Gigabyte\'s USB vendor ID to adb.Joe Bass2011-05-211-0/+3
|\ \ \ | |/ / | | | | | | | | | * commit '0efe2f2f11d79060962f35a3fb4db525d3f12e9e': Add Gigabyte's USB vendor ID to adb.
| * | am b27c682e: am f5144d34: Add Gigabyte\'s USB vendor ID to adb.Joe Bass2011-05-201-0/+3
| |\ \ | | | | | | | | | | | | | | | | * commit 'b27c682e28a01b18f7506a9b35222453058107ad': Add Gigabyte's USB vendor ID to adb.
| | * | Add Gigabyte's USB vendor ID to adb.Joe Bass2011-05-191-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Bug #4452872 Change-Id: Ib97548d121d40e96ccc519323a335fc90f3b32b9
* | | | Merge "Add 'adb restore' to parallel 'adb backup'"Christopher Tate2011-05-205-19/+68
|\ \ \ \
| * | | | Add 'adb restore' to parallel 'adb backup'Christopher Tate2011-05-175-19/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It won't actually do anything until the 'bu' tool and framework are updated to respond properly, but this is the adb side of the necessary infrastructure: we copy the tarfile into the socket pointed at the device, using the existing mechanisms. Change-Id: Ic3b5779ade256bd1ad989a94b0685f7b1a7d59d2
* | | | | am 44c336bf: am 830fc9af: am 30d916c3: Add Funai\'s USB vendor ID to adb.Xavier Ducrohet2011-05-191-0/+3
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | * commit '44c336bfe9bbd400461b9b28a449a67145eaeeb8': Add Funai's USB vendor ID to adb.
| * | | am 830fc9af: am 30d916c3: Add Funai\'s USB vendor ID to adb.Xavier Ducrohet2011-05-181-0/+3
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '830fc9afbe3e83b3b39278d67a9680bb2068098a': Add Funai's USB vendor ID to adb.
| | * | Add Funai's USB vendor ID to adb.Xavier Ducrohet2011-05-181-0/+3
| | | | | | | | | | | | | | | | Change-Id: Idc2974d4437ab1c79cfea5aade98b599a877aad3