adb

显示当前Mac USB外设信息

  1. 命令行输入system_profiler SPUSBDataType
USB:

USB 3.1 Bus:

Host Controller Driver: AppleT8103USBXHCI

USB 3.1 Bus:

Host Controller Driver: AppleT8103USBXHCI

USB3.0 Hub:

Product ID: 0x0817
Vendor ID: 0x2109 (VIA Labs, Inc.)
Version: 3.d3
Speed: Up to 5 Gb/s
Manufacturer: VIA Labs, Inc.
Location ID: 0x01200000 / 1
Current Available (mA): 900
Current Required (mA): 0
Extra Operating Current (mA): 0

USB 10/100/1000 LAN:

Product ID: 0x8153
Vendor ID: 0x0bda (Realtek Semiconductor Corp.)
Version: 31.00
Serial Number: 001000001
Speed: Up to 5 Gb/s
Manufacturer: Realtek
Location ID: 0x01240000 / 7
Current Available (mA): 900
Current Required (mA): 288
Extra Operating Current (mA): 0

4-Port USB 3.0 Hub:

Product ID: 0x0412
Vendor ID: 0x0bda (Realtek Semiconductor Corp.)
Version: 1.43
Speed: Up to 5 Gb/s
Manufacturer: Generic
Location ID: 0x01230000 / 5
Current Available (mA): 900
Current Required (mA): 0
Extra Operating Current (mA): 0

USB3.0 Card Reader:

Product ID: 0x0749
Vendor ID: 0x05e3 (Genesys Logic, Inc.)
Version: 15.35
Serial Number: 000000001536
Speed: Up to 5 Gb/s
Manufacturer: Generic
Location ID: 0x01210000 / 4
Current Available (mA): 900
Current Required (mA): 896
Extra Operating Current (mA): 0

USB2.0 Hub:

Product ID: 0x2817
Vendor ID: 0x2109 (VIA Labs, Inc.)
Version: 3.d3
Speed: Up to 480 Mb/s
Manufacturer: VIA Labs, Inc.
Location ID: 0x01100000 / 2
Current Available (mA): 500
Current Required (mA): 0
Extra Operating Current (mA): 0

4-Port USB 2.0 Hub:

Product ID: 0x5412
Vendor ID: 0x0bda (Realtek Semiconductor Corp.)
Version: 1.43
Speed: Up to 480 Mb/s
Manufacturer: Generic
Location ID: 0x01130000 / 3
Current Available (mA): 500
Current Required (mA): 0
Extra Operating Current (mA): 0

CMR-W19:

Product ID: 0x107e
Vendor ID: 0x12d1 (Huawei Technologies Co., Ltd.)
Version: 2.99
Serial Number: HQLDU18330001327
Speed: Up to 480 Mb/s
Manufacturer: HUAWEI
Location ID: 0x01132000 / 6
Current Available (mA): 500
Current Required (mA): 500
Extra Operating Current (mA): 0
Media:
File-CD Gadget:
Capacity: 63.3 MB (63,292,320 bytes)
Removable Media: Yes
BSD Name: disk4
Logical Unit: 0
Partition Map Type: Unknown
S.M.A.R.T. status: Verified
USB Interface: 1
Volumes:
disk4s0:
Capacity: 55.1 MB (55,111,680 bytes)
BSD Name: disk4s0
Content: Apple_partition_scheme
disk4s0s1:
Capacity: 18 KB (17,920 bytes)
BSD Name: disk4s0s1
Content: Apple_partition_map
华为手机助手:
Capacity: 3.2 MB (3,227,648 bytes)
Free: Zero KB
Writable: No
File System: HFS+
BSD Name: disk4s0s2
Mount Point: /Volumes/华为手机助手
Content: Apple_HFS
Volume UUID: 00000000-0000-0000-0000-000000000000
  1. 找到Vendor ID,此处华为是:0x12d1

  2. vi ~/.android/adb_usb.ini

    将上述id添加到文件中

image.png

  1. 重启adb

    adb kill-server

    adb start-server

    adb devices

image.png

推荐阅读:

ADB工具原理探究