MAC上想要用MX4来进行真机调试,然后,发现。。没反应,恩,然后,就是下面这样子了。
1. 插上手机打开终端,输入:system_profiler SPUSBDataType,将输出结果记住。
2. 拔下手机,重复以上动作。
两者结果对比后会获得一个Vendor ID
(其实输入一遍就可以啦,根据名字判定其实也可以了,直接里面写着有MX4啦)
- USB Hi-Speed Bus:
- Host Controller Location: Built-in USB
- Host Controller Driver: AppleUSBEHCI
- PCI Device ID: 0x1c2d
- PCI Revision ID: 0x0005
- PCI Vendor ID: 0x8086
- Bus Number: 0x1a
- Hub:
- Product ID: 0x0024
- Vendor ID: 0x8087 (Intel Corporation)
- Version: 0.00
- Speed: Up to 480 Mb/sec
- Location ID: 0x1a100000 / 2
- Current Available (mA): 500
- Current Required (mA): 0
- MX4:
- Product ID: 0x0c02
- Vendor ID: 0x2a45
- Version: ff.ff
- Serial Number: 75UBCKJ22AUV
- Speed: Up to 480 Mb/sec
- Manufacturer: Meizu
- Location ID: 0x1a110000 / 4
- Current Available (mA): 500
- Current Required (mA): 192
- USB OPTICAL MOUSE:
- Product ID: 0x2510
- Vendor ID: 0x093a (Pixart Imaging, Inc.)
- Version: 1.00
- Speed: Up to 1.5 Mb/sec
- Manufacturer: PIXART
- Location ID: 0x1a120000 / 3
- Current Available (mA): 500
- Current Required (mA): 100
3.在终端里输入echo "0x2a45" >> ~/.android/adb_usb.ini
红色为你的设备VendorID
4.adb kill-server 或者在eciplse 的 ddms 里reset adb