- $adb devices
什么设备也没有?List of devices attached
- $lsusb
Bus 001 Device 002: ID 413c:2003 Dell Computer Corp. Keyboard Bus 001 Device 017: ID 10a9:1104 SK Teletech Co., Ltd Sky Vega IM-A650S Bus 001 Device 003: ID 046d:c019 Logitech, Inc. Optical Tilt Wheel Mouse Bus 001 Device 005: ID 0bda:57b4 Realtek Semiconductor Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
可以看到自己的usb设备 : Bus 001 Device 017: ID 10a9:1104 SK Teletech Co., Ltd Sky Vega IM-A650S
且已打开USB调试,手机上也已经提醒Android 调试模式已启用
- google搜索、操作了半天,
$touch ~/.android/adb_usb.ini
$echo "0x1014" > ~/.android/adb_usb.ini
$sudo touch /etc/udev/rules.d/51-android.rules
然后加入SUBSYSTEM=="usb", ATTR{idVendor}=="10a9", MODE="0666", GROUP="plugdev"
adb kill-server
adb start-server
adb devices
然并卵,http://blog.csdn.net/smarxx/article/details/8167722 中最后发现这么1句:
1、android 4.1还需要打开设置->存储,在屏幕上三个点(“…”竖着放)那里点击,选择“USB计算机连接”,把链接方式设置为“媒体设备(MTP)”
照做,再执行adb devices,搞定:
List of devices attached IM-A860K01111132115768 device
-
补充说明:一个USB设备由两个ID来标识,Vender ID和Product ID,Vender ID由设备制造商向USB执行论坛申请,Product ID则由设备制造商自行分配。
以Bus 001 Device 017: ID 10a9:1104 SK Teletech Co., Ltd Sky Vega IM-A650S为例
Vender ID值是10a9,Product ID值是1104