更新文件 ubuntu_usb_连接手机无法识别设备解决方法.md

This commit is contained in:
lion187 2019-03-06 23:51:30 +08:00
parent e5e2f4167f
commit df82917b7a
1 changed files with 11 additions and 11 deletions

View File

@ -2,32 +2,32 @@
1. usb线连接手机输入命令
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0461:4e22 Primax Electronics, Ltd
Bus 001 Device 002: ID 413c:2107 Dell Computer Corp.
Bus 001 Device 029: ID 2c73:7029
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0461:4e22 Primax Electronics, Ltd
Bus 001 Device 002: ID 413c:2107 Dell Computer Corp.
Bus 001 Device 029: ID 2c73:7029
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
2. 输入命令
$ sudo gedit ~/.android/adb_usb.ini
$ sudo gedit ~/.android/adb_usb.ini
打开编辑器,加入设备 id
0x2c73
0x2c73
3. 输入命令
$ chmod 777 ~/.android/adb_usb.ini
$ chmod 777 ~/.android/adb_usb.ini
4. 输入
$ adb kill-server
$ adb kill-server
再次
$ adb devices
$ adb devices
可发现已连接上设备。