简体   繁体   English

为什么OSX不能检测Android Galaxy S进行USB调试?

[英]Why can't OSX detect android Galaxy S for USB debugging?

I searched for similar questions on this issue but found none related to Mac OSX. 我在这个问题上搜索了类似的问题,但没有发现与Mac OSX有关。

Situation: 情况:
Trying to test android apps on a Galaxy S (Details below) but Mac is not detecting the device. 试图在Galaxy S上测试Android应用程序(下面的详细信息),但Mac没有检测到该设备。 Tried all the things below and have wondered whether this might be a driver issue ( which I've heard things about for Samsung USB debugging ). 尝试下面的所有事情,并想知道这是否可能是一个驱动程序问题( 我听说过三星USB调试的事情 )。

Questions: 问题:
1) Are samsung drivers required for android USB debugging? 1)Android USB调试需要三星驱动程序吗?
2) And are they available for Mac OSX? 2)它们适用于Mac OSX吗? 3) Any other reasons OSX might not detect device for usb debugging? 3)OSX可能无法检测到USB调试设备的任何其他原因?

Things I tried: 我试过的事情:

  • Enabled USB Debugging @ Settings >> Applications >> Development >> USB Debugging 启用USB调试 @设置>>应用程序>>开发>> USB调试
  • Enabled Tethering @ Settings >> Wireless and network >> Tethering >> USB Tethering 已启用Tethering @ Settings >>无线和网络>> Tethering >> USB Tethering
  • Set Tethered mode @ Settings >> USB connection >> Tethered mode 设置系留模式 @设置>> USB连接>>系留模式
  • Attempt to detect devices via ./adb devices (from platform tools dir) 尝试通过./adb设备检测设备 (来自平台工具目录)
  • Verified that "Unknown Sources" is checked @ Settings >> Applications >> Unknown Sources 已确认已检查“未知来源” @设置>>应用程序>>未知来源
  • Verified that device is connected to Mac 已验证该设备已连接到Mac
  • Restarted phone 重启电话
  • Restarted mac 重启mac
  • Added various device / product ids to adb_usb.ini 向adb_usb.ini 添加了各种设备/产品ID
  • Did ./android update adb (which does adb kill-server / start-server) 是./android更新adb (adb kill-server / start-server)

Using: 使用:
Samsung Galaxy S (4G) with Sprint 三星Galaxy S(4G)与Sprint
Mac OSX 10.6.8 Mac OSX 10.6.8
Eclipse Classic 3.7.1 Eclipse Classic 3.7.1

Have you tried connecting the phone using a powered USB hub? 您是否尝试使用有源USB集线器连接手机? I haven't tried it yet but found this blog post that suggests it may help for Samsung Galaxy devices. 我还没有尝试过,但发现这篇博文表明它可能有助于三星Galaxy设备。

http://esausilva.com/2010/10/02/how-to-set-up-adb-android-debug-bridge-in-mac-osx/ http://esausilva.com/2010/10/02/how-to-set-up-adb-android-debug-bridge-in-mac-osx/

确保将设备插入mac本身的usb端口,而不是键盘usb-ports。

Go to Tethering select and then deselct USB Tethering and you are done. 转到Tethering select然后取消USB Tethering,您就完成了。 this worked like a charm. 这就像一个魅力。

Well I tried all kind of stuff for a phone that was working yesterday but not today. 好吧,我为昨天工作但今天不工作的手机尝试了各种各样的东西。 Finally replacing the cable between the phone and my mac solved the issue. 最后更换手机和我的Mac之间的电缆解决了这个问题。

USB driver problems happens under Windows. Windows下会出现USB驱动程序问题。

For MacOS, I had nothing to do : ADB found my device. 对于MacOS,我无事可做:亚行找到了我的设备。

You don't need tethering : it's for sharing an Internet connection. 您不需要网络共享:它用于共享Internet连接。

