NotePublic/Software/OperatingSystem/Linux/Ubuntu/ubuntu_usb_连接手机无法识别设备解决方法.md

33 lines
713 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# [ubuntu usb 连接手机无法识别设备解决方法](https://blog.csdn.net/qq_30185811/article/details/78960780)
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
输入命令
$ sudo gedit ~/.android/adb_usb.ini
打开编辑器,加入设备 id
0x2c73
输入命令
$ chmod 777 ~/.android/adb_usb.ini
输入
$ adb kill-server
再次
$ adb devices
可发现已连接上设备。