ubuntu 18.04安装adb和fastboot调试工具
安装adb和fastboot报错信息安装adb和fastboot
sudo apt-updata
sudo apt-get install android-tools-adb android-tools-fastboot
报错信息
$ adb devices
daemon not running; starting now at tcp:5037daemon started successfully
List of devices attached
cfab7911 no permissions (user in plugdev group; are your udev rules wrong?); see [/tools/device.html]
解决办法:
sudo vim /etc/udev/rules.d/70-snap.snapd.rules
增加如下内容:
SUBSYSTEM==“usb”, MODE=“0660”, GROUP=“plugdev”, SYMLINK+=“android%n”
然后执行:
1、sudo udevadm control --reload-rules
2、adb kill-server
3、adb devices
或者:
插拔一次Android设备