summaryrefslogtreecommitdiffstats
path: root/adb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | Use the new 'bu' syntax for backup vs restore operationChristopher Tate2011-05-161-2/+3
| | | | | | | | | | | | Change-Id: Ib007705ee562a41869f8add3408101b3a53aa2d7
* | | Merge "Add a 1000msec timeout for adb's USB control packets"Omari Stephens2011-05-161-0/+2
|\ \ \
| * | | Add a 1000msec timeout for adb's USB control packetsOmari Stephens2011-05-092-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Includes a version bump to make it possible to determine if a given binary has this fix or not. Bug: 4111855 Change-Id: I86d902a7fa0c4b906264141d2467b7bdddb61801
* | | | Merge "Add 'adb backup' for pulling a full backup tarfile to the host"Christopher Tate2011-05-115-1/+178
|\ \ \ \ | |/ / / |/| | |
| * | | Add 'adb backup' for pulling a full backup tarfile to the hostChristopher Tate2011-04-275-1/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The direct command interfaces with the 'bu' binary in /system/bin on the device. Change-Id: I4cd69eedfe5144c47277573c5626c6ad8755d70b
* | | | am 81ce51da: am 55537c34: am 2f7995ee: Merge "adb: fix typo in helptext"Mike Lockwood2011-04-261-1/+1
|\ \ \ \ | |/ / / |/| / / | |/ / | | | * commit '81ce51dae95deb0dc6b07cbd96bd07d08aad5178': adb: fix typo in helptext
| * | am 55537c34: am 2f7995ee: Merge "adb: fix typo in helptext"Mike Lockwood2011-04-261-1/+1
| |\ \ | | | | | | | | | | | | | | | | * commit '55537c347bb31d0e2b176ca2550d2054877f9d54': adb: fix typo in helptext
| | * | adb: fix typo in helptextBernhard Reutner-Fischer2011-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | s/ocmmand/command Change-Id: I4ed17e8df9dc71a28e1caef5a21f6351e92628af Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * | | am e4bcf830: am d37e0840: Merge "In serial, skip over port as well if ↵Mike Lockwood2011-04-111-2/+28
| |\ \ \ | | |/ / | | | / | | |/ | |/| | | | | | | numbers found after colon." * commit 'e4bcf8305748e8799df9047fb0f6881553dd43b5': In serial, skip over port as well if numbers found after colon.
| | * In serial, skip over port as well if numbers found after colon.Terence Haddock2011-04-061-2/+28
| | | | | | | | | | | | Change-Id: Icd45f570a9527790eb0cd614a3f77da1a72375b1
* | | adb: Don't allow a forced exit if data is still in the socketJP Abgrall2011-04-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fixes the http://b/4271011 "adb shell cat /init.rc output gets truncated" Change-Id: I6df64374b60789595fb18f96d429315dec032443 Signed-off-by: JP Abgrall <jpa@google.com>
* | | adb: keep mac build happyJP Abgrall2011-03-291-1/+1
| | | | | | | | | | | | | | | | | | Use FIONREAD instead of TIOCINQ Change-Id: Ic9db0228a51c546a798c70f08f2e644a1a376120
* | | adb: fix subprocess exit handling, oom adjust fixes, extra debugging.JP Abgrall2011-03-2818-124/+488
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for correctly handling subprocess termination in shell service (b/3400254 b/3482112 b/2249397) - have a waitpid() track the subprocess, then notify the fdevent via a socket - force an eof on the pty master in fdevent's new subproc handler. - modify fdevent to force-read the pty after an exit. * Migrate the "shell:blabla" handling to "#if !ADB_HOST" sections, where it belongs. * Fix the race around OOM adjusting. - Do it in the child before exec() instead of the in the parent as the child could already have started or not (no /proc/pid/... yet). * Allow for multi-threaded D() invocations to not clobber each other. - Allow locks across object files. - Add lock within D() - Make sure sysdesp init (mutex init also) is called early. * Add some missing close(fd) calls - Match similar existing practices near dup2() * Add extra D() invocations related to FD handling. * Warn about using debugging as stderr/stdout is used for protocol. * Fix some errno handling and make D() correctly handle it. * Add new adb trace_mask: services. * Make fdevent_loop's handle BADFDs more gracefully (could occur some subproc closed its pts explicitely). * Remove obsolete commandline args reported in help. (b/3509092) Change-Id: I928287fdf4f1a86777e22ce105f9581685f46e35
* | | In serial, skip over port as well if numbers found after colon.Terence Haddock2011-03-161-2/+28
|/ / | | | | | | Change-Id: Icd45f570a9527790eb0cd614a3f77da1a72375b1
* | Try to unmount writable filesystems when rebootingKen Sumrall2011-03-101-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ext4 filesystems like to be unmounted before rebooting. The Android system doesn't have a traditional Linux init setup, and shutting down the system was not much more than calling sync(2) and reboot(2). This adds a new function to libcutils called android_reboot(). By default, it calls sync() and then remounts all writable filesystems as read-only and marks them clean. There is a flag parameter in which the caller can ask for sync() not to be called, or to not remount the filesystems as read-only. Then it will call reboot(2) as directed by the other parameters. This change also updates adb, init and toolbox to call the new android_reboot() function. Fixes bugs 3350709 and 3495575. Change-Id: I16d71ffce3134310d7a260f61ec6f4dd204124a7
* | Revert "Fix adb hang when subprocess dies early."JP Abgrall2011-02-2312-314/+80
| | | | | | | | | | | | | | | | This is for http://b/3482112 "adb interactions with device causing test harness failures". This reverts commit 69c5c4c45bd4f1575ae8bdba13795297be7deb8c. Change-Id: I630bf2e04d2ecf0223bd2af4e87136754ff880d3
* | Fix adb hang when subprocess dies early.JP Abgrall2011-02-1812-80/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handling of the subprocess and its FD. This fixes http://b/3400254 "Many bugreports getting hung at the end in monkey" - Start up a service thread that waits on the subprocess to terminate, then closes the FD associated with it. - Have the event handler select() with a timeout so that it can detect the closed FD. Select() with no timeout does not return when an FD is closed. - Have the event handler force a read on the closed FD to trigger the close sequence. - Migrate the "shell:blabla" handling to "#if !ADB_HOST" sections. * Fix the race around OOM adjusting. - Do it in the child before exec() instead of the in the parent as the child could already have started or not (no /proc/pid/... yet). * Allow for multi-threaded D() invocations to not clobber each other. - Allow locks across object files. - Add lock within D() * Add some missing close(fd) calls - Match similar existing practices near dup2() * Add extra D() invocations related to FD handling. * Warn about using debugging as stderr/stdout is used for protocol. Change-Id: Ie5c4a5e6bfbe3f22201adf5f9a205d32e069bf9d Signed-off-by: JP Abgrall <jpa@google.com>
* | am c1fbf7c1: fix [3374821] Cannot take screenshot of HC previewMathias Agopian2011-02-091-13/+75
|\ \ | | | | | | | | | | | | * commit 'c1fbf7c1638cb4f1f139edf74562fcfbaa6f3435': fix [3374821] Cannot take screenshot of HC preview
| * | fix [3374821] Cannot take screenshot of HC previewMathias Agopian2011-02-091-13/+75
| | | | | | | | | | | | | | | | | | | | | don't hardcode the pixelformat to RGBA_8888 when taking screenshots. Change-Id: I3a76b49275acfce9a2994436f521b76310cd8fb2
* | | am d4894f4b: am 034117e4: Merge changes ↵Mike Lockwood2011-02-036-97/+140
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | | | | | | | | | I8df51128,Ie922b3e7,I31f78419,I7e8df44d,I6067857b,Ifd35587c,Ie8d66740 * commit 'd4894f4be608c28ef0f39c7794ba865ac812dff9': Fix adb leaking file descriptors to forked processes adb: Fix command-line parser. adb: Increase device descriptor buffer size in Linux host USB support adb: improve debug traces readability. adb: Don't report negative number of bytes after pushing file > 2 gigabytes Adding Texas Instruments to the VID list. Support an additional alias for 'adb shell.'
| * Fix adb leaking file descriptors to forked processesBenoit Goby2011-02-034-1/+11
| | | | | | | | | | | | | | | | | | | | accept() creates a new file descriptor that should be closed on exec so that forked processes don't keep a fd opened on the socket. This also fixes b/3297070 where adb hangs after running adb on the target. Change-Id: I8df511289e5549ae49b4824c9dfb71a3bf85eae8
| * adb: Fix command-line parser.David 'Digit' Turner2011-02-031-2/+5
| | | | | | | | | | | | | | | | | | | | This fixes the command-line parser to accept both "daemon server" and "server nodaemon". Before the patch, the second string would ignore the "nodaemon" flag. Fixes b/2191598 Change-Id: Ie922b3e7bf57a6e334fc448cec33fb340ca6abc4
| * adb: Increase device descriptor buffer size in Linux host USB supportMike Lockwood2011-02-031-1/+1
| | | | | | | | | | | | | | 256 bytes wasn't big enough for some complicated USB configurations Change-Id: I31f7841953d73b06958f44040f58166b159faff4 Signed-off-by: Mike Lockwood <lockwood@android.com>
| * adb: improve debug traces readability.David 'Digit' Turner2011-02-032-94/+124
| | | | | | | | | | | | | | This patch makes the traces easier to read. For example transports are displayed by name/serial instead of their hex address. Change-Id: I7e8df44ddbec19754d63d989bd56485998b4627b
| * adb: Don't report negative number of bytes after pushing file > 2 gigabytesMike Lockwood2011-02-031-2/+2
| | | | | | | | | | | | | | BUG: 3198322 Change-Id: I6067857b9490984a21b597f6ee338446a9decaf5 Signed-off-by: Mike Lockwood <lockwood@android.com>
| * Adding Texas Instruments to the VID list.Alex Sakhartchouk2011-02-031-0/+3
| | | | | | | | Change-Id: Ifd35587c93ae7d5c8253f477a92cca2345dc8bb5
| * Support an additional alias for 'adb shell.'Daniel Sandler2011-02-031-2/+18
| | | | | | | | Change-Id: Ie8d667407fef8ee5a6c7ab86b30307fb61869170
* | adb: Increase device descriptor buffer size in Linux host USB supportMike Lockwood2011-01-071-1/+1
| | | | | | | | | | | | | | 256 bytes wasn't big enough for some complicated USB configurations Change-Id: I31f7841953d73b06958f44040f58166b159faff4 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | adb: Don't report negative number of bytes after pushing file > 2 gigabytesMike Lockwood2010-12-141-2/+2
| | | | | | | | | | | | | | BUG: 3198322 Change-Id: I6067857b9490984a21b597f6ee338446a9decaf5 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Adding Texas Instruments to the VID list.Alex Sakhartchouk2010-12-131-0/+3
| | | | | | | | Change-Id: Ifd35587c93ae7d5c8253f477a92cca2345dc8bb5
* | dist for dist_filesYing Wang2010-12-091-1/+1
| | | | | | | | Change-Id: I665572a2212f1239b02b7816e37ada210afbdb48
* | am 34961b26: am 6713a2e0: Merge "Fix USB endianness bugs on Linux."Jean-Baptiste Queru2010-10-211-5/+4
|\ \ | |/ | | | | | | | | | | Merge commit '34961b266773006ec6643446e7b5a1558d82e4f4' * commit '34961b266773006ec6643446e7b5a1558d82e4f4': Fix USB endianness bugs on Linux.
| * am 6713a2e0: Merge "Fix USB endianness bugs on Linux."Jean-Baptiste Queru2010-10-201-5/+4
| |\ | | | | | | | | | | | | | | | | | | Merge commit '6713a2e0c659be9d992e75ab420da5680f522658' into gingerbread-plus-aosp * commit '6713a2e0c659be9d992e75ab420da5680f522658': Fix USB endianness bugs on Linux.
| | * Fix USB endianness bugs on Linux.Marcus Comstedt2010-10-161-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fields device->idVendor and device->idProduct should not be converted from little endian to native byteorder, because the kernel has in fact done so already! On the other hand, the descriptors read using raw ioctl:s in register_device() do need to be converted. Change-Id: I5fe08b626b14ead56a592b68d026690e343c2656
* | | am 89463984: am 81347d27: Merge "adb: Improved detection of big endian ↵Jean-Baptiste Queru2010-10-213-6/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | architecture" Merge commit '89463984f5576d7ab61303e08f81eb9175afed59' * commit '89463984f5576d7ab61303e08f81eb9175afed59': adb: Improved detection of big endian architecture
| * | am 81347d27: Merge "adb: Improved detection of big endian architecture"Jean-Baptiste Queru2010-10-203-6/+5
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '81347d2764b32ec7224d4e2ab3348103816400b2' into gingerbread-plus-aosp * commit '81347d2764b32ec7224d4e2ab3348103816400b2': adb: Improved detection of big endian architecture
| | * adb: Improved detection of big endian architectureMarcus Comstedt2010-10-163-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of testing for the (compiler specific) define __ppc__ explicitly, use the define HAVE_BIG_ENDIAN provided by AndroidConfig.h. That way, it should work on all big endian systems. Change-Id: Ic4d62afcefce4c8ad5716178ebfcb2b055ac73ce
| | * Added Toshiba's USB VID (0x0930) upon their request.Takeshi Kishimoto2010-07-211-0/+3
| | | | | | | | | | | | Change-Id: I9f7fca6b98b0664ef9af4f7b86f0f5863e91e4c1
| | * Added NEC and PMC's USB VIDs upon their request.Takeshi Kishimoto2010-07-211-0/+6
| | | | | | | | | | | | Change-Id: I332ee1e68ff960d41a365aeb96d012253056edd2
* | | am a8b8c0e2: am d02e521d: adb: Add support for Philips\'s USB vendor IDMike Lockwood2010-10-181-0/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'a8b8c0e21ac4bdb7838c8c1b8e7d60f632eda79b' * commit 'a8b8c0e21ac4bdb7838c8c1b8e7d60f632eda79b': adb: Add support for Philips's USB vendor ID
| * | am d02e521d: adb: Add support for Philips\'s USB vendor IDMike Lockwood2010-10-151-0/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'd02e521d79a49471b3f1dc3717e842948df64789' into gingerbread-plus-aosp * commit 'd02e521d79a49471b3f1dc3717e842948df64789': adb: Add support for Philips's USB vendor ID
| | * | adb: Add support for Philips's USB vendor IDMike Lockwood2010-10-151-0/+3
| | | | | | | | | | | | | | | | | | | | Change-Id: Iaf2e3f6f111198740703b5c3581d95756f797224 Signed-off-by: Mike Lockwood <lockwood@google.com>