1 .首先是查看手機鏈接的USB端口信息html
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubandroid
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub測試
Bus 002 Device 007: ID 0bb4:0c03 HTC (High Tech Computer Corp.) spa
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub調試
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubrest
Bus 001 Device 003: ID 5986:01a6 Acer, Inc Lenovo Integrated Webcamcode
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubserver
Bus 004 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mousehtm
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hubblog
2.查找你的手機所鏈接端口的ID
第三行的HTC,這個是個人測試機,那麼讀取ID爲:0bb4
3. 建立android真機的usb規則
sudo gedit /etc/udev/rules.d/51-android.rules
在文件中添加以下內容:(ID:0bb4)
UBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666
保存並關閉規則配置文件,而後改變配置文件權限。
sudo chmod a+rx /etc/udev/rules.d/51-android.rules
4.重啓USB和adb服務
sudo service udev restart
sudo adb kill-server
sudo adb devices
至此,完成真機調試前配置工做
http://www.cnblogs.com/exmyth/p/3796453.html