我在 Ubuntu 14.04 上连接 Android 平板电脑进行 USB 调试时遇到问题。我按照以下教程操作
http://forum.xda-developers.com/showthread.php?t=1228508
karthikeyan@spark:~$ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth
Bus 003 Device 023: ID 1f3a:1009
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
1f3a 是供应商 ID。我已在规则文件中添加了相同的内容。
#Allwinner
SUBSYSTEM=="usb", ATTRS{idVendor}=="1F3A", MODE="0660", GROUP="plugdev", OWNER="karthikeyan"
/etc/fstab 上的行
#mount point for allwinner tablet
mtpfs /media/allwinner fuse user,noauto,allow_other 0 0
当我将设备作为 MTP 连接时,它会安装一个驱动器。但它会抛出如下错误。
Device 0 (VID=1f3a and PID=1007) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
inep: usb_get_endpoint_status(): Resource temporarily unavailable
outep: usb_get_endpoint_status(): Resource temporarily unavailable
libusb_open() failed!: Resource temporarily unavailable
LIBMTP PANIC: Could not init USB on second attempt
Unable to open raw device 0
ADB 没有显示任何已连接的设备。
adb devices
答案1
您需要将您的 USB 供应商 ID 添加到 ~/.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.
0x1f3a