Search This Blog

Saturday, November 30, 2013

Samsung Galaxy S4 - USB debugging mode in Android 4.2 and higher

Back to writing android applications.

With my new Samsung Galaxy 4, there is no longer a button for USB Debug Mode!

This setting allowed aps you develop in eclipse with the android sdk to be run directly on your phone when plugged into the USB cable.  Otherwise you have to post the apk file to the web, and turn on the "allow aps from unknown sources" every time you want to test your app on a real device.  Now it's gone.

This is a long trail of notes on what I did.  For the impatient, skip to the bottom, I summed it up at the end

A little googling found this:  Google hid the feature to protect the random user.

How to find and turn on USB debugging mode in Android 4.2 and higher

To see the option for USB debugging mode in Android 4.2 or higher, do the following:
  • Open up your device’s “Settings”. This can be done by pressing the Menu button while on your home screen and tapping “System settings”
  • Now scroll to the bottom and tap “About phone”
  • At the “About” screen, scroll to the bottom and tap on “Build number” seven times.
    • Make sure you tap seven times. If you see a “You are now a developer!” message pop up, then you know you have done it correctly.
Done! By tapping on “Build number” seven times, you have unlocked USB debugging mode on Android 4.2 and higher. You can now enable/disable it whenever you desire by going to “Settings” -> “Developer Options” -> “Debugging” ->” USB debugging”.

Read more at http://dottech.org/87439/how-to-unlock-usb-debugging-mode-on-android-4-2-jelly-bean-and-higher-guide/#fAVhAE2oVbDEJwQe.99

Hmmm...

The phone says "You are now a developer".  So it clearly worked. But still not seeing the phone in Eclipse adb run chooser....
Phone says "Connected as an installer"

http://stackoverflow.com/questions/16256048/eclipse-android-sdk-cannot-see-new-samsung-galaxy-s4-device-via-a-usb-connection

same answers.  I have the drivers installed and i did the 7x.  Still nothing.

from \Local\Android\android-sdk\platform-tools
Tried
adb kill-server
adb start server
Didn't work.  Still can't see the device.

Tried these drivers...

http://www.samsung.com/us/support/owners/product/SCH-I545ZWAVZW

Nothing.

http://stackoverflow.com/questions/3908301/why-doesnt-eclipse-see-my-samsung-galaxy-phone-even-though-i-can-transfer-files

Tried installing KIES.
Kies 3Supported models : Note 3 and devices with Android 4.3.
http://www.samsung.com/us/kies/#downloadWindows

Still not showing up in adb.  Arrggh

I doesn't even show up under Unknown Devices
Although it does show up as a portable device and i can see the sd card, etc.

Tried installing the drivers in KIES manually.  No dice.

This website shows where to get drivers
http://developer.android.com/tools/extras/oem-usb.html

Tried the Moto drivers to get my old Droid 2 working again just to prove it is not eclipse.
Back to visit previous self...
http://blog.workingsi.com/2011/12/getting-started-developing-apps-on.html
2) Install the development USB driver on your Windows computerMore surfing...http://developer.android.com/guide/developing/device.html I think need to install the windows adb driver for my phone on my computer.  You need a special USB driver for developers.http://developer.motorola.com/docstools/USB_Drivers/ Clicked on Handset USB Driver for Windows 64 bit, had to register and all that junkDownloaded, installed  Motorola Mobile Drivers Installation 5.2.0Rebooted
3) Verify that you can see the phone from the computerReading the http://developer.android.com/guide/developing/device.html site again, I got some more info on how to run "adb devices". 
Turns out you run this in a command window on the windows box, after you cd over to the directory where the android sdk is installed.  Ran it there.  Duh.   Here you see the command running for me. 
You can verify that your device is connected by executing adb devices from your SDK platform-tools/ directory. If connected, you'll see the device name listed as a "device."




