mx4 pro做例子, 首先在控制台输入, system_profiler SPUSBDataType,得到以下:

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 / 3

      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

    MX4 Pro:

      Product ID: 0x2008

      Vendor ID: 0x2a45

      Version: ff.ff

      Serial Number: 76UBBKN2229A

      Speed: Up to 480 Mb/sec

      Manufacturer: MEIZU

      Location ID: 0x14100000 / 10

      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.06

          Speed: Up to 12 Mb/sec

          Manufacturer: Apple Inc.

          Location ID: 0x14830000 / 5

          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 / 2

      Current Available (mA): 500

      Current Required (mA): 40

      Built-In: Yes

    Composite Device:

      Product ID: 0x0011

      Vendor ID: 0x046a  (CHERRY GmbH)

      Version: 1.00

      Speed: Up to 1.5 Mb/sec

      Location ID: 0x14500000 / 1

      Current Available (mA): 500

      Current Required (mA): 100

找到插有手机的接口, 如:

MX4 Pro:

Product ID: 0x2008

Vendor ID: 0x2a45

Version: ff.ff

Serial Number: 76UBBKN2229A

Speed: Up to 480 Mb/sec

Manufacturer: MEIZU

Location ID: 0x14100000 / 10

Current Available (mA): 500

Current Required (mA): 500

获取到:Vendor ID: 0x2a45

在控制台输入:

echo “0x2a45” >> ~/.android/adb_usb.ini

然后reset adb;

end