Mac OS uses the LSUSB command and connects unknown Android devices

Source: Internet
Author: User

today on a Mac connected to an Android device found not connected, ADB devices see the device, so want to use the LSUSB command to see, the results found that the MAC did not have this command, so the internet search, found the following command system_ Profiler Spusbdatatype, but each time you enter this command I can not remember Ah, so I ~/bin under the creation of a Lsusb file, enter System_profiler Spusbdatatype, and then add the Execute permissions, So the Mac can use Lsusb.

Then use LSUSB to see the Android device's vender id:0x19d2 Product id:0x2207

Enter: VI ~/.android/adb_usb.ini command, add the value corresponding to the Vendor ID in the open Adb_usb.ini file, and then save the exit

Then enter the adb kill-server and ADB devices commands and you should be able to see the device.




the System information for Mac OS is relevant.


command to display System_profiler spusbdatatype

$echo "system_profiler spusbdatatype" ~/bin/lsusb

$ chmod +x ~/bin/lsusb

$ lsusb

Usb:


USB 3.0 SuperSpeed Bus:


Host Controller location:built-in USB

Host Controller DRIVER:APPLEUSBXHCI

PCI Device ID:0X8C31

PCI Revision id:0x0005

PCI Vendor id:0x8086

Bus number:0x0a


Internal Memory Card Reader:


Product id:0x8406

Vendor ID:0X05AC (Apple Inc.)

version:8.20

Serial number:000000000820

Speed:up to 5 gb/sec

Manufacturer:apple

Location ID:0X15400000/2

Current Available (MA): 900

Current Required (MA): 896

Built-in:yes


USB 3.0 hi-speed Bus:


Host Controller location:built-in USB

Host Controller DRIVER:APPLEUSBXHCI

PCI Device ID:0X8C31

PCI Revision id:0x0005

PCI Vendor id:0x8086

Bus number:0x0a

P990:


Product ID:0X56A6

Vendor ID:0X26F1

version:2.31

Serial Number:0123456789abcdef

Speed:up to 480 Mb/sec

Manufacturer:landi

Location ID:0X14500000/23

Current Available (MA): 500

Current Required (MA): 500


Android:


Product id:0x9039

Vendor id:0x05c6 (Qualcomm, INC)

version:2.32

Serial number:1c372511

Speed:up to 480 Mb/sec

Manufacturer:android

Location ID:0X14500000/12

Current Available (MA): 500

Current Required (MA): 500


BRCM20702 Hub:


Product id:0x4500

Vendor id:0x0a5c (Broadcom Corp.)

version:1.00

Speed:up to Mb/sec

Manufacturer:apple INC.

Location ID:0X14800000/4

Current Available (MA): 500

Current Required (MA): 94

Built-in:yes


Bluetooth USB Host Controller:


Product id:0x8289

Vendor ID:0X05AC (Apple Inc.)

version:1.03

Speed:up to Mb/sec

Manufacturer:apple INC.

Location ID:0X14830000/7

Current Available (MA): 500

Current Required (MA): 0

Built-in:yes


Apple Internal Keyboard/trackpad:


Product id:0x0262

Vendor ID:0X05AC (Apple Inc.)

version:2.25

Speed:up to Mb/sec

Manufacturer:apple INC.

Location ID:0X14C00000/13

Current Available (MA): 500

Current Required (MA): 40

Built-in:yes


Apple USB EThe fine lifespan?? 騀 龝 枩? ≠?? Faintflower


Product id:0x1402

Vendor ID:0X05AC (Apple Inc.)

version:0.01

Serial Number:1460ab

Speed:up to 480 Mb/sec

Manufacturer:apple INC.

Location ID:0X14100000/1

Current Available (MA): 500

Current Required (MA): 250

BSD Name:en4

VI ~/.android/adb_usb.ini Command, add Vendor ID corresponding 0x26f1 in open Adb_usb.ini file
$ adb kill-server$ADB devices

List of devices attached

0123456789ABCDEF Device



Copyright NOTICE: This article for Bo Master original article, reproduced please retain the source <a href=http://blog.csdn.net/offbye>http://blog.csdn.net/offbye</a>

Mac OS uses the LSUSB command and connects unknown Android devices

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.