summaryrefslogtreecommitdiffstats
path: root/adb/usb_osx.c
Commit message (Collapse)AuthorAgeFilesLines
* Move usb_osx to C++.Dan Albert2015-04-161-533/+0
| | | | Change-Id: I21673211a702cc4f31d4311c36e2a4b22e55fac8
* File header cleanup.Dan Albert2015-03-191-3/+4
| | | | | | | | | * sysdeps.h should always be included first. * TRACE_TAG needs to be defined before anything is included. * Some files were missing copyright headers. * Save precious bytes on my SSD by removing useless whitespace. Change-Id: I88980e6e00b5be1093806cf286740d9e4a033b94
* Fix the mac build.Dan Albert2015-02-251-2/+3
| | | | Change-Id: Ieb6f2650ce5f39f1d8c938d0ca8cbec459d8e2fd
* Disable vendor id filtering for OS X.Al Sutton2014-11-211-56/+37
| | | | | | | | | | | Companion patch for change I2bf583a27f9a3f98ef006ea62b906a4f89960507. Due to the use of USB class 0xff it's not possible to register a listener which uses the OS methods for filtering notifications, so this patch also introduces a check in the notification listener which checks the class, subclass, and protocol for the interface each notification relates to. Change-Id: I380cc80f96addc5057660efb2179b35f9378886a
* 74602: Fixes adb not seeing connected devices on Mac.Esteban de la Canal2014-09-111-5/+9
| | | | | | | | | Every alternate time an adb server was started already connected devices were not being seen. This was caused by opened usb connections being "stalled". See this thread for more information: http://lists.apple.com/archives/usb/2011/Jun/msg00050.html Change-Id: Ic35b7a66c3f14a837b960066557f44e105609dcb Fixes: https://code.google.com/p/android/issues/detail?id=74602
* Fix 64-bit host build.Ying Wang2014-08-141-1/+2
| | | | | Bug: 13751317 Change-Id: Ibf62935b7d12a55ffc57242a26a2581b52796847
* adb: Add ability to specify device pathScott Anderson2012-04-201-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For manufacturing and testing, there is a need to talk to whatever device is connected to a given port on the host. This change modifies adb's "-s" option to take either a serial number or a device path. The device paths of the connected devices can be listed using "adb devices -l" whose output will resemble: List of devices attached 016B75D60A00600D usb:2-5 device 3031D0B2E71D00EC usb:1-4.3 device The second column lists the device paths. If the -l option is not given, the output from "adb devices" will be the same as it used to be (i.e. the paths will not be printed). The device path can also be obtained with the get-devpath command: $adb -s 3031D0B2E71D00EC get-devpath usb:1-4.3 Note that the format of the device paths are platform dependent. The example above is from Linux. On OS-X, the paths will be "usb:" followed by hex digits. For other platforms, the device paths will be printed as "????????????" and the -s option will not be able to select a device until someone implements the underlying functionality. Change-Id: I057d5d9f8c5bb72eddf5b8088aae110763f809d7 Signed-off-by: Scott Anderson <saa@android.com>
* adb: update call to register_usb_transport in Mac and Windows builds.Mike Lockwood2009-08-081-1/+1
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* adb: Use correct language ID when retrieving USB serial number.Guang Zhu2009-08-071-24/+48
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* Support for 3rd party USB Vendor IDs in adb.Xavier Ducrohet2009-05-221-3/+0
| | | | | | | | | | 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)
* Preparation work for adb to support USB vendor Ids provided by SDK add-ons.Xavier Ducrohet2009-05-211-9/+12
| | | | | | | | | | | | | 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).
* adb: osx: Match devices based on interface subclass and protocolDima Zavin2009-05-091-198/+175
| | | | | | | | Enumerating all vendor+product id combinations is not practical. This modifies the matching algorithm to use the adb interface subclass/protocol instead (0x42/0x1). Signed-off-by: Dima Zavin <dima@android.com>
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+536
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-536/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-11/+11
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+536