Saturday, March 21, 2015

Debug your devices Wirelessly without Root

It's easy to connect and debug your apps in android devices wirelessly without Root.

All you need is,
 1. Android Device
 2. Mac / PC with Android SDK
 3. USB Cable

USB Cable ??? Just for the first time for a session.

Make sure your android device and the system is on same wifi network.

Next,

1. Locate your <sdk>/platform-tools
2. Go to Terminal / Command Prompt
3. Navigate to the location identified in step 1.
4. Connect your device using USB. (Make Sure USB Debugging is turned 'on')
5. Now it will be listed when you execute "adb devices".
6. Turn on tcpip feature.
      adb tcpip <ip address>:5555
7. Type the command,
      adb connect <ip address>
8. Once Step 7 is done, the device is connected through wifi. Check it by ensuring it is listed under "adb devices".
9. Remove the cable and verify your connection wirelessly.

You will be able to see your logs, execute adb commands etc.,

To reconnect using usb.
1. Execute,
     adb kill-server
2. Connect your device and execute, 
     adb usb - start adb

Now the device is connected via USB.


References

No comments:

Post a Comment