linux adb 端口,linux 无法连接adb 设备
之前電腦linux 連接 adb 設備一直都是正常的,今天突然出現無法連接的情況
adb shell
出現下面的錯誤信息
error: insufficient permissions for device
adb device
出現下面的信息
List of devices attached
????????????no permissions
解決方法
lsusb 查看adb 設備的端口號
Bus 002 Device 002: ID 05ac:8406 Apple, Inc.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 05ac:0259 Apple, Inc.
Bus 001 Device 006: ID 05ac:8289 Apple, Inc.
Bus 001 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 001 Device 018: ID 2207:0010
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
我的設備端口號是 2207 0010
vi /etc/udev/rules.d/android.rules
添加以下內容
SUBSYSTEM=="usb", ATTRS{idVendor}=="2207", ATTRS{idProduct}=="0010",MODE="0666"
保存,然后重新拔插usb 就能夠正常使用了
總結
以上是生活随笔為你收集整理的linux adb 端口,linux 无法连接adb 设备的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何使用man命令linux,Linux
- 下一篇: linux设备驱动开发详解源码,linu