Why can't OSX detect android Galaxy S for USB debugging? - java

I searched for similar questions on this issue but found none related to Mac OSX.
Situation:
Trying to test android apps on a Galaxy S (Details below) but Mac is not detecting the device. 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).
Questions:
1) Are samsung drivers required for android USB debugging?
2) And are they available for Mac OSX?
3) Any other reasons OSX might not detect device for usb debugging?
Things I tried:
Enabled USB Debugging # Settings >> Applications >> Development >> USB Debugging
Enabled Tethering # Settings >> Wireless and network >> Tethering >> USB
Tethering
Set Tethered mode # Settings >> USB connection >> Tethered mode
Attempt to detect devices via ./adb devices (from platform
tools dir)
Verified that "Unknown Sources" is checked # Settings >> Applications >> Unknown Sources
Verified that device is connected to Mac
Restarted phone
Restarted mac
Added various device / product ids to adb_usb.ini
Did ./android update adb (which does adb kill-server / start-server)
Using:
Samsung Galaxy S (4G) with Sprint
Mac OSX 10.6.8
Eclipse Classic 3.7.1

Have you tried connecting the phone using a powered USB hub? I haven't tried it yet but found this blog post that suggests it may help for Samsung Galaxy devices.
http://esausilva.com/2010/10/02/how-to-set-up-adb-android-debug-bridge-in-mac-osx/

Go to Tethering select and then deselct USB Tethering and you are done.
this worked like a charm.

make sure that you plugin your device in the usb ports on the mac itself, not on the keyboard usb-ports.

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.

USB driver problems happens under Windows.
For MacOS, I had nothing to do : ADB found my device.
You don't need tethering : it's for sharing an Internet connection.
USB Debugging is needed. Also make sure you authorize your Galaxy to use Unknown sources (# Applications -> Unknown sources (it's a check box)).

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.

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)
Every other USB cable I tried did not work. I don't know exactly why (USB 2 vs 3?), but that is what worked for me.
Of course, make sure USB debugging is turned on, and yada yada yada, but I did all that and still NOTHING. 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.
HTH
--jsp

Go to
Settings
Wireless and Networks
USB Utilities
Detach the USB cable
Select Connect Storage To PC
Reconnect your USB cable to your phone.
Source: Galaxy S II Forums - Help, Mac won't recognize my galaxy S 2

