mxg@mxg:~/workSpace$ adb devices
- daemon not running. starting it now on port 5037 *
- daemon started successfully *
List of devices attached
??? no permissions
这种没权限很奇怪,我在 /etc下是有定义的:
mxg@mxg:/etc/udev/rules.d$ cat /etc/udev/rules.d/70-android.rules
UBSYSTEM==“usb”, ATTRS{idVendor}“18d1”, ATTRS{idProduct}“d002”, MODE=“0666”
UBSYSTEM==“usb”, ATTRS{idVendor}“1f3a”, ATTRS{idProduct}“1002”, MODE=“0666”
后来发现关键是后面两句:
adb kill-server
sudo adb start-server
- daemon not running. starting it now on port 26099 *
- daemon started successfully *
adb devices
List of devices attached
20080411 device
注意,一定要 在【adb start-server】前面加 sudo