adb device offline with ADB wireless

vital picture vital · Jul 13, 2013 · Viewed 37k times · Source

For some reasons, my phone does not work anymore with cable.

I saw on the Internet that it is possible to connect adb to the via Wifi, however I tried it and I get this:

adb devices
List of devices attached
192.168.1.2:5555        offline

I search this on Google and it seems that it is related to Android 4.2.2. And indeed, my device is running Android 4.2.2.

I didn't find any answers on Google for my problem since it is always with a cable, mine is on Wifi...

Any idea how to solve this?

Answer

Gery picture Gery · Mar 18, 2016

For me the complete steps that worked were :

  • Settings -> Developer options -> Revoke USB debugging authorizations (clear the list of authorized PCs).

  • Set USB Debugging OFF.

  • In Terminal write : adb kill-server

  • Then : adb start-server

  • Then : adb connect xx.xx.xx.xx:5555 (the devices ip), it should say unable to connect.

  • Now turn ON USB debugging again and type the adb connect xx.xx.xx.xx:5555 again.

    It should now ask for authorization and you are back online without needing to connect cable to USB, only wifi used.