Or, to upgrade an existing Android USB driver on Windows 7 with the new driver:
  1. Connect your Android-powered device to your computer's USB port.
  2. Right-click on Computer from your desktop or Windows Explorer, and select Manage.
  3. Select Device Manager in the left pane of the Computer Management window.
  4. Locate and expand Android Phone in the right pane.
  5. Right-click Android Composite ADB Interface and select Update Driver. This will launch the Hardware Update Wizard.
  6. Select Install from a list or specific location and click Next.
  7. Select Search for the best driver in these locations; un-check Search removable media; and check Include this location in the search.
  8. Click Browse and locate the USB driver folder. (The Google USB Driver is located in<sdk>\extras\google\usb_driver\.)
  9. Click Next to upgrade the driver.
The old developer.motorola page is gone now.   Why is this so hard now?  I got this done in no time years ago.

Tried these drivers.  The unkown device goes away and I see a USB drive.
https://motorola-global-portal.custhelp.com/app/answers/detail/a_id/88481/action/auth

I go to the moto phone and it is now saying USB is in storage mode.  Change it to "PC mode" on the phone menu.
Drivers spin and it re-installs on the PC.  Motorola ADB Interface is listed in the things windows says is ready to use.    USB drive is gone and under network adapters in the device manager is "Motorola USB Networking Driver".

"adb devices"  returns a number for the moto phone now.  But in eclipse I still don't see it.

I tried the samsung changing usb mode to "media device" and "camera"  neither helped adb see it.
It is hung up in USB stick mode.  I don't see a listing under "Network adapters"

I scoured the settings on the samsung again.   I find under Settings->More->Developer options, there is now a button that says USB Debugging Mode.  It is unclicked.
Whaaa Daaa Faaaa???  How could I have missed that.   The secret unlock just reveals the button, I sitll have to click it.
Things start happening on the device manager, installing, etc.
Now I see SAMSUNG_Android in the Other devices for a sec until it blips out.
It doesn't like the installed samsung driver and after a few seconds, blips and goes back to being a usb stick.   


http://forum.xda-developers.com/showthread.php?t=1601739
says uninstall kies and just do the samsung drivers
Have it working - and did remember I have Kies installed.Maybe I downloaded both the separate driver and Kies?
USB Driver Link:http://org.downloadcenter.samsung.co...1_3_2360_0.exe
Kies Link:http://org.downloadcenter.samsung.co...1082_152_4.exe
Know I have problem still with Kies... but I can use ODIN without issues.I can't really explain how I did it, as there was a lot of trial and error and I wasn't keeping notes. But the basic trick was to right click in device manager on the unknown SAMSUNG_Android device, choose Update Driver, choose "Let me pick", choose "Have disk", point to the "SAMSUNG\USB Drivers\25_escape" folder from the KIES installation, and then choose "Samsung Mobile USB Composite Device".
You may then get another unknown device, which using the same method you set to ADB. I did a bunch of stuff in different ways, trying to match different drivers from the 25_escape folder to different devices, until it finally worked.
http://forum.xda-developers.com/showthread.php?t=1624166
Pull up a commandline, go to Documents and Settings\username\.android directory, and do
Code:
echo 0x04e8 >> adb_usb.ini

this is the code for samsung

Folllowed those instructions, but the usb driver folder C:\Program Files (x86)\Samsung\USB Drivers\25_escape didn't exist in my install.

Went back to the kies site and downloaded the older version of kies and installed

Not in there either.  Fail

http://www.samsung.com/us/function/search/espsearchResult.do?input_keyword=adb&keywords=adb
There is a link in the posts to the lastest adb driver.  it's broken

http://www.samsung.com/us/support/downloads/SPH-P100ZKASPR
selected the carrier and model number
Win XP/Vista/Win 7/Win 8Nov 9, 2012ENGLISH23.06
Doesn't work.

Putting the USB in "Camera" mode left the SAMSUNG_Android in the device manager.  MTP mode
makes it dissapear.  Windows tries to install a driver for it in this mode and fails.


A day of complete frustration.

http://www.mediafire.com/download/5kcxc1yovvl6740/SAMSUNG_USB_Driver_for_Mobile_Phones%282%29.exe

