如果您是第一次使用或者Ubuntu中没有安装adb,需要先安装adb才能正常使用,在终端执行:
sudo apt install adb -y
打开Ubuntu的终端,打开后输入adb device
,可能会由于系统的安全模式被禁用,如下所示:
ubuntu@ubuntu2004:~$ adb devicesList of devices attachedk230-adb-dev no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html]
解决办法:
1.查看adb目录
ubuntu@ubuntu2004:~$ which adb
/usr/bin/adb
2.切换至adb目录下
ubuntu@ubuntu2004:~$ cd /usr/bin/
ubuntu@ubuntu2004:/usr/bin$
3.修改所属用户和用户组
ubuntu@ubuntu2004:/usr/bin$ sudo chown root:root ./adb
4.修改权限
ubuntu@ubuntu2004:/usr/bin$ sudo chmod 4777 ./adb
5.重启Ubuntu
ubuntu@ubuntu2004:/usr/bin$ reboot
重启Ubuntu后,请重新启动开发板连接ADB,此时将Ubuntu可以正常使用ADB功能