Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb device offline with ADB wireless

Tags:

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?

like image 850
vital Avatar asked Jul 13 '13 03:07

vital


People also ask

Can you use adb wirelessly?

ADB is normally used on Android via a USB cable. But you can also set up and use ADB wirelessly.


1 Answers

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.

like image 97
Gery Avatar answered Sep 18 '22 17:09

Gery