back to google

http://www.droidforums.net/forum/samsung-galaxy-s4/249648-issues-adb.html

Read a bunch of pages about rooting.  I'm doing everything they say.  Fail.

regroup.

Finally tried device manager one more time, right clicked on the unknown device and picked choose from compatible drivers.  Let me pick from a list.  Strangely I got a list of moto and generic adb drivers.  I picked adb composite device.  it installed with a warning.

Now adb devices gives me a response!  Device manager other device dissapeared . So it might not be healthy yet.  ADB Interface device showed up on top of the device manager.

I run ecllipse and I suddenly have a device!   it looks a little broken but finally something is happening.


I find I can't select it.  OK is greyed out .

Try switching to one of the moto composite drivers.  Requires rebooting.  Fail.  Now it has dissapeared again.

Went back to the single composite ADB sooner driver on the list.

Tried to figure out why it was unauthorized

http://stackoverflow.com/questions/19485467/adb-wireless-device-unauthorized

The phone had never asked me to authorize.  I went to the developer settings menu on the phone.
Uncliked usb debug.  Pressed the button that says revoke permissions.   Unplugged the phone.
Plugged it back in, re-enabled usb debug and tadah!  It asked me to give the computer permission.
I did so and and adb devices now says the device is there!

It works!!! OMG.  This was the biggest pain in the arse.  Eclipse now reports the phone there.



I don't know if anyone could follow my notes, and i'm too fed up to clean them up.
The gist is this.

  • 7 pushes on build to enable the developer menu in the phone info screen
  • Go to the now visible developer menu and select USB debugging
  • Install the samsung usb drivers.  Don't know which version really did it, if any.  From Kies or from their website
  • Plug in the phone
  • Tell the USB to go to "camera" mode
  • Go to windows device manager and right click on the unknown samsung device
  • Select browse and select from list
  • Pick adb single sooner driver
  • Go back to the phone developer menu and unauthorize devices.  plug it in again and it should ask to allow the computer to connect.  Say yes.
  • Win!