This is what worked for me on Samsung Duos:
Go to settings > More > About device(at the bottom)
On that about device screen go to bottom and touch 6 times on the "Build number" (un till it doesn't display any notice)
Then visit again to settings > More and it will display developer options before the about device. 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.
Resource: http://www.geekygadgetworld.com/3303/enable-developer-option-samsung-galaxy-grand-duos

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:
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. Not looking back

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. Neither MTP nor PTP worked at all, even after following all the suggestions listed here and elsewhere on SO. I only got the RSA message when I chose the Internet option from the USB settings (and then I chose Ethernet).
After that, it was golden.

The connection via tcpip has a potential to work. However, the port 5555 is probably not available. 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. 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.

If anyone still has this problem and looking for a solution, what helped me is to install Smart Switch app. 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.
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.

I know it is ridiculous but do make sure your phone's got a SIM card!

To activate the USB debugging on Samsung Galaxy S go to Menu -> Settings -> Applications -> Development -> Check "USB debugging".

Related

Android Studio can't detect my android POS Terminal [duplicate]

After installing android studio, I installed ADB as well. However, for some reason ADB doesn't detect my device. To make a note I think I have done all the basic stuff I found online, i.e.:
Set device in Developer mode and enable USB debugging
Cable works well (Android file transfer automatically opens when I connect the device)
Installed Java JDK 8
I have done 'adb kill-server', restarted my device and Mac but still not working
I'm using Android Studio 2.2 and running Mac OS X Sierra on my Laptop, and the android phone is running Android 5.0.1 (on an LG Phone)
NB: I have tried the other solutions on stack overflow but thats not the problem.
ADB (is installed) and works from the command line, but when I run :
'adb usb' command, it says 'error: no devices/emulators found'
'adb devices' command, it prints 'List of devices attached' with an empty line beneath.
I believe this is a specific issue and the general solutions to install ADB or restart doesn't work here as I have tried all that.
I have removed and reinstalled android studio, still not working.
I have removed and reinstalled adb and adb & fastboot, still not working.
I have restarted my device, disabled and re-enabled developer mode, still not working.
Obviously, I have unplugged and plugged the cable back in several times, still not working (only Android File Transfer keeps coming up)
Just in case, I have rooted my device, could that be the problem or that doesn't matter?
You basically need to set the USB mode to PTP mode instead of Media Transfer Protocol (MTP) mode.
When I connected the device via USB the USB icon and Debugging Mode Icon appeared on the status bar on the device.
If you open control center by swiping down from the top, you should see a "Media device MTP" - Tap for more USB options. Tap it and switch the mode to "Send Images (PTP)" mode and it should ask you if you want to enable USB debugging. Enable it and the device should be recognized by ADB and Android Studio now.
I just clean installed my MBP and encountered the same issue. I tried the things suggested here but nothing worked.
What I had to do to fix it was "Revoke USB debugging authorizations" from the Developer options.
Once I did that, it offered up the usual "did you want to allow debugging on this device" option, and everything was back to normal.
Go to developer options and enable USB Debugging:
Settings > More > Developer Options > Debugging > USB Debugging.
Note:
You have to enable developer mode on your phone first
I was already in USB debugging enabled state and also had switched USB configuration to PTP. It was still in always charging mode no matter what I do. I had even reinstalled all Android related stuff, tried on multiple devices to find a fix. Finally what worked for me was getting a new cable.
I had posted a question here (now marked as duplicate) since these answers didn't suffice my situation.
If anyone is still having problems, consider the cable you are using. Not all USB cables are created equal! Some will charge but not allow data transfer. See this post.
In my case, the problem was that developer mode went away after doing an Android system update. Double-check developer mode and USB debugging settings.
I tried everything on my MBP but failed to fix the issue. Finally, with the least expectation, I reset my MBP's SMC, and everything is back to normal!!!
https://support.apple.com/en-us/HT201295
Make sure no other services are trying to access the device via adb. For me, I was using chrome inspect for checking the network requests. When I closed that window studio automatically detected the device.
Yeah, this one's tricky! Enabling Developer Options on your device is just a half of the procedure. Now you need to go to:
Settings > System > Advanced > Developer Options > Revoke USB Debugging Authorizations
Also check the cable - some are just for charging, no data can pass trough.
Please use the correct USB-C cable that came with the phone/device. Also, this can happen if incompatible converter is used, but this is less likely.
Add “platform-tools” to your PATH variable by invoking the following in the Terminal (make sure to change the file path to reflect where you placed the folder “platform-tools” on your system):
echo 'export PATH=$PATH:~/SDKs/android-sdk-macosx/platform-tools/' >> ~/.bash_profile
Execute the following command to reload your bash profile (this applies the change to the PATH variable):
source ~/.bash_profile
Note: The PATH variable is the search path for commands. It is a list of directories, each separated by a colon, in which the shell looks for commands. To see what values are currently in your PATH variable, use the following:
echo $PATH
adb devices
It should return something like this (if you have one Android device attached):
List of devices attached
212304114c28b9e device
I tried all of the above and the only thing that helped me was
to change the USB port and also change the data cable.
I was actually using a converter from USB type to C type at the connecting end to mac port
I think the converter corrupted the mac port. This was for Macbook Pro
update
I also tried doing a soft reset of the SMC and worked like a charm after that.
I face the same problem with my One+ device and after trying everything mentioned above , still was not able to conenct . But finally after enabling "OTG storage" option in System , it works.
it might be different for different custom devices . so ultimately you have to look for an option which gives a notification in device when you conenct and disconenct your device with system.
This happened to me on initial setup. I noticed that Gradle sync was taking a long time, so I waited for it to fully sync, then my device magically became available!
ADB was detecting the device but AS wasn't, I went to Preferences > Build, Execut

Connection stuck while using Samsung Remote Test Lab

I want to track down a bug on Samsung Devices using Samsung RTL. Sadly i cant get that client to work on my System (macOS 10.13.1):
It just says Connecting...
Nothing happens from here.
Steps i did to come here:
Downloaded and installed newest JRE from Website:
https://www.java.com/inc/BrowserRedirect1.jsp
Enabled Java for Browser and Web-Start-Apps in Java Control Panel
Added https://img-developer.samsung.com to exeption list
Checked for Port 2600 using Network Utility:
https://support.apple.com/en-us/HT202790
Create Samsung Developer Account
Reserving an Device (Galaxy S6)
Download .jnlp-File and run it
Customer Support has answered to me. Seems like i have just selected a bad device. I chose another one and it worked :)

OnePlus One not found in Android Studio on Mac