USB Debugging is needed. 需要USB调试 Also make sure you authorize your Galaxy to use Unknown sources (@ Applications -> Unknown sources (it's a check box)). 还要确保您授权Galaxy使用未知来源 (@ Applications - > Unknown sources(这是一个复选框))。

Go to

  1. Settings 设置
  2. Wireless and Networks 无线和网络
  3. USB Utilities USB实用程序
  4. Detach the USB cable 断开USB线
  5. Select Connect Storage To PC 选择“ Connect Storage To PC
  6. Reconnect your USB cable to your phone. 将USB电缆重新连接到手机。

Source: Galaxy S II Forums - Help, Mac won't recognize my galaxy S 2 来源: Galaxy S II论坛 - 帮助,Mac无法识别我的星系S 2

This happens all the time with lots of phones. 这种情况一直伴随着许多手机发生。 Two things that have worked for me are (1) type "adb kill-server" at the command line, or (2) try another cable. 对我有用的两件事是(1)在命令行输入“adb kill-server”,或者(2)尝试另一条电缆。

This is what worked for me on Samsung Duos: 这对我在Samsung Duos上有用:

  1. Go to settings > More > About device(at the bottom) 转到settings > More > About device(at the bottom)

  2. On that about device screen go to bottom and touch 6 times on the "Build number" (un till it doesn't display any notice) 关于设备屏幕,在“Build number”上触摸底部并触摸6次(直到它没有显示任何通知)

  3. Then visit again to settings > More and it will display developer options before the about device. 然后再次访问settings > More ,它将在about设备之前显示开发人员选项。 Click on developer options and tweak options as you need. 单击开发人员选项并根据需要调整选项。

Now on the mac, click on run button in android studio, it will display the connected device. 现在在Mac上,点击android studio中的运行按钮,它将显示连接的设备。

Resource: http://www.geekygadgetworld.com/3303/enable-developer-option-samsung-galaxy-grand-duos 资源: http//www.geekygadgetworld.com/3303/enable-developer-option-samsung-galaxy-grand-duos

This may sound crazy, but I tried every suggestion on this page except what finally worked: 这可能听起来很疯狂,但我尝试了这个页面上的每个建议,除了最终的工作:

Use the Samsung USB cable that comes with the S7 (my S6 cable worked too) 使用S7附带的三星USB线(我的S6线也工作)

Every other USB cable I tried did not work. 我试过的每一根USB线都不起作用。 I don't know exactly why (USB 2 vs 3?), but that is what worked for me. 我不确切知道为什么(USB 2 vs 3?),但这对我有用。

Of course, make sure USB debugging is turned on, and yada yada yada, but I did all that and still NOTHING. 当然,确保打开USB调试,yada yada yada,但我做了所有这些并且仍然没有。 The moment I plugged in the USB cable that came with my S7 I got the RSA fingerprint message, and confirmed USB debugging, and the device showed up in Android Studio when I clicked Run. 当我插入S7附带的USB电缆时,我收到了RSA指纹消息,并确认了USB调试,当我点击Run时,设备出现在Android Studio中。

HTH --jsp HTH --jsp

I spent a night fighting this problem with my Doogee DG350 , which runs the Chinese MTK chipset which has issues with USB on OS X. I found the solution was to run ADB in TCP/IP mode and then connect wirelessly: 我花了一个晚上与我的Doogee DG350对抗这个问题,它运行Chinese MTK chipset ,它在OS X上遇到USB问题。我发现解决方案是在TCP/IP模式下运行ADB,然后无线连接:

adb tcpip 5555

adb connect 192.168.1.10:5555

adb devices

it's actually a bonus, cos you can dispense with the USB cable and debug wirelessly. 它实际上是一个奖励,因为你可以省去USB线并无线调试。 Not looking back 不回头

The connection via tcpip has a potential to work. 通过tcpip的连接有可能工作。 However, the port 5555 is probably not available. 但是,端口5555可能不可用。 I know this can work because I have an app on my Android called "Synctunes Wireless" which syncs' my itunes on my desktop wirelessly via tcpip and using port 4444. So I used the ip address and this port showing on this app and I can see this device in my Eclipse. 我知道这可以工作,因为我的Android上有一个名为“Synctunes Wireless”的应用程序,通过tcpip和端口4444无线同步我的桌面上的我的iTunes。所以我使用了ip地址和这个端口显示在这个应用程序上我可以在我的Eclipse中看到这个设备。 Only thing is that the device type is unknown so the "OK" button is still disabled. 唯一的问题是设备类型未知,因此仍然禁用“确定”按钮。 So this has potential to work. 所以这有可能奏效。 Just have to find the right port number or maybe something else that is missing. 只需找到正确的端口号或可能缺少的其他东西。

None of these things worked for me. 这些都不适合我。 I'm running 4.4.2 on an LG VS450PP, trying to connect to a Mac laptop running OS X 10.10.5. 我在LG VS450PP上运行4.4.2,试图连接到运行OS X 10.10.5的Mac笔记本电脑。 Neither MTP nor PTP worked at all, even after following all the suggestions listed here and elsewhere on SO. 即使在遵循此处和其他地方列出的所有建议之后,MTP和PTP都没有工作。 I only got the RSA message when I chose the Internet option from the USB settings (and then I chose Ethernet). 当我从USB设置中选择Internet选项时,我只收到了RSA消息(然后我选择了以太网)。

After that, it was golden. 在那之后,它是金色的。

If anyone still has this problem and looking for a solution, what helped me is to install Smart Switch app. 如果有人仍然遇到这个问题并寻找解决方案,那么帮助我的是安装Smart Switch应用程序。 After that my Samsung device finally showed up 之后,我的三星设备终于出现了

So i did some research because the same thing happened to me. 所以我做了一些研究,因为同样的事情发生在我身上。 If the simple solution doesn't work you should check if you installed knox when you first launch your phone. 如果简单的解决方案不起作用,您应该在首次启动手机时检查是否安装了knox。 If you did install knox the only way for you to activate usb debugging would be to reset your phone back to factory config in order to deactivate knox (aka not installing it again), apparently you don't have the option to unistall knox on recent phones. 如果您确实安装了knox,那么激活usb调试的唯一方法就是将手机重置为工厂配置以停用knox(也就是不再安装它),显然你没有选择unistall knox on recent手机。

我知道这很荒谬,但要确保你的手机有SIM卡!

要激活Samsung Galaxy S上的USB调试,请转到菜单 - >设置 - >应用程序 - >开发 - >检查“USB调试”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM