Android – Run/install/debug applications over WiFi.

Solution 1:

If you want to enable wireless adb on the device without connecting with a usb cable at all:

  1. Install a terminal app on the device (like Android Terminal Emulator) Type the following
  2. su
  3. setprop service.adb.tcp.port 5555
  4. stop adbd
  5. start adbd

Since you already have the terminal opened, you can find the ip of the device: ip addr show

Then in your debugging environment run command:

adb connect ip.of.the.device

This will make the device to be listed as any other emulators you might have. Note that the tcp will stay opened until you reset the device. You might also want to install WiFi Keep Alive app if you experience often disconnects.

Remember to close the tcp when connecting to public networks if you want to feel safe.You can do the following or simply restart the device:

  1. su
  2. setprop service.adb.tcp.port -1
  3. stop adbd
  4. start adbd

 

—————————————

Solution 2:

  1. Connect device via USB and make sure debugging is working.
  2. adb tcpip 5555
  3. adb connect <DEVICE_IP_ADDRESS>:5555
  4. Disconnect USB and proceed with wireless debugging.
  5. adb -s <DEVICE_IP_ADDRESS>:5555 usb to switch back when done.

No root required!

 

 Source : http://stackoverflow.com/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s