Monday 28 October 2013

Android ADB over wifi - Portable wifi device

Bored of connecting your Android device to ADB with traditional way wired/USB cable?
Here is the solution, connect your device to ADB over wifi & deploy your application for testing, how cool is that?
In order to make this successful you should 

There are two ways to connect,
1. Non-Rooted  Devices
2. Rooted Devices


For Non-Rooted Device

1. Connect your device to Computer


2. Once it is connected to ADB, 

Go to command prompt locate your Android sdk/platform-tools as shown below


3. Type the below command

adb tcpip 5555
adb connect 192.168.0.101:5555
Make sure you will replace your IP (Device IP) 

4. Remove USB cable 

Now your device is connected via wifi ADB. 

5. To revert back to USB

Just type 
adb usb



For Rooted-Device

1. Download apps

ADB wifi https://play.google.com/store/apps/details?id=com.ryosoftware.adbw&hl=enor Wifi ADB https://play.google.com/store/apps/details?id=com.ttxapps.wifiadb&hl=enon your device. 

2. Go to command prompt

locate your Android sdk/platform-tools as shown below



3. open your any of the ADB wifi app 

now type in command adb connect 192.168.2.77 (as shown in your device)





4. Now you will be able to see 

connected to 192.168.2.77:5555



5. Now if you check you in DDMS you will be able to see your device connected in Device tab.


Enjoy ADB over wifi :) 
like it ? Please comment

6 comments:

  1. ADB over WiFi do not required to be root. Only to plug your phone using USB the first time :-)

    ReplyDelete
  2. Correct, Soon I will update the content. Thanks

    ReplyDelete
  3. Good post, just one thing I want to let you know that first time I face problem for non-rooted solution, It is not clear that which IP address we have to insert in command Device IP address or Computer IP address, but after both try I come to know that I have to give device IP address.

    Please mention clearly that device IP address we require for non rooted device.

    ReplyDelete
    Replies
    1. Hi Vimal,
      Thanks for notifying, I will update it. :)

      Delete
  4. Thanks for the post this will help many
    red wimax

    ReplyDelete