然后使用lsusb查看到android设备的 vender id: 0x19d2 Product Id:0x2207
输入: vi ~/.android/adb_usb.ini 命令,在打开的 adb_usb.ini文件中添加Vendor ID对应的值, 然后保存退出
然后输入adb kill-server 和adb devices 命令,就应该可以看设备了。
命令可以显示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 12 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 12 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 12 Mb/sec
Manufacturer: Apple Inc.
Location ID: 0x14c00000 / 13
Current Available (mA): 500
Current Required (mA): 40
Built-In: Yes
Apple USB Ethe娕燬??騀龝枩?≠??н:
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 命令,在打开的 adb_usb.ini文件中添加Vendor ID对应的 0x26f1List of devices attached
0123456789ABCDEF device
版权声明:本文为博主原创文章,转载请保留出处<a href=http://blog.csdn.net/offbye>http://blog.csdn.net/offbye</a>
mac os使用lsusb命令和连接未知的Android设备
原文地址:http://blog.csdn.net/offbye/article/details/46891987