展讯(厂商ID 1782)问题连接到adb

时间:2014-07-18 01:41:11

标签: android adb

我的手机在Mac上被adb检测到,但在我的机器上却没有。 “未检测到”,我的意思是它确实显示在lsusb中,但“adb devices”报告了一个空白的设备列表:

adb devices List of devices attached

我尝试了以下内容:

  • 切换USB电缆
  • 确保设备处于USB调试模式
  • 恢复出厂设置
  • 将供应商ID(1782)添加到/etc/udev/rules.d
  • 在〜/ .android / adb_usb.ini文件中添加一个条目(这是必要的吗?)
  • 多个adb start-server和adb kill-server序列
  • 多次重启(以及“sudo udevadm control --reload-rules”)
  • 执行“android update adb”,删除〜/ .android / adb_usb.ini中的条目

相关信息:

  • 运行Ubuntu 14.04
  • 在插入设备时添加的lsusb中的条目:

Bus 003 Device 003: ID 1782:5d01 Spreadtrum Communications Inc.

  • /etc/udev/rules.d/51-android.rules内的行:

SUBSYSTEM=="usb", ATTR{idVendor}=="1782", MODE="0666", GROUP="plugdev"

  • 插入此设备时输出tail -f / var / log / syslog Jul 17 18:40:12 josh-N56VJ kernel: [ 1289.390363] usb 3-2: new high-speed USB device number 7 using xhci_hcd Jul 17 18:40:12 josh-N56VJ kernel: [ 1289.390439] usb 3-2: Device not responding to set address. Jul 17 18:40:12 josh-N56VJ kernel: [ 1289.594502] usb 3-2: Device not responding to set address. Jul 17 18:40:12 josh-N56VJ kernel: [ 1289.798588] usb 3-2: device not accepting address 7, error -71 Jul 17 18:40:13 josh-N56VJ kernel: [ 1290.094956] usb 3-2: new high-speed USB device number 9 using xhci_hcd Jul 17 18:40:13 josh-N56VJ kernel: [ 1290.111786] usb 3-2: New USB device found, idVendor=1782, idProduct=5d01 Jul 17 18:40:13 josh-N56VJ kernel: [ 1290.111797] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Jul 17 18:40:13 josh-N56VJ kernel: [ 1290.111802] usb 3-2: Product: DASH JR Jul 17 18:40:13 josh-N56VJ kernel: [ 1290.111808] usb 3-2: Manufacturer: BLU Jul 17 18:40:13 josh-N56VJ kernel: [ 1290.111813] usb 3-2: SerialNumber: 19761202 Jul 17 18:40:13 josh-N56VJ kernel: [ 1290.112433] usb-storage 3-2:1.0: USB Mass Storage device detected Jul 17 18:40:13 josh-N56VJ kernel: [ 1290.112598] scsi6 : usb-storage 3-2:1.0 Jul 17 18:40:13 josh-N56VJ mtp-probe: checking bus 3, device 9: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2" Jul 17 18:40:13 josh-N56VJ mtp-probe: bus: 3, device: 9 was not an MTP device Jul 17 18:40:14 josh-N56VJ kernel: [ 1291.112557] scsi 6:0:0:0: Direct-Access Spreadtr umopenphone 02 PQ: 0 ANSI: 2 Jul 17 18:40:14 josh-N56VJ kernel: [ 1291.113091] sd 6:0:0:0: Attached scsi generic sg2 type 0 Jul 17 18:40:14 josh-N56VJ kernel: [ 1291.115046] sd 6:0:0:0: [sdb] Attached SCSI removable disk

我可以使用相同的USB端口和相同的电缆调试其他设备而不会出现问题,但我不确定为什么这款手机无法连接。

其他相关问题:

第一个链接看起来与此问题类似,但我没有看到任何解决方案。 adb是否考虑了除udev规则之外的设备列表?还有其他东西抓住这个设备并让adb不注意它吗?

编辑 - 确认我是plugdev组的成员: josh@josh-N56VJ:~/Development$ groups josh adm dialout cdrom sudo audio dip plugdev lpadmin sambashare inpdev

1 个答案:

答案 0 :(得分:7)

通过这个普遍规则解决了这个非常有用的答案:

ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:ff420?:*", MODE="0666"

ADB not detecting device samsung i777 in ubuntu 12.04

感谢@ alex-p

其他信息:

电话= Blu Dash Jr

修改 我还需要手动将供应商ID(1782)添加到〜/ .android / adb_usb.ini文件中,如下所示:

# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x1782

仍然不确定供应商ID列表假设的编辑位置,因为该文件告诉我不要,但这可行。