新安装了一台电脑,要用adb跟开发板通信
1.安装adb
user@hp-8200:~/Desktop/factory$ adb shell
The program 'adb' can be found in the following packages:
* adb
* android-tools-adb
Try: sudo apt install <selected package>
user@hp-8200:~/Desktop/factory$ sudo apt install adb
2.adb shell报错
user@hp-8200:~/Desktop/factory$ adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
error: insufficient permissions for device
解决办法:参考连接:点我呀,点我呀
我用的是连接里的终极办法:
打开文件夹 /etc/udev/rules.d, 我的文件夹下有一个文件50-burner.rules, 添加文件51-burner.rules, 文件内容为:
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"
保存文件, 重新插拔设备,问题就得到了解决,adb shell 就正常可用了。