platform_system_core/adb
Scott Anderson 3608d83242 adb: Fix two problems with device path implementation.
The commands that use "host-serial:<serial-number>:<request>"
service did not handle "-s usb:<path>".  The -s parameter is
passed as the serial number in the protocol and then matched
against either the serial number or device path.  However,
skip_host_serial() in sockets.c did not know about the usb:
syntax, the serial number was parsed incorrectly.  Before this
change:
	$ adb -s usb:1-4.1 get-state
	error: unknown host service
After:
	$ adb -s usb:1-4.1 get-state
	device

Code was added in find_transport() in transport.c to match device
paths, but find_transport() is only used for socket connections
so matching device paths is not needed.

Change-Id: I922cec963659dafadd0fbc8fa36dee3b55fe366c
Signed-off-by: Scott Anderson <saa@android.com>
2012-05-31 14:06:07 -07:00
..
Android.mk Remove the simulator target from all makefiles. 2011-07-11 22:12:32 -07:00
MODULE_LICENSE_APACHE2 eclair snapshot 2009-11-12 18:46:23 -08:00
NOTICE eclair snapshot 2009-11-12 18:46:23 -08:00
OVERVIEW.TXT Fixing spelling errors in adb docs 2010-04-28 11:38:39 -04:00
SERVICES.TXT adb: Add ability to specify device path 2012-04-20 11:21:14 -07:00
adb.c adb: Fix compiler warning 2012-05-31 11:29:49 -07:00
adb.h adb: Add ability to specify device path 2012-04-20 11:21:14 -07:00
adb_client.c adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
adb_client.h Make adb's daemon-port on the host machine configurable. 2010-04-28 11:38:34 -04:00
backup_service.c Fix hang after end of backup 2011-06-21 16:05:17 -07:00
commandline.c adb: Add ability to specify device path 2012-04-20 11:21:14 -07:00
console.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
fdevent.c adb: keep mac build happy 2011-03-29 12:36:22 -07:00
fdevent.h adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
file_sync_client.c adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
file_sync_service.c adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
file_sync_service.h adb: Improved detection of big endian architecture 2010-10-16 14:35:28 +02:00
framebuffer_service.c fix [3374821] Cannot take screenshot of HC preview 2011-02-09 12:56:25 -08:00
get_my_path_darwin.c eclair snapshot 2009-11-12 18:46:23 -08:00
get_my_path_freebsd.c FreeBSD support for usb-connected devices in adb 2009-10-25 01:56:35 +11:00
get_my_path_linux.c Make get_my_path() safer 2009-10-22 02:55:00 +11:00
get_my_path_windows.c Make get_my_path() safer 2009-10-22 02:55:00 +11:00
jdwp_service.c Fix adb leaking file descriptors to forked processes 2011-02-03 15:26:45 -05:00
log_service.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
mutex_list.h adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
protocol.txt Cleaning up whitespace in adb sources. Nothing more, nothing less. 2009-05-18 17:36:28 +02:00
remount_service.c Fix adb remount on non-MTD devices 2010-05-24 11:27:16 -04:00
services.c Reimplement the "adb root" command to more closely match its previous behavior 2011-06-22 08:36:53 -04:00
sockets.c adb: Fix two problems with device path implementation. 2012-05-31 14:06:07 -07:00
sockets.dia auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sysdeps.h adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
sysdeps_win32.c Fixes ADB crash on Windows due to large number of connections. do not merge. 2011-12-05 13:14:23 -08:00
test_track_devices.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
test_track_jdwp.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
transport.c adb: Fix two problems with device path implementation. 2012-05-31 14:06:07 -07:00
transport.h adb: fix subprocess exit handling, oom adjust fixes, extra debugging. 2011-03-28 14:12:22 -07:00
transport_local.c Cherry-picked from c4f37eed7 in master. Do not merge. 2012-01-10 16:19:09 -08:00
transport_usb.c adb: Improved detection of big endian architecture 2010-10-16 14:35:28 +02:00
usb_libusb.c adb: Add ability to specify device path 2012-04-20 11:21:14 -07:00
usb_linux.c adb: Add ability to specify device path 2012-04-20 11:21:14 -07:00
usb_linux_client.c adb: Add ability to specify device path 2012-04-20 11:21:14 -07:00
usb_osx.c adb: Add ability to specify device path 2012-04-20 11:21:14 -07:00
usb_vendors.c Add USB vendor IDs for Quanta, INQ and Sony. 2012-01-24 11:18:50 -08:00
usb_vendors.h adb: Add vendor IDs for iRiver, Compal and T & A Mobile Phones 2011-07-11 09:39:39 -04:00
usb_windows.c adb: Add ability to specify device path 2012-04-20 11:21:14 -07:00
utils.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
utils.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00