How to fix adb “device offline” issue after android 4.2.2 upgrade

After I upgraded my nexus 4 to 4.2.2 I noticed that my adb stopped working (Mac). I quickly googled for the issue and I saw that many people are facing the same problem. But none of the solutions specified worked for me. After spending a lot of time trying to fix it, I finally managed to figure it out. I had almost decided to load a custom rom to make adb work, but thankfully it worked without that.

<Assuming you are running these commands in Mac/Linux>

  1. Goto your android sdk dir > platform-tools , and then run ./adb devices. It should show your device as offline. Only if this is the case, proceed with the next set of steps
  2. Run ./adb version
    Android Debug Bridge version 1.0.31. If it does not show this, you might need to upgrade your adb. In my case it did show the right version, but even then adb devices shows my device as offline.
  3. Next, try ./adb kill-server and then ./adb devices, this did not help me, but in some forum posts I read it helped a few other people.
  4. Now go to your SDK manager by going to your tools directory in android sdk and then type ./android.
  5. Click Package > reload. Now you should see an update available for Android SDK Platform-tools. This update will take you to 16.0.1 of platform-tools. (mine was at 16, and it didnt work)
  6. If you get a lot of errors like Failed to fetch URL , File not found, the reason could be root permissions. run sudo ./android and then you should be able to see an update. This was a lifesaver for me.
  7. After the update, your SDK manager will look like this :

    Screen Shot 2013-02-17 at 12.14.22 PM

  8. Now, when you connect your phone in USB debugging mode, you will see a popup like this :
    nexusae0_Screenshot_2013-02-12-11-47-41
  9. Have fun

Incoming search terms:

24 thoughts on “How to fix adb “device offline” issue after android 4.2.2 upgrade

  1. Dan

    At last someone normally explained how to fix the problem. Thanks for sharing that mate. You could’ve just move on but you spent some time on it and it’s greatly appreciated.

    Reply
  2. santosh

    Thanks a ton! Though I didnt need to go through all the process but the upgrade of adb got me through the issue.

    Reply
  3. m kashif

    Dear, my android 4.2.2 shows the same, I can’t open it though as I accidently deleted fonts in “/system/fonts”. Now my mobile stuck on boot screen. Can you help me how to fix it? Please mail me on [email protected]

    Reply
  4. https://www.msha.fr

    Hi, I do beⅼieve thіs is a great web site. I stumbledupon it ;) І mɑy ϲome baϲk oncce ɑgain sіnce I saved
    as a favorite іt. Money ɑnd freedom iѕ the gгeatest way to change, may you bbe rich and
    continue tⲟ hеlp othеrs.

    Reply
  5. Mikel

    Magnificent goods from you, man. I have take into account your
    stuff prior to and you are simply extremely fantastic. I really like what
    you’ve received here, really like what you are stating and the best way through which you are
    saying it. You’re making it enjoyable and you continue to care for to keep
    it sensible. I can not wait to read much more from you.
    This is really a great web site.

    Reply
  6. Noe

    Hello! Would you mind if I share your blog with my myspace group?
    There’s a lot of people that I think would really enjoy your content.

    Please let me know. Thank you

    Reply
  7. Jovita

    I have read so many articles or reviews concerning the blogger lovers except this piece of writing is in fact a pleasant article,
    keep it up.

    Reply
  8. Bette

    We stumbled over here by a different web page and thought I might check things out.
    I like what I see so now i’m following you. Look forward to looking over your web page again.

    Reply

Leave a Reply to Lance Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>