Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
JeepFreak
Old
(Last edited by JeepFreak; 1st June 2012 at 04:09 PM.)
#1  
JeepFreak's Avatar
Senior Member - OP
Thanks Meter 160
Posts: 666
Join Date: May 2008
Wink [TUT] ADB over WiFi

I thought some people might appreciate the instructions to get adb working over WiF:

Type this in your terminal emulator on your One X:
Code:
su
setprop service.adb.tcp.port 5555
stop adbd
start adbd
(5555 can be whatever you want.)

Then check it with this:
Code:
getprop service.adb.tcp.port
When it returns "5555" then run this command in the terminal (or command prompt) on your computer:
Code:
adb connect 192.168.0.151
Obviously enter your device's IP address in place of 192.168.0.151. Your computer must have adb (duh!) and your phone must be on the same network.

And you should be connected!

To tell the One X to listen for adb on the USB port instead of TCP again, enter this into the terminal emulator:
Code:
su
setprop service.adb.tcp.port -1
stop adbd
start adbd
Or just reboot the phone.

And to tell your computer to use USB for adb instead of TCP:
Code:
adb usb
I would definitely use the USB cable to push large files or even small files that you really don't want to risk corrupting (partition images you plan on dding, etc).

Very importantly, keep in mind, when your phone is listening for adb via WiFi, it's wide open... anybody that that the adb installed and knows your device's IP address can access it without a password. Again, a simple reboot will turn it off though.

HTH,
Billy

PS - Your are appreciated!
The Following 22 Users Say Thank You to JeepFreak For This Useful Post: [ Click to Expand ]
 
rpomponio
Old
#2  
rpomponio's Avatar
Senior Member
Thanks Meter 436
Posts: 1,201
Join Date: Jan 2012
Location: victorville, california
Quote:
Originally Posted by JeepFreak View Post
I thought some people might appreciate the instructions to get adb working over WiF:

Type this in your terminal emulator on your One X:
Code:
su
setprop service.adb.tcp.port 5555
stop adbd
start adbd
(5555 can be whatever you want.)

Then check it with this:
Code:
getprop service.adb.tcp.port
When it returns "5555" then run this command in the terminal (or command prompt) on your computer:
Code:
adb connect 192.168.0.151
Obviously enter your device's IP address in place of 192.168.0.151. Your computer must have adb (duh!) and your phone must be on the same network.

And you should be connected!

To tell the One X to listen for adb on the USB port instead of TCP again, enter this into the terminal emulator:
Code:
su
setprop service.adb.tcp.port -1
stop adbd
start adbd
Or just reboot the phone.

And to tell your computer to use USB for adb instead of TCP:
Code:
adb usb
I would definitely use the USB cable to push large files or even small files that you really don't want to risk corrupting (partition images you plan on dding, etc).

Very importantly, keep in mind, when your phone is listening for adb via WiFi, it's wide open... anybody that that the adb installed and knows your device's IP address can access it without a password. Again, a simple reboot will turn it off though.

HTH,
Billy

PS - Your are appreciated!
I bet our usb plugs last longer doing things over WiFi. Thanks man


Sent from my HTC One X using XDA
 
paxy97
Old
#3  
paxy97's Avatar
Senior Member
Thanks Meter 29
Posts: 127
Join Date: Apr 2012
Location: Belgrade
Many custom ROMs and even some stock firmwares can change from usb to wifi in developer settings. Jellybean has this function built in with android so you dont need root or run any commands from terminal
The Following User Says Thank You to paxy97 For This Useful Post: [ Click to Expand ]
 
Post Reply+
Tags
adb wifi
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...