ADB 无法识别设备,但 Windows 可以。可能的原因?
是的,另一个“adb devices 不返回任何内容”。看来我又发现了另一个问题案例。
就我而言,我使用的是原型硬件,而不是商业硬件。这在驱动程序级别上没有问题,Windows 会选择提供的驱动程序。设备管理器显示关联的 ADB 设备,以及正确的供应商 ID、产品 ID 和序列号。驱动程序提供商是 Google, Inc,版本 1.0.9.0。所以,那部分没问题。 (XP SP3,32 位顺便说一句)
但是,即使 Windows 识别该设备及其 ADB 接口,它也不会列在 adb devices
下。 帖子末尾的诊断输出。
显然,adb-server可能需要.android/ADB_USB.INI
中的供应商ID,所以我杀死了它,添加了一行相关供应商 ID(十六进制)(即 0xFFFF
格式)并重新启动 adb-server。该文件说这应该通过 android update adb 来完成,但这不起作用,因为 adb 无法检测到设备,所以这并不奇怪。但这似乎是 ADB 中先有鸡还是先有蛋的设计失败:如何添加无法检测到的设备的供应商 ID?
无论如何,我无法通过这种方式访问我的设备。我如何告诉 adb-server 不要充耳不闻,只相信兼容设备的操作系统列表?
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
Yes, another "adb devices return nothing". Seems I've found another problem case.
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)
However, even though Windows recognizes the device and its ADB interface, it's not listed under adb devices
. Diagnostic output at end of post.
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?
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?
Diagnostic output of adb devices:
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也遇到了这个问题,所有使用
adb start-server / Kill-server
的经典解决方案都不适合我。我只需要...更换我插入电缆的 USB 插座。
实际上,花了一些时间才发现这一点,因为 Windows 正确识别了原始插槽中的设备。但亚行则不然。由于 Windows 正在识别该设备,因此我没有真正需要测试其他 USB 物理插槽。我应该有。
因此,您可以尝试将电缆插入计算机上直接可用的所有 USB 物理插座。
它确实对我有用。
I also had this problem, all the classical solutions with
adb start-server / kill-server
did not worked for me.I just had to... change the USB socket in which I plugged my cable.
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.
So you can try to plug the cable in all your USB physical sockets directly available on your computer.
It did worked for me.
索尼爱立信 Xperia X8、X10、X10mini xp 驱动程序可在 xda-developers(“最大的互联网”)上找到由 Android 和 Windows Phone 平台的智能手机/平板电脑爱好者和开发人员组成的社区。”我不隶属于这个论坛。
用于下载最新版本(附带驱动程序)的完整 X10 FLashTools XDA 线程可以在此线程中找到:
http://forum.xda-developers.com/showthread.php?t=920746
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.
Complete X10 FLashTools XDA Thread for downloading the latest version (comes with drivers) can be found on this thread:
http://forum.xda-developers.com/showthread.php?t=920746