Http://stuffandtech.blogspot.jp/2012/03/android-quick-tip-adb-over-wifi.html
Mar26android Quick tip-adb over Wifisomeone I had the pleasure of working with recently showed me something extremely co OL for Android Development. It's simply that it's possible to use the ADB (Android Debug Bridge) over TCP/IP or more practically speaking over WiFi. This means so you don ' t has to tether you ' r Android device (s) to your ' r computer when you're developing, you can just Connect it to a charger or someone elses computer. This was quite handy if you had more Android devices then USB ports and very very handy if you were working with multiple p Eople on the same LAN that is testing you ' r latest builds. Here is a quick tutorial (requires Android SDK and ADB installed):
Step 1.
Connect your ' r Android device to you ' R computer and has USB debugging enabled. Also you has to have added the "Android tools" to "R path" or else you had to go to the SDK folder first. Open up you ' r terminal/cmd and type:
adb tcpip 5555
This should give the output:
restarting in TCP mode port:5555
You has now enabled ADB over TCP/IP using the port 5555 (use another port if it is taken)
Step 2.
Now knowing the IP of your ' R Android device (settings->about->status) type the following into the terminal:
adb connect <you ' r devices IP adress>
You should now get the output:
connected to <you ' R devices IP adress>
Step 3.
You should now being able to debug against you ' r device as usual as long as it's connected to the same Wi-Fi as you ' r compute R. A Simple test:
ADB devices
Should give the output:
List of devices attached:
<you ' R devices IP adress> device
Or something similar. Go ahead and try to read the Logcat using DDMS or simply deploying to your ' r device using you ' R favourite IDE IntelliJ idea . I have tested the following to work over WiFi ADB:
- Logcat output
- Deploy Dev App
- Debug Dev App
- Screenshots over ADB
I have the been using my Nexus S so this could not be work on all Android devices, but does give it a try and post here if you are Su Cessfull (with the name of you ' r device). A huge thanks to Håvard for showing me this!
Update
Sorry for does checking the comments here, a minor typo are probably causing problems as the first line were with 555 and the n the following is with 5555, fixed now, sorry guys.
Android Quick tip-adb over WiFi