ubuntu下adb默认无法识别,得到error: insufficient permissions for device,使用adb devices得到no permissions.解决办法有两种:

  1. 使用root账户(su到root账户)
1
2
3
4
5
su
cd android-tools-dir
./adb kill-server
./adb start-server
./adb devices
  1. 修改udev的权限,猛击这里,添加/etc/udev/rules.d/50-android.rules
1
SUBSYSTEM=="usb", SYSFS(idVendor)=="18d1", MODE="0666"

然后修改执行权限

1
chmod a+rx /etc/udev/rules.d/50-android.rules

重启udev

1
sudo restart udev
1
2
3
4
5
su
cd android-tools-dir
./adb kill-server
./adb start-server
./adb devices