Android 亚行 + 三星 Galaxy
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1848567/
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 + Samsung Galaxy
提问by mobilekid
Has anyone been successful with hooking up a Samsung Galaxy with ADB running on Win XP Pro SP3? Links to already existing threads or tutorials related to this would be much appreciated! Thanks!
有没有人成功地将三星 Galaxy 与在 Win XP Pro SP3 上运行的 ADB 连接起来?与此相关的现有线程或教程的链接将不胜感激!谢谢!
回答by Sarp Centel
Install Samsung New PC Studiothat comes with the CD. It includes Windows drivers
Make sure that in your phone settings:
"Settings > Applications > Development > USB Debugging" is checked
"Settings > About phone > Additional Settings > Mass store" is NOTchecked- In android-sdk-windows\usb_driver\android_winusb.infadd the following lines under [Google.NTx86] if you're using a 32-bit operating system. Otherwise add them under [Google.NTamd64] if you have a 64-bit operating system:
; Samsung galaxy %CompositeAdbInterface% = USB_Install, USB\VID_04E8&PID_6640&MI_00 %SingleBootLoaderInterface% = USB_Install, USB\VID_04E8&PID_6640&MI_04
Connect your phone, in device manager you should see an Unknown device. Right click and say update driver, select android-sdk-windows/usb_driverdirectory. Android Bootloader Interface will be installed.
If your device isn't listed when you say adb devicesin command prompt, type adb kill-server
安装CD 附带的Samsung New PC Studio。它包括 Windows 驱动程序
确保在您的手机设置中:
“设置 > 应用程序 > 开发 > USB 调试”被选中
“设置 > 关于手机 > 附加设置 > 大容量商店”未被选中- 如果您使用的是 32 位操作系统,请在android-sdk-windows\usb_driver\android_winusb.inf 中的 [Google.NTx86] 下添加以下行。否则,如果您使用的是 64 位操作系统,请将它们添加到 [Google.NTamd64] 下:
; Samsung galaxy %CompositeAdbInterface% = USB_Install, USB\VID_04E8&PID_6640&MI_00 %SingleBootLoaderInterface% = USB_Install, USB\VID_04E8&PID_6640&MI_04
连接您的手机,在设备管理器中您应该会看到一个Unknown device。右键单击并说更新驱动程序,选择android-sdk-windows/usb_driver目录。将安装 Android Bootloader 接口。
如果在命令提示符中说adb devices时未列出您的设备,请键入adb kill-server
回答by Eli Ben-Ami
(For the following steps, I assume that you are using Google Android SDK 1.5 R3 or above)
(对于以下步骤,我假设您使用的是 Google Android SDK 1.5 R3 或更高版本)
In order to get your Windows XP recognize the Samsung Galaxy Android phone so you can develop on device , you have to do the following:
为了让您的 Windows XP 识别三星 Galaxy Android 手机,以便您可以在设备上进行开发,您必须执行以下操作:
refer to http://developer.android.com/guide/developing/device.html
参考http://developer.android.com/guide/developing/device.html
Add the following to your android-sdk-windows\usb_driver\android_winusb.inf:
将以下内容添加到您的 android-sdk-windows\usb_driver\android_winusb.inf:
under [Google.NTx86] add:
在 [Google.NTx86] 下添加:
; Samsung galaxy
%CompositeAdbInterface% = USB_Install, USB\VID_04E8&PID_6640&MI_00
%SingleBootLoaderInterface% = USB_Install, USB\VID_04E8&PID_6640&MI_04
under [Google.NTamd64] add:
在 [Google.NTamd64] 下添加:
; Samsung galaxy
%CompositeAdbInterface% = USB_Install, USB\VID_04E8&PID_6640&MI_00
%SingleBootLoaderInterface% = USB_Install, USB\VID_04E8&PID_6640&MI_04
回答by artifex
- Go to http://www.samsung.com/kies.
- Download and install kies(it will install the drivers)
- 转到http://www.samsung.com/kies。
- 下载并安装 kies(它将安装驱动程序)
Many people dislike kies. But this is the easiest way of getting the drivers installed.
许多人不喜欢凯斯。但这是安装驱动程序的最简单方法。
回答by crazy
It may be a problem with the phone if the drivers and adb are installed correctly see this thread adb doesn't see phone device (Galaxy Apollo)for some more info on it
如果驱动程序和 adb 安装正确,可能是手机有问题,请参阅此线程adb 没有看到手机设备(Galaxy Apollo)了解更多信息
回答by Philip Shaw
I was experiencing massive issues getting adb to work for my phone. It had been working at one stage prior to a firmware update (Now on Android 4.0.4 on a UK Samsung Galaxy s2 i9100) and it randomly stopped working. Im on XP 64 and it may only be an issue for 64 bit operating systems.
我在让 adb 为我的手机工作时遇到了很多问题。它在固件更新之前的某个阶段一直工作(现在在英国三星 Galaxy s2 i9100 上的 Android 4.0.4 上),并且随机停止工作。我在 XP 64 上,这可能只是 64 位操作系统的问题。
Usb debugging had always been set, the drivers were installed, but adb would not work.
一直设置usb调试,安装驱动,但是adb不行。
Numerous help guides all seem to concentrate on getting the correct drivers to install with kies or with extracted drivers from kies only but this was largely not my problem (or the drivers with kies for the samsung s2 no longer allow adb?) My phone is rooted with superuser and busybox only but otherwise has completely standard firmware (had been rooted and was unrooted when android 4.0.4 was upgraded).
许多帮助指南似乎都集中在让正确的驱动程序与 kies 一起安装或仅从 kies 中提取驱动程序,但这在很大程度上不是我的问题(或者三星 s2 的带有 kies 的驱动程序不再允许 adb?)我的手机已植根仅具有超级用户和busybox,但除此之外还具有完全标准的固件(在升级android 4.0.4 时已被root 和unroot)。
So starting from a point with the drivers installed I can connect to my phone as an MTP, as a Camera, as a Mass Storage device and with Kies. I have Kies installed and have had it reinstall the drivers multiple times but this should probably work fine without Kies and just the latest drivers installed as available from here http://forum.xda-developers.com/showthread.php?t=961956. I have a device listed in Device Manager "Samsung Android ADB Interface" with driver version "2.9.505.831" but no ADB.
因此,从安装驱动程序开始,我可以将手机作为 MTP、相机、大容量存储设备和 Kies 连接到我的手机。我已经安装了 Kies 并多次重新安装驱动程序,但是如果没有 Kies 并且只安装最新的驱动程序,这应该可以正常工作http://forum.xda-developers.com/showthread.php?t=961956. 我在设备管理器“Samsung Android ADB Interface”中列出了一个驱动程序版本为“2.9.505.831”但没有 ADB 的设备。
It appeared I had an issue with the uart connection on my phone (as shown in the phoneutil screen) and also I needed to be able to install the adb interface driver from the google sdk.
我的手机上的 uart 连接似乎有问题(如 phoneutil 屏幕所示),而且我还需要能够从 google sdk 安装 adb 接口驱动程序。
I was able to do neither of these using the standard methods/guides I was able to find elsewhere.
使用我能够在其他地方找到的标准方法/指南,我无法做到这些。
To change the uart setting back to pda and the usb connection back to pda the special code *#7284# no longer works on the Samsung Galaxy s2 i9100 Android 4.0.4 (or at least not for me) I had to download the bettercut apk (which I may very well had to pirate because I couldn't find it in the market) and made a shortcut to phoneutil manually
要将 uart 设置改回 pda 并将 USB 连接改回 pda,特殊代码 *#7284# 不再适用于三星 Galaxy s2 i9100 Android 4.0.4(或至少不适用于我),我必须下载 Bettercut apk (我很可能不得不盗版,因为我在市场上找不到它)并手动创建了一个到 phoneutil 的快捷方式
bettercut > new shortcut > no > all activities > phoneutil
Bettercut > 新快捷方式 > 否 > 所有活动 > phoneutil
There you can change the settings to modem and back to pda (when connected in modem mode xp listed a new device "7 CDS's" which would not install).
在那里您可以将设置更改为调制解调器并返回到 pda(当以调制解调器模式连接时,xp 列出了一个不会安装的新设备“7 CDS”)。
After that I had to install the google driver from the sdk (adt-bundle-windows-x86_64\sdk\extras\google\usb_driver)
之后我必须从 sdk (adt-bundle-windows-x86_64\sdk\extras\google\usb_driver) 安装谷歌驱动程序
And to allow Windows XP 64 to install the drivers you need to edit "android_winusb.inf" to add the samsung galaxy as a valid device.
并允许 Windows XP 64 安装驱动程序,您需要编辑“android_winusb.inf”以将三星 Galaxy 添加为有效设备。
I added the following lines to [Google.NTx86] and [Google.NTamd64].
我将以下几行添加到 [Google.NTx86] 和 [Google.NTamd64]。
android_winusb.inf
android_winusb.inf
[Google.NTx86]
; Samsung galaxy
%CompositeAdbInterface% = USB_Install, USB\VID_04E8&PID_6860&MI_00
%SingleBootLoaderInterface% = USB_Install, USB\VID_04E8&PID_6860&MI_04
%CompositeAdbInterface% = USB_Install, USB\VID_04E8&PID_6860&adb
%SingleBootLoaderInterface% = USB_Install, USB\VID_04E8&PID_6860&adb
[Google.NTamd64]
; Samsung galaxy
%CompositeAdbInterface% = USB_Install, USB\VID_04E8&PID_6860&MI_00
%SingleBootLoaderInterface% = USB_Install, USB\VID_04E8&PID_6860&MI_04
%CompositeAdbInterface% = USB_Install, USB\VID_04E8&PID_6860&adb
%SingleBootLoaderInterface% = USB_Install, USB\VID_04E8&PID_6860&adb
I found instructions to add a device USB\VID_04E8&PID_6860&MI_00 however this did not match my phone, I needed to manually determine the device ID and add it myself before windows would let me install the drivers.
我找到了添加设备 USB\VID_04E8&PID_6860&MI_00 的说明,但是这与我的手机不匹配,我需要手动确定设备 ID 并在 Windows 允许我安装驱动程序之前自己添加它。
Device Manager > Samsung Android Phone > Samsung Android ADB Interface > Properties > Details > Matching Device ID
设备管理器 > 三星 Android 手机 > 三星 Android ADB 接口 > 属性 > 详细信息 > 匹配设备 ID
And the phone ADB interface had the following ID USB\VID_04E8&PID_6860&adb
并且手机ADB接口有以下ID USB\VID_04E8&PID_6860&adb
Which I added as above (if your phone doesnt match you would need to do this too I think). I then updated the driver for "Samsung Android ADB Interface" using the "Android Bootloader Interface" which I can now select from the Google SDK Driver.
我如上添加(如果您的手机不匹配,我认为您也需要这样做)。然后我使用“Android Bootloader Interface”更新了“Samsung Android ADB Interface”的驱动程序,我现在可以从 Google SDK Driver 中选择它。
Install "Android Bootloader Interface" from google SDK.
从谷歌 SDK 安装“Android Bootloader Interface”。
I then was able to reinstall the "Samsung Android ADB Interface" driver as before or the "Android Composite ADB Interface" from the google SDK and ADB started working (as tested with ADB Devices, mine is now listed, woot!).
然后,我能够像以前一样重新安装“三星 Android ADB 接口”驱动程序或来自 google SDK 的“Android 复合 ADB 接口”驱动程序,ADB 开始工作(已使用 ADB 设备进行测试,我的现在已列出,哇!)。
So i think the problem was mainly the lack of the Android Bootloader Interface driver, with the UART thing possibly having some effect?
所以我认为问题主要是缺少 Android Bootloader 接口驱动程序,UART 的东西可能有一些影响?
However I did have adb working BEFORE i decided to re-root my phone (only discovered it stopped working when I couldn't use ADB Explorer however I am failry certain I had used it not 10 minutes before). So why it stopped working I haven't a clue. I am pretty certain nothing changed on my pc, so perhaps setting the uart mode back and forcing the drivers to reinstall was enough to fix it. However maybe adb no longer works for the standard samsung drivers and you need to install the drivers from the sdk too?
但是,在我决定重新启动我的手机之前,我确实让 adb 工作(仅在我无法使用 ADB Explorer 时才发现它停止工作,但我确信我在 10 分钟前没有使用过它)。那么为什么它停止工作我不知道。我很确定我的电脑上没有任何变化,所以也许将 uart 模式设置回来并强制重新安装驱动程序就足以修复它。但是,也许 adb 不再适用于标准的三星驱动程序,您也需要从 sdk 安装驱动程序?
Id be interested to know if there are other folk in the same boat, if they have any idea what happened.
我很想知道是否还有其他人在同一条船上,如果他们知道发生了什么。