I have a strange problem while developing in Android Studio on mac and i am using OnePlus one. While debugging if a call come on my mobile adb disconnect my device and don't show it again. Help me to solve this permanently.
Only solution that i have found and which works is in following step:
Restart mac
disconnect cable from mac and OnePlus One
Kill adb server
start adb server
Revoke developer certificate and turn off developers option.
restart onePlus One
Turn on OnePlusOne and connect device with mac
Open Android Studio
Enable developer option and then enable debugging option
After I follow these steps, fingerprint dialog show and once I allow that dialog, device starts to show.
This process is time consuming. I am facing this problem on mac.
Putting the phone in airplane mode seems to have temporarily fixed the issue for me. I still need to look at the logs and figure out what is wrong, but there seems to be a bug in the latest 5.x updates for the OPO.
Are you using EasyTether? If yes, you can disable it by using the following command:
sudo kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext
If that does not work, open System Information utility and check your device manufacturer ID (Vendor ID). Copy that and paste it into your adb usb config by using
echo 0x9d17 >> ~/.android/adb_usb.ini
Then restart your macbook and mobile phone and try if it works.
There are several reasons your phone may not be getting detected properly, in my case it showed my phone in My Computers, and also asked me if I allowed my PC to debug on my phone. Yet it wasn't showing the phone in the android studio adb devices drop down menu.
All I did was, go to
Tools>Android>Enable ADB Integration
and it found my device. This is once I had installed my OPX driver that shows as a disk in My Computers and also Samsung USB driver. I'm talking about Windows here but the solution applies to Android Studio on any platform. So thought I should share.

No active compatible AVD's or devices found. --- getting this message only for SAMSUNG Devices

I am new in android development. I have downloaded Android SDK + eclipse. and did the settings as mentioned here. I am using two mobile sets i) Micromax canvas A11 and ii) SAMSUNG Galaxy S3. For Micromax it is working properly. I can able to run my hello world application in micromax. But same app is not working in SAMSUNG. It gives me this error message
[2014-06-09 13:03:14 - SamsungOne] No active compatible AVD's or devices found. Relaunch this configuration after connecting a device or starting an AVD.
what to do... please help. And I have to develop application for SAMSUNG S3 only. And I referred other posts of stackoverflow. but getting the same error.
In device manager it is showing like this ....
If you want to run your applications in samsung mobiles you need to install samsung kies in your PC. Download kies from here
Some devices will automatically installs device drivers in your pc when you connect to pc but some are not. So that is why we need to install pc sync to test our applications.
To enable USB debugging (only for Android v4.2 and above) :
Go to Settings → More → About Device Scroll down to Build Number Tap it repeatedly (tap 7 times). See the Developer options menu under Settings → More
See this video for installing kies and this for enable debug mode.
Please Enable your Debuging mode on in your device,
To Enable to debugging mode >> go to Developer option in settings
And Download Samsung-Andorid-USB-Driver from here
http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows
Hope it will worked for you
My Samsung is an honest piece of.... er, brick, considering it doesn't even properly connect to USB anymore. Beforehand, when it didn't think it's charging when it isn't, and think that my computer is a car dock; I had to manually link it to the PC so that it would be detected. The way you do that is by downloading the drivers, specifically this one: http://forum.xda-developers.com/showthread.php?t=2645355
What also helped was installing these drivers using the command 'pnputil -i -a filename.inf'
http://forum.xda-developers.com/showthread.php?t=1514942
And what you need to do is, restart your computer, then when you plug the device in, it will detect it as an UNKNOWN DEVICE because Samsung Drivers are terrible. When this happens, go to Control Panel -> Device Manager -> Other Devices -> Unknown Device -> Update Driver Software -> Browse my computer -> Let me pick from a list -> See all drivers -> Samsung -> select the one for usb phones.
That should fix the problem. KIES never helps.
Got it..
In your mobile Goto
Setting -> About -> (touch on Build Number 7 times continuously) -> then come back to Developer Option -> Enable USB Debugging
USB Debugging option was not coming for me. Above Android v4.2 they have hidden USB Debugging option.
Got this from youtube

adb cannot find my device for Android debugging. Why?

I installed Windows USB Android SDK
driver for the Android Dev Phone 1
I enabled all the debugging modes and stuff on the phone.
It even says...USB debugging connected.
When I type adb devices , it shows me only my emulator , and not my phone.
It doesn't seem to recognize my Android Phone as an adb device. Why is that?
Might be faster just to restart the adb server:
adb kill-server ; adb start-server
Or what I often use:
adb kill-server ; adb devices
When you call adb devices it automatically starts up the adb server. Then gives you the list of devices it can find. Sometimes even then it doesn't find the device right away so you may need to call adb devices a few more times.
There're many reasons which can cause the problem, try:
Turn on "USB debugging mode" in Settings->Application->Development.
Reinstall device drivers.
Restart Window/Mac.
Restart device.
To complete the other answers in case other people have this problem: I also had this problem, all those solutions did not work.
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. But not ADB.
Mine finally recognized the device after changed USB connection mode to "Camera (PTP)"
Settings > Storage > (upper right hand corner more options) USB computer connection.
I don't know if it's because I rooted mine.
For Samsung Note 3 specifically, you will need to switch to "Media Device USB3.0" instead of just "Media Device MTP" before the device show up on adb devices.
I had same problems and tried everything, and that worked for me,
Sometimes the problem is in the drivers; try this :
http://adbdriver.com
download the adb driver and run it, it will download the driver for your phone,

Categories

Resources