需要帮助,“adb”没有检测到我的手机,我不知道该怎么办;这就是我所做的,如果我有错误或有什么请告诉我。
我以 root 身份登录并创建此文件。
/etc/udev/rules.d/51-android.rules
这些是我的规则,适用于我的手机LG L80+Bello D331。
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666"
我运行此命令并重新启动。
chmod a+r /etc/udev/rules.d/51-android.rules
最后,我测试我的更改,但不显示我的设备。
$ adb devices List of devices attached
附加信息
问: Android 上是否开启了 USB 调试? R:是的。
操作系统: Ubuntu 15.04(64 位)
$ lsusb
Bus 004 Device 003: ID 8086:0189 Intel Corp.
Bus 004 Device 005: ID 1004:6300 LG Electronics, Inc. <<<
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 004: ID 138a:0011 Validity Sensors, Inc. VFS5011 Fingerprint Reader
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ ls -l /dev/bus/usb/004/
total 0
crw-rw-r-- 1 root root 189, 384 ago 21 05:21 001
crw-rw-r-- 1 root root 189, 385 ago 21 05:21 002
crw-rw-r-- 1 root root 189, 386 ago 21 05:21 003
crw-rw-rw- 1 root root 189, 388 ago 21 18:15 005
更新 1
51-android.rules文件改动:
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev"
命令:
$ lsusb
Bus 004 Device 004: ID 8086:0189 Intel Corp.
Bus 004 Device 003: ID 1004:6300 LG Electronics, Inc. <<<
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 138a:0011 Validity Sensors, Inc. VFS5011 Fingerprint Reader
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
$ ls -l /dev/bus/usb/004/
total 0
crw-rw-r-- 1 root root 189, 384 ago 21 11:33 001
crw-rw-r-- 1 root root 189, 385 ago 21 11:33 002
crw-rw-rw- 1 root plugdev 189, 386 ago 21 11:33 003 <<<
crw-rw-r-- 1 root root 189, 387 ago 21 11:33 004
但是,“adb”没有检测到我的设备::(
$ adb devices
List of devices attached