讓Ubuntu adb devices 認得新裝置如: MSM8992
參考來源:
http://ubuntuforums.org/showthread.php?t=1918512
用 lsusb 指令看看目前USB上有接那些裝置
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 05c6:9025 Qualcomm, Inc.
Bus 002 Device 002: ID 045e:0800 Microsoft Corp.
有上面可以確定Qualcomm某裝置接到 /dev/bus/usb/001/004 上,
切換目錄到 /dev/bus/usb/001 確定下面有個 004
使用指令列出裝置詳細資料
udevadm info -q all -n /dev/bus/usb/001/004
P: /devices/pci0000:00/0000:00:04.1/usb1/1-2
N: bus/usb/001/004
S: VAD8992
E: BUSNUM=001
E: DEVLINKS=/dev/VAD8992
E: DEVNAME=/dev/bus/usb/001/004
E: DEVNUM=004
E: DEVPATH=/devices/pci0000:00/0000:00:04.1/usb1/1-2
E: DEVTYPE=usb_device
E: DRIVER=usb
E: ID_BUS=usb
E: ID_MODEL=Android
E: ID_MODEL_ENC=Android
E: ID_MODEL_ID=9025
E: ID_REVISION=0310
E: ID_SERIAL=Android_Android_c523b099
E: ID_SERIAL_SHORT=c523b099
E: ID_USB_INTERFACES=:ffffff:ff4201:ff0000:080650:
E: ID_VENDOR=Android
E: ID_VENDOR_ENC=Android
E: ID_VENDOR_ID=05c6
E: MAJOR=189
E: MINOR=3
E: PRODUCT=5c6/9025/310
E: SUBSYSTEM=usb
E: TYPE=0/0/0
E: UDEV_LOG=3
E: USEC_INITIALIZED=309437207
記下
ID_VENDOR_ID,ID_MODEL_ID
新增/etc/udev/rules.d/51-android.rules 檔案
內容為
SUBSYSTEM=="usb",ENV{ID_VENDOR_ID}=="05c6",ENV{ID_MODEL_ID}=="9025",MODE="0666",SYMLINK+="MSM8992"
logout後重新登入
使用指令 adb devices
即可偵測到新裝置
List of devices attached
c523b099 device
留言列表