64 comments:

  1. I feel that a debt of gratitude is in order for the valuabe data and bits of knowledge you have so given here. haasil

    ReplyDelete
  2. I feel that a debt of gratitude is in order for the valuabe data and bits of knowledge you have so given here. Jannat Zubair Rahmani

    ReplyDelete
  3. ultimate, however now not the least, Biogenic Xr it is a superb concept to strive a natural testosterone supplement.
    http://www.healthprograme.com/biogenic-xr-reviews/

    ReplyDelete
  4. Hi,
    Wao Great i Much like this Post really impressed from this
    Haasil Full Video See it and Enjoy

    ReplyDelete
  5. Cla Safflower Oil The water replenishes the fluids in order to be used to make bicarbonate answer at the mucus membrane of our belly lining.
    http://www.drozhealthblog.com/cla-safflower-oil/

    ReplyDelete

  6. You've made some really good points there. I checked on the internet for more info about the issue and found most individuals will go along with your views on this website. Porus Drama

    ReplyDelete
  7. Wow, This is a great post, i hope it is helpful for every body. Dash Cam

    ReplyDelete
  8. CLA Safflower Oil My buddies used to name me fatty and always made amusing of me. That section was disturbing for me, and the keenness to appearance attractive made me understand that it was high time now.
    http://xtrfact.com/cla-safflower-oil/

    ReplyDelete
  9. Dermagen IQ On the off chance that you have skin break out you should remember that it can be caused and turned out to be aggravated at times in view of ecological variables Dermagen IQ for UK.
    http://www.usadrugguide.com/dermagen-iq/

    ReplyDelete
  10. Yeh Hai Mohabbatein watch online full episodes and written updates free on desi tashan
    \x3ca href\x3d\x22http://www.desi-tashann.tv\x22 rel\x3d\x22nofollow\x22\x3e Porus Drama\x3c/a\x3e

    ReplyDelete
  11. Dermagen IQ It has a one of a kind hostile to bacterial property formally alluded to as Unique Manuka Factor (UMF) which secures the skin against bacterial contaminations.
    http://www.drozhealthblog.com/dermagen-iq/

    ReplyDelete
  12. Rapiture Muscle Builder once more, it's miles important to put together these on your personal, and cook with as little synthetic flavorings as possible Rapiture Muscle for Spain.
    http://xtrfact.com/rapiture-muscle-builder/

    ReplyDelete
  13. Perlelux Take the regular Collagen creams for instance. Did you realize that Collagen atoms are so enormous in measure, they can't pass .
    http://www.drozhelp.com/perlelux/

    ReplyDelete
  14. D BAL Max certainty I gained as I was building my body. Man, I let you know. Something transforms you inside. Influences you to feel intense.
    http://xtrfact.com/d-bal-max-review/

    ReplyDelete
  15. Slimfire Forskolin from TV advertisements and others, that being overweight Forskolin is ugly? We get the message. We feel the need.
    http://supplementdigestdog.com/slimfire-forskolin/

    ReplyDelete
  16. Xtrfact All in all, what are the choices open to you? Progressively, an ever increasing number of individuals are .
    http://xtrfact.com/

    ReplyDelete
  17. Pure CBD Oil Battles against pallor Keeps up the adjust of glucose Upgrades our safe framework Contains vitamin C.
    http://www.drozhealthblog.com/pure-cbd-oil/

    ReplyDelete
  18. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often. Tutu VIP

    ReplyDelete
  19. Dermagen IQ it will respond in a more positive way Common fixings won't cause disturbance or irritation Dermagen IQ for UK and since whatever .
    http://www.drozhealthblog.com/dermagen-iq/

    ReplyDelete
  20. This is a great article thanks for sharing this informative information. I will visit your blog regularly for some latest post. I will visit your blog regularly for Some latest post. App Valley

    ReplyDelete
  21. Perlelux the age of 30 to 40 which is considered as the pinnacle age for rosacea to create. The vast majority don't understand.
    http://www.usadrugguide.com/perlelux-ca/

    ReplyDelete
  22. Nitridex the estrogen levels in ladies are many They incorporate ill-advised nourishment, lopsided exercise, hormonal lopsidedness .
    http://supplementdigestdog.com/nitridex/

    ReplyDelete
  23. Zylix Plus with a specific end goal to supplant the spilling insert. It won't not be conceivable to evacuate the majority of the silicone gel.
    http://www.drozhealthblog.com/zylix-plus/

    ReplyDelete
  24. I as of late discovered numerous helpful data in your site particularly this website page. Among the heaps of remarks on your articles. Much obliged for sharing.

    WorldWide Life Styles
    Download AcMarket

    ReplyDelete
  25. I really Like these all thing that are in your webpage, I was Looking such website that Contains article like that. Thanks for providing us articles like that I will again visit your blog soon. Thanks one again
    Tu Aashiqui Full Episode

    ReplyDelete
  26. Yeh Hai Mohabbatein Star Plus Drama Serial, watch online video Naamkaran on youtube, Yeh Rishta Kya Kehlata Hai live telecast today episode, Ishqbaaz free download hot star video.

    ReplyDelete
  27. Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing... Yeh Pyaar Nahi Toh Kya Hai

    ReplyDelete
  28. Watch Full Episodes of Star Plus, colors TV, Zee TV, Sony TV.http://ishqpakeezah.com
    http://ishqpakeezah.com
    http://reminderpk.com

    http://www.dramacooltv.com

    ReplyDelete
  29. Ek Deewaana Tha is an Indian romance-horror television show on broadcast on Sony Entertainment Television since 23 October 2017. The show is created by Prateek Sharma and is produced by his production company LSD films. Haasil

    ReplyDelete
  30. An intriguing discussion is worth comment. I think that you ought to publish more on this subject matter, it might not be a taboo matter but generally people don't discuss these issues. To the next! Kind regards!!
    LambinganTV
    Teleserye Replay
    Pinoy Teleserye
    Pinoy Tambayan
    Pinoy Channel
    Pinoy TV Replay
    Pinoy TV
    Pinoy TV shows
    Ang Probinsyano Full Episode
    Asintado Full Episode

    ReplyDelete
  31. Sir I am very happy to find your blog you are working good. I was looking such article today I find the blog which is full of articles that I was looking. Every article is good in wrinting and also full of quality material. Thanks for sharing I am looking forward to visit your blog again and again. Thanks
    Kasam Full Episode

    ReplyDelete
  32. Watch all your favorite Pinoy TV shows online for free! Our website can provide you with free PinoyTv Full Episode of pinoy tambayan and Pinoy channel tv.

    ReplyDelete
  33. Watch all your favorite Pinoy TV shows online for free! Our website can provide you with free PinoyTv Full Episode of pinoy tambayan and Pinoy channel tv.

    ReplyDelete
  34. Watch all your favorite Pinoy Tambayan shows online for free! Our website can provide you with free PinoyTv Full Episode of pinoy tambayan and Pinoy channel tv.

    ReplyDelete
  35. Watch all your favorite Sub Eng shows online for free! Our website can provide you with free Eng Sub Full Episode of Subbed and Sub Korean tv.

    ReplyDelete
  36. wow this is wonderful post.Hindi Tv Series Brings Indian Dramas and i like your article always.
    You have a grip on this topic. We have to come daily to watch latest updates.
    i must say you will always rock like blogger. best Wishes.
    Hindi Tv Series

    ReplyDelete
  37. We have to come daily to watch latest updates.
    i must say you will always rock like blogger. best Wishes.
    Indian Dramas

    ReplyDelete
  38. Watch all your favorite Sub Title shows online for free! Our website can provide you with free Eng Sub Full Episode of Subbed and Sub Korean tv.

    ReplyDelete
  39. Watch all your favorite Sub Title shows online for free! Our website can provide you with free Eng Sub Full Episode of Subbed and Sub Korean tv.

    ReplyDelete
  40. Having read this I thought it was extremely informative. I appreciate you taking the time and effort to put this information together. I once again find myself personally spending a lot of time both reading and posting comments. But so what, it was still worth it!
    Porus Drama

    ReplyDelete
  41. such a outclass blog.watch video HaasilI found today providing great information

    ReplyDelete
  42. Tu Aashiqui is wonderfull drama serial by colors tv. Its I presented by voot. This serial got huge fame due to its unique story and cast. We have all the list of Indian dramas, must come and visit and watch your favorite shows. We hope you like our Spirit and work.
    Ishqbaaz

    ReplyDelete
  43. Tu Aashiqui is wonderfull drama serial by colors tv. Its I presented by voot. This serial got huge fame due to its unique story and cast. We have all the list of Indian dramas, must come and visit and watch your favorite shows. We hope you like our Spirit and work.
    Ishqbaaz

    ReplyDelete
  44. DOWNLOAD PAID APPS FOR FREE WITH TUTUAPP FROM PLAYSTORE DOWNLOAD TUTUAPP FOR MORE INFO

    Tutuapp

    Tutuapp Android

    ReplyDelete
  45. I am unquestionably making the most of your site. You certainly have some extraordinary understanding and incredible stories. Visit Fifa 2018 live streaming

    ReplyDelete
  46. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!. ios screen recorder

    ReplyDelete
  47. Pinoy Tambayan Live Pinoy Tambayan is another type of filipino TV shows because there are different terms for each of them so Pinoy Tambayan is also a famous Keyword and ASINTADO Pinoy Tambayan shows are also watched and loved by the people of Phillippines.

    ReplyDelete
  48. Video Watch Online The Step Daughters June 19 2018 Full Episode. The Step Daughters June 2018 Full Episode today. The Step Daughters June 19 2018 ABS-CBN TV HD. The Step Daughters June 19 2018 Replay by GMA Network. Watch The Step Daughters June 19 2018 Pinoy Tv, Pinoy Channel, Pinoy Tambayan.

    ReplyDelete