ADB 无法在 Windows 7 上检测到我的 Kindle Fire,但设备管理器可以
所以我把这本书扔到了这个问题上,并认为我已经找出了原因。
我已经下载并安装了 JDK 32 和 64 位。 我已经根据需要安装了Android SDK。 我修改了 google-usb-driver 内部的 android_winusb.inf 以包含 Kindle Fire 设备 ID。 我尝试从亚马逊下载kindle fire windows 7驱动程序(如答案此处所述),并使用它。
我尝试修改该驱动程序以将消防设备 ID 包含在 x86 部分中。
我已经勤奋地杀死并重新启动了 adb,并重新启动了我的 comp 几次,看看是否能神奇地修复它。没有什么。
我唯一不确定的是adb_usb.ini的修改。不幸的是,我的 .android 文件夹不存在于我的 %USERPROFILE% 中,而是存在于我计算机上的另一个位置。该文件夹也没有 adb_usb.ini。因此,我将 .android 的内容复制到我的 %USERPROFILE% 中,并在每个文件中创建 adb_usb.ini,并将 0x1949 添加到该空文件中。
这不起作用。 adb devices 仍然显示为零。
我认为 adb 找不到我的 adb_usb.ini,但实际上,我不知道。如果是这样的话,我不知道如何解决。帮助?
So I've thrown the book at this problem and think I've isolated the cause.
I've downloaded and installed JDK 32 and 64 bit.
I've installed the Android SDK as needed.
I've modified android_winusb.inf inside of the google-usb-driver to include the Kindle Fire device IDs.
I tried downloading the kindle fire windows 7 driver from amazon (as described in the answer here), and using that.
I tried modifying that driver to include the fire device ID in the x86 section.
I've killed and restarted adb diligently, and restarted my comp several times to see if that would magically fix it. nothing.
The only thing I'm unsure about is the modification of adb_usb.ini. Unfortunately, my .android folder doesn't exist in my %USERPROFILE%, but instead exists in another location on my computer. That folder doesn't have adb_usb.ini either. So I copied the contents of .android to my %USERPROFILE%, and created adb_usb.ini in each, and added 0x1949 to that empty file.
This did not work. adb devices still turns up zilch.
I think adb is having trouble finding my adb_usb.ini, but really, I have no idea. And if that is the case, I don't know how to fix that. Help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
评论(17)
一般来说,从 /Tools 文件夹运行“android update adb”应该足以更新正确的 adb_usb.ini 文件。该文件的位置是相关的,因为 adb 只会查找其中之一。我在 sdkuilib.jar 中有一个 CRC 错误,并且无法复制。这导致“android update adb”失败,因此我的 adb_usb.ini 文件没有更新。
另外,当我手动更新时,我以 joe 用户身份登录,但我提升为管理员用户来执行更新。我修改了 adb_usb.ini 的 joe 用户副本 (c:\users\JoeUser.android\adb_usb.ini),但 adb 程序改为查看 adb_usb.ini 的管理副本 (c:\users\Admin.android\adb_usb .ini)。所以,adb没有看到我手工添加的0x1949。
一旦我替换了 sdkuilib.jar 的副本(通过重新下载、安装在单独的文件夹中并复制错误文件),我就能够运行“android update adb”并且 0x01949 显示在我的管理 adb_usb.ini 中。 [为了找到这个,我在 android.bat 和 find_java.bat 文件的顶部将 echo off 更改为 echo on。]
之后,我执行了 adb Kill-server 和 adb usb。但我仍然收到“错误:找不到设备”消息。这时我才注意到我的 Kindle Fire 超时了。我重新打开它,解锁它,此时,kill-server“adb usb”序列产生“以 USB 模式重新启动”。
生成输出后,adb 设备就会显示我的 Kindle Fire。
就我而言,我必须安装 Kindle Fire 驱动程序。
如果您在本地磁盘中找不到它,您可以从亚马逊官方页面下载:
https://developer.amazon.com/public/resources/development-tools/ide-tools/tech-docs/05-setting-up-your-kindle-fire-tablet-for-testing< /a>
直接链接:
https://s3.amazonaws.com/android-sdk-manager/redist /kindle_fire_usb_driver.zip
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
只需将 0x1949 添加到 adb_usb.ini 对我来说就足够了。
Just adding 0x1949 to the adb_usb.ini was enough for me.