Ubuntu 18.04 安卓调试小米

lsb

rrr@aaa:~$ lsusb
Bus 002 Device 002: ID 2109:0817 VIA Labs, Inc. 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2717:5001  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

新建文件

sudo gedit  /etc/udev/rules.d/50-android.rules

更改权限

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

输入

SUBSYSTEM=="usb", ATTR{idVendor}=="2717", ATTR{idProduct}=="5001", MODE="0666", GROUP="plugdev"

重启

sudo service udev restart
adb kill-server
adb start-server
adb devices

手机上USB改为传输文件模式

posted @ 2019-06-15 14:27  csig  阅读(369)  评论(0编辑  收藏  举报