61b90bd211021886049f72cb666a5b49b83b3c64 |
|
09-Nov-2011 |
JP Abgrall <jpa@google.com> |
adb: grant it AID_NET_BW_STATS for full /proc/net/xt_qtaguid/stats 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
/system/core/adb/adb.c
|
9ff99f653632504b98c17fc76eac3383df5b5d1e |
|
05-Aug-2011 |
Kenny Root <kroot@google.com> |
Merge "Default to secure mode"
|
ff9d3484e6c8f2f7e7e25581cb4dc86e0884d8a7 |
|
31-Jul-2011 |
Kenny Root <kroot@google.com> |
Default to secure mode If ro.secure is not set for some reason, default to secure mode. Change-Id: Id0ce3ea5507a3f9690332fb5a2daef7d3303481d
/system/core/adb/adb.c
|
514b40bafada989c63f8a3d42a517c6c53e04b02 |
|
30-Jul-2011 |
Nick Kralevich <nnk@google.com> |
am 189de0c1: am adabe566: am 810cf41b: Merge "Fixed memory leak when using transport:serial." * commit '189de0c1f4339abd7b938b4905775163d2a94bbe': Fixed memory leak when using transport:serial.
|
3175c8e9bfcb01f181d7300755da15a999e5461c |
|
27-Jul-2011 |
Tom Marlin <tomm@bsquare.com> |
Fixed memory leak when using transport:serial. 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>
/system/core/adb/adb.c
|
408fa57864c01113deaa213e5c1848a9c594ae92 |
|
16-Mar-2011 |
JP Abgrall <jpa@google.com> |
adb: fix subprocess exit handling, oom adjust fixes, extra debugging. * 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
/system/core/adb/adb.c
|
0e7c4274c687446dbe30a814278d7a6b99da8c4e |
|
24-Feb-2011 |
JP Abgrall <jpa@google.com> |
Revert "Fix adb hang when subprocess dies early." This is for http://b/3482112 "adb interactions with device causing test harness failures". This reverts commit 69c5c4c45bd4f1575ae8bdba13795297be7deb8c. Change-Id: I630bf2e04d2ecf0223bd2af4e87136754ff880d3
/system/core/adb/adb.c
|
69c5c4c45bd4f1575ae8bdba13795297be7deb8c |
|
18-Feb-2011 |
JP Abgrall <jpa@google.com> |
Fix adb hang when subprocess dies early. * 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>
/system/core/adb/adb.c
|
3b4a0c81c4f2af46e6075f1150dcde55d436c7a6 |
|
02-Feb-2011 |
Benoit Goby <benoit@android.com> |
Fix adb leaking file descriptors to forked processes 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
/system/core/adb/adb.c
|
3e42db23fbbfdc2866f5ca035641444c5ab2ff78 |
|
06-Jan-2011 |
David 'Digit' Turner <digit@google.com> |
adb: improve debug traces readability. This patch makes the traces easier to read. For example transports are displayed by name/serial instead of their hex address. Change-Id: I7e8df44ddbec19754d63d989bd56485998b4627b
/system/core/adb/adb.c
|
95ef82866c7a922bf588027aa38c58a45eb84d9c |
|
02-Feb-2011 |
Benoit Goby <benoit@android.com> |
Fix adb leaking file descriptors to forked processes 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
/system/core/adb/adb.c
|
730ff3b786058dadde98743522d760bd9331a9dd |
|
06-Jan-2011 |
David 'Digit' Turner <digit@google.com> |
adb: improve debug traces readability. This patch makes the traces easier to read. For example transports are displayed by name/serial instead of their hex address. Change-Id: I7e8df44ddbec19754d63d989bd56485998b4627b
/system/core/adb/adb.c
|
4692599cf73240e34d8e3bf7f54e99ebb9c0aaf3 |
|
28-Aug-2010 |
Nick Kralevich <nnk@google.com> |
am 44db990d: Fix bug 2950316. Check return values. Merge commit '44db990d3a4ce0edbdd16fa7ac20693ef601b723' into gingerbread-plus-aosp * commit '44db990d3a4ce0edbdd16fa7ac20693ef601b723': Fix bug 2950316. Check return values.
|
44db990d3a4ce0edbdd16fa7ac20693ef601b723 |
|
27-Aug-2010 |
Nick Kralevich <nnk@google.com> |
Fix bug 2950316. Check return values. Change-Id: I687bb5fb8195d4c1fc863e32a5e233a8b9e74196
/system/core/adb/adb.c
|
899913f8168b54e00971c0e8d4ae16d06a4651fe |
|
16-Jun-2010 |
Viral Mehta <viral.vkm@gmail.com> |
print msg.command in human-readable format to print msg.command as some odd decimal number is just not helping in debugging; instead print msg.command as a string Change-Id: Id1ec770c20c86b8bdae40a0262bf4b63c0213b0a
/system/core/adb/adb.c
|
f7e148c1bc482fe7f8df49d216b1f9390f0638b9 |
|
03-Jun-2010 |
The Android Open Source Project <initial-contribution@android.com> |
merge from open-source master Change-Id: I9b051ebd6e785e4d68e148a005a0485e79aa55ea
|
cbbe79add1410b53ec65936cfb1b74cac68467f0 |
|
24-May-2010 |
Mike Lockwood <lockwood@android.com> |
adb connect and disconnect improvements: Port number is now optional. Will use default port 5555 if not specified. "adb disconnect" with no additional arguments will disconnect all TCP devices. Change-Id: I7fc26528ed85e66a73b8f6254cea7bf83d98109f Signed-off-by: Mike Lockwood <lockwood@android.com>
/system/core/adb/adb.c
|
c57a22c8561cc571d23cd7f321103b2b4d2c7cde |
|
02-Jun-2010 |
The Android Open Source Project <initial-contribution@android.com> |
merge from open-source master Change-Id: I44bd527e51d102a56a1efe40cb6e634859b09461
|
d9d1ca47802395e9e42e7deb05b2683d9d306598 |
|
26-Apr-2010 |
Stefan Hilzinger <hilzinger@google.com> |
Let "adb connect" connect to emulators too - adb can now connect to an emulator configured with an arbitrary pair of <console port, adb port>. These two ports do not have to be adjacent. This can be done from the commandline at any time using adb connect emu:<console_port>,<adb_port> - Emulators running on ports outside the normal range (5554/5555-5584/5585) register themselves on startup if they follow the convention "console port+1==abd port". - Emulators outside the normal port range will not be auto-detected on adb startup as these ports are not probed. - The index into local_transports[] array in transport_local.c does no longer indicate the port number of the local transport. Use the altered atransport struct to get the port number. - I have chosen not to document the adb connect emu:console_port,adb_port syntax on adb's help screen as this might be confusing to most readers and useful to very few. - I don't expect this to introduce any (backwards) compatibility issues. Change-Id: Iad3eccb2dcdde174b24ef0644d705ecfbff6e59d Signed-off-by: Mike Lockwood <lockwood@android.com>
/system/core/adb/adb.c
|
9a22c68e8697a2ec86cd238a87a32ea42d7f8d39 |
|
28-Apr-2010 |
The Android Open Source Project <initial-contribution@android.com> |
merge from open-source master Change-Id: Id824d3427cb4808a8768f14e7b46c0eaf5e02e73
|
a84a42eb20d43ffa2695a69d583a6e09532b49d9 |
|
19-Apr-2010 |
Stefan Hilzinger <hilzinger@google.com> |
Make adb's daemon-port on the host machine configurable. 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
/system/core/adb/adb.c
|
23e64161be09ce26cb4d213a860f61e1fe77d975 |
|
15-Apr-2010 |
Mike Lockwood <lockwood@android.com> |
adb: remove obsolete adb.connected system property. This was used for adb networking, which no longer exists. This code also failed when adb was not running as root. Change-Id: Ied86fb1930094d5ae5009684d25e15385fd31d03 Signed-off-by: Mike Lockwood <lockwood@android.com>
/system/core/adb/adb.c
|
775a8df614d364fcb82e280069a3f533381240b4 |
|
21-Apr-2010 |
The Android Open Source Project <initial-contribution@android.com> |
merge from open-source master Change-Id: I686f28fcfcff1cca7cf254de9e4334cc4ea2fef7
|
8e2ceaeacf9fa1eb5ac41e4d3498836a6e2c7c97 |
|
20-Apr-2010 |
Mike Lockwood <lockwood@android.com> |
adb: Add persistent system property for running adb in TCPIP mode In addition to service.adb.tcp.port, you can now set persist.adb.tcp.port to specify the port number for adb to listen to instead of USB. This allows the adb TCP configuration to persist across reboots. Change-Id: I897ffcb019e8dd1785996d2f3c571cfc2f8ded38 Signed-off-by: Mike Lockwood <lockwood@android.com>
/system/core/adb/adb.c
|
d969faa161310d0a3792766320daa3200b84bd74 |
|
24-Feb-2010 |
Mike Lockwood <lockwood@android.com> |
adb: Attempt to unmount the SD card before rebooting. Change-Id: Idd4d96b4704f4e1bd324e72bca87611a23e30801 Signed-off-by: Mike Lockwood <lockwood@android.com>
/system/core/adb/adb.c
|
3166410a82f43d39201be98a8d35c51baa86cb53 |
|
21-Oct-2009 |
Alexey Tarasov <tarasov@dodologics.com> |
Make get_my_path() safer Adds maxLen parameter to get_my_path(). Some small cosmetic fixes.
/system/core/adb/adb.c
|
74d7ff8cfd490852d3df1c4b9d8a21beed619caa |
|
12-Oct-2009 |
Mike Lockwood <lockwood@android.com> |
adb: Add "adb disconnect" command for disconnecting TCP/IP devices. Also check that device is not already connected in "adb connect" Change-Id: I5f84b56b63d8c6932f23791cac319fd6bc39d36c Signed-off-by: Mike Lockwood <lockwood@android.com>
/system/core/adb/adb.c
|
cef31a02544d91b85481a5fa032b6126dbb32365 |
|
26-Aug-2009 |
Mike Lockwood <lockwood@android.com> |
adb: Fix emulator support. Signed-off-by: Mike Lockwood <lockwood@android.com>
/system/core/adb/adb.c
|
2f38b699713dc2587a771bd5d4c6a47329728f5e |
|
25-Aug-2009 |
Mike Lockwood <lockwood@android.com> |
adb: Improved support for running adb over TCP/IP Added new commands: adb connect <host>:<port> (to connect to a device via TCP/IP) adb tcpip <port> (to restart adbd on the device to listen on TCP/IP) adb usb (to restart adbd on the device to listen USB) Signed-off-by: Mike Lockwood <lockwood@android.com>
/system/core/adb/adb.c
|
5f4b051235c3e9e9e5b34b4af885e42a1c711fc4 |
|
05-Aug-2009 |
Mike Lockwood <lockwood@android.com> |
adb: add "adb reboot" command. This will allow rebooting the device via adb on any build, including user builds. An optional argument can be provided (for example, "adb reboot bootloader" or adb reboot recovery") Signed-off-by: Mike Lockwood <lockwood@android.com>
/system/core/adb/adb.c
|
1f546e6d1f6ccd1964336ddf0d8e8b3b11b1e945 |
|
26-May-2009 |
Mike Lockwood <lockwood@android.com> |
adb: Allow enabling of device side adbd logging with a persistent system property. To enable logging, set the property persist.adb.trace_mask to a hex value containing the bitmask for adb_trace_mask (see the TRACE_* enum values in adb.h). This will result in adb writing log output to a file in /data/adb/ No logging will occur if persist.adb.trace_mask is not set or has a value that cannot be parsed as a hex integer. The property is read once only at startup, so you must reboot or restart adbd for changes in the property to take effect. Signed-off-by: Mike Lockwood <lockwood@android.com>
/system/core/adb/adb.c
|
6a3075c78287ea5a7ee7a3c85cde58e894350822 |
|
25-May-2009 |
Mike Lockwood <lockwood@android.com> |
adb: Add adbd to the AID_SDCARD_RW group to allow writing to the SD card. Signed-off-by: Mike Lockwood <lockwood@android.com>
/system/core/adb/adb.c
|
a481d096feba7cf6e61d54e416a68e2d46498df1 |
|
22-May-2009 |
Xavier Ducrohet <xav@android.com> |
Support for 3rd party USB Vendor IDs in adb. Vendor IDs are read from ~/.android/adb_usb.ini. The format is very simple: 1 number per line. First number is ID count, followed by the ID themselves. Lines starting with # are considered comments. Other misc changes: moved VENDOR_ID_* to usb_vendors.c to prevent direct access. Made transport_usb.c reuse the USB constant introduced in usb_osx (moved them to adb.h)
/system/core/adb/adb.c
|
a09fbd164d2e088bc5433d310e25640ae048d47d |
|
21-May-2009 |
Xavier Ducrohet <xav@android.com> |
Preparation work for adb to support USB vendor Ids provided by SDK add-ons. Added usb_vendors.* which handles creating (and deleting) a list of vendor ids. This list is meant to be used everywhere the built-in lists (usb_osx), or the built-in vendor IDs (transport_usb) were used. For now the list is only built with the built-in VENDOR_ID_*. Next step is to read a small file created from all the SDK add-on. Other misc changes: made is_adb_interface present only if ADB_HOST is true to prevent accessing a list that doesn't exist (usb_vendors is only compiled for the host version of adb).
/system/core/adb/adb.c
|
249ad57a887680538d1dc0195e746b1d877ebd6a |
|
20-May-2009 |
Mike Lockwood <lockwood@android.com> |
adb: adbd no longer disables OOM and now sets children's OOM adjustment to zero Signed-off-by: Mike Lockwood <lockwood@android.com>
/system/core/adb/adb.c
|
e037fd7e193ecccbb5c0888e49f6d58c224bc11d |
|
13-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake_rel/...@138607
/system/core/adb/adb.c
|
2015549667fb77706a9879e974a3875ebccd8198 |
|
11-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@137873
/system/core/adb/adb.c
|
dd7bc3319deb2b77c5d07a51b7d6cd7e11b5beb0 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/system/core/adb/adb.c
|
e54eebbf1a908d65ee8cf80bab62821c05666d70 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/system/core/adb/adb.c
|
5ae090ed949cea9d1e7ab1552b455a229f8f9757 |
|
10-Jan-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@125939
/system/core/adb/adb.c
|
35237d135807af84bf9b0e5b8d7f8633e58db6f5 |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
/system/core/adb/adb.c
|
4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53 |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/system/core/adb/adb.c
|