linux下使"adb devices"识别Android手机所需的配置

you'd better add {android-sdk}/platform-tools into ~/.bashrc's PATH variable

lsusb

If you don't know which is vendor id, you can check: http://www.gtdcloud.com/?p=40

gedit ~/.android/adb_usb.ini
0x1782 (增加一行: 0x加vendor id)
 
sudo gedit /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"(这行据说是通用的配置,我试过不加下面的“ATTR{idVendor}=="1782"”那行,就只用这一行,也能识别手机)
SUBSYSTEM=="usb", ATTR{idVendor}=="1782", MODE="0666", GROUP="plugdev"

sudo chmod a+rx /etc/udev/rules.d/51-android.rules
sudo service udev restart

adb kill-server
adb start-server

adb devices
显示:
List of devices attached
19761202    device

你可能感兴趣的:(linux下使"adb devices"识别Android手机所需的配置)