ADB 无法识别设备,但 Windows 可以。可能的原因?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5953043/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ADB fails to recognize devices, but Windows does. Possible causes?
提问by MSalters
Yes, another "adb devices return nothing". Seems I've found another problem case.
是的,另一个“adb 设备什么都不返回”。似乎我发现了另一个问题案例。
In my case, I'm running with prototype hardware, not commercial. That's no problem at the driver level, Windows picks up the provided driver. Device Manager shows the associated ADB device, with the correct vendor ID, product ID and serial number. Driver Provider is Google, Inc, version 1.0.9.0. So, that part is OK. (XP SP3, 32 bits btw)
就我而言,我使用的是原型硬件,而不是商业硬件。这在驱动程序级别没有问题,Windows 会选择提供的驱动程序。设备管理器显示关联的 ADB 设备,以及正确的供应商 ID、产品 ID 和序列号。驱动程序提供程序是 Google, Inc,版本 1.0.9.0。所以,那部分没问题。(XP SP3,32 位顺便说一句)
However, even though Windows recognizes the device and its ADB interface, it's not listed under adb devices
. Diagnostic output at end of post.
但是,即使 Windows 识别设备及其 ADB 接口,它也不会列在adb devices
. 帖子末尾的诊断输出。
Apparently, adb-server may need the vendor ID in .android/ADB_USB.INI
, so I've killed it, added one line with the relevant vendor ID, in hex (i.e. 0xFFFF
format) and restarted adb-server. The file says that this should be done via android update adb
, but that doesn't work Since adb fails to detect the device, that's no surprise. But it seems a chicken-and-egg design failure in ADB: how do you add the vendor ID of a device you fail to detect?
显然,亚行服务器可能需要在供应商ID .android/ADB_USB.INI
,所以我杀了它,加入相关的供应商ID一行,十六进制(即0xFFFF
格式)和亚行重新启动服务器。该文件说这应该通过 完成android update adb
,但这不起作用 由于 adb 无法检测到设备,所以这并不奇怪。但在 ADB 中似乎是先有鸡还是先有蛋的设计失败:如何添加未检测到的设备的供应商 ID?
Anyway, I can't get to my device this way. How do I tell adb-server to stop being deaf and just believe the OS list of compatible devices?
无论如何,我无法通过这种方式访问我的设备。我如何告诉 adb-server 不再聋,只相信兼容设备的操作系统列表?
Diagnostic output of adb devices:
adb 设备的诊断输出:
adb_query: host:devices
_adb_connect: host:version
socket_loopback_client: port 5037 type tcp => fd 100
writex: 100 0x22dcd7 4: 30303063 000c
writex: 100 ok
writex: 100 0x41d41d 12: 686f73743a76657273696f6e host:version
writex: 100 ok
readx: 100 0x22dc57 4
readx: 100 ok: 4f4b4159 OKAY
readx: 100 0x22dd14 4
readx: 100 ok: 30303034 0004
readx: 100 0x22dd14 4
readx: 100 ok: 30303161 001a
adb_close: 100(lo-client:5037)
_adb_connect: host:devices
socket_loopback_client: port 5037 type tcp => fd 101
writex: 101 0x22dcd7 4: 30303063 000c
writex: 101 ok
writex: 101 0x22ee11 12: 686f73743a64657669636573 host:devices
writex: 101 ok
readx: 101 0x22dc57 4
readx: 101 ok: 4f4b4159 OKAY
readx: 101 0x22ddb7 4
readx: 101 ok: 30303030 0000
readx: 101 0x4c3f80 0
readx: 101 ok:
adb_close: 101(lo-client:5037)
List of devices attached
回答by Vincent Hiribarren
I also had this problem, all the classical solutions with adb start-server / kill-server
did not worked for me.
我也遇到了这个问题,所有经典的解决方案都adb start-server / kill-server
对我不起作用。
I just had to... change the USB socket in which I plugged my cable.
我只需要...更换我插入电缆的 USB 插座。
Actually, it took some time to find that because Windows was correctly recognizing the device in the original socket. But not ADB. As Windows was recognizing the device, I had no real need to test other USB physical sockets. I should have.
实际上,花了一些时间才发现,因为 Windows 正确识别了原始套接字中的设备。但不是亚行。由于 Windows 正在识别该设备,因此我实际上没有必要测试其他 USB 物理插座。我应该。
So you can try to plug the cable in all your USB physical sockets directly available on your computer.
因此,您可以尝试将电缆插入计算机上直接可用的所有 USB 物理插座。
It did worked for me.
它确实对我有用。
回答by John Drefahl
Sony Ericsson Xperia X8, X10, X10mini xp drivers can be found on xda-developers, "the largest Internet community of smartphone/tablet enthusiasts and developers for the Android and Windows Phone platforms." I am not affiliated with this forum.
索尼爱立信 Xperia X8、X10、X10mini xp 驱动程序可以在xda-developers上找到,这是“最大的智能手机/平板电脑爱好者和 Android 和 Windows Phone 平台开发者互联网社区”。我不隶属于这个论坛。
Complete X10 FLashTools XDA Thread for downloading the latest version (comes with drivers) can be found on this thread:
可以在此线程上找到完整的 X10 FLashTools XDA 线程,用于下载最新版本(附带驱动程序):