Howto: Enable Adb over wireless

defconoi

Senior Member
Oct 31, 2008
3,184
6,076
0
SCHUYLKILL HAVEN
www.android-unleashed.com
Hey guys just a heads up and quick howto:
Here is how to get adb wireless working so you dont need to use a cable any longer to easily push/pull files and logcats/debugging
(its beyond me why google doesnt have a ui option to turn this on)

Open up a terminal emulator (I use rom toolbox pro) with droidmote and do this:

Code:
su
setprop service.adb.tcp.port 5555
stop adbd
start adbd
From pc do this:
Code:
adb tcpip 5555
adb connect 192.168.0.101:5555
Code:
adb shell
adb push blah etc
To automate this on boot, add this as a script to rom toolbox/pro to execute on boot
 
Last edited:

IBNobody

Senior Member
Sep 20, 2010
198
50
0
Hey guys just a heads up and quick howto:
Here is how to get adb wireless working so you dont need to use a cable any longer to easily push/pull files and logcats/debugging
(its beyond me why google doesnt have a ui option to turn this on)

To automate this on boot, add this as a script to rom toolbox/pro to execute on boot
I'm not seeing ADB-over-wifi stay on all the time. I have the script set up to run at boot. Is Android stopping/starting the ADB service?
 

IBNobody

Senior Member
Sep 20, 2010
198
50
0
Su then setenforce 0
Thanks. I've tried this using Script Manager. It worked, and I am 24h without losing access.

https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en

Here is the contents of the script.

Code:
#!/system/bin/sh
setenforce 0&&setprop service.adb.tcp.port 5555&&stop adbd&&start adbd&&echo Done
The script is set to run on boot and after a network change.

I chained the commands together for convenience. (If I don't see "done", I know a command failed.)
 

pacman366

Member
Jan 12, 2009
24
17
0
This is a pretty useful find! Thanks! I'd like to add a startup script for this, where can the init script directory be found for startup script placement on the nexus player? I can't seem to find it anyplace browsing the root filesystem using adb shell. I'm already rooted and what not.

Sent from my Nexus 6 using Tapatalk
 
Last edited:

dandaddy

New member
Jan 11, 2010
1
0
0
Thank you all!

Works fantastically. Using the script provided by IBNobody, the Scripter tool in ROM Toolbox Pro, and the PC commands from the OP, wireless USB Debugging is recognized.
Cheers!
 
Last edited:

trevd

Inactive Recognized Developer
Jul 19, 2011
893
1,269
123
Hull
Just an FYI Folks

you don't need to do all the su business on the device .. just connecting the device up the a pc with usb and doing

Code:
adb tcpip 5555
adb connect  .....
As the adb usage helpfully points out
"adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port"
Thanks
trevd
 
Last edited:

rellik1000

Member
Feb 20, 2011
18
17
0
W.N.Y.
no script needed to autostart wireless adb

FYI peeps
No script needed to auto start wireless adb.
Obvious security concern though
Just add the line
service.adb.tcp.port=5555
to build.prop
It will auto start wireless adb at boot.
So far it has worked on all 15 android devices I've owned up to 4.4.2 not sure about lollipop.
I pretty much do everything on my TV sticks from my couch.
BTW android commander is a great free adb gui to perform basic tasks.
Very slow on my network though.

DON'T BLAME ME!!
Good luck
 
Last edited:

pacman366

Member
Jan 12, 2009
24
17
0
FYI peeps
No script needed to auto start wireless adb.
Obvious security concern though
Just add the line
service.adb.tcp.port=5555
to build.prop
It will auto start wireless adb at boot.
So far it has worked on all 15 android devices I've owned up to 4.4.2 not sure about lollipop.
I pretty much do everything on my TV sticks from my couch.
BTW android commander is a great free adb gui to perform basic tasks.
Very slow on my network though.

DON'T BLAME ME!!
Good luck
This did the trick for me. Thank you.

Sent from my Nexus 6 using Tapatalk
 

Raybasto

New member
Jan 24, 2017
2
1
0
FYI peeps
No script needed to auto start wireless adb.
Obvious security concern though
Just add the line
service.adb.tcp.port=5555
to build.prop
It will auto start wireless adb at boot.
So far it has worked on all 15 android devices I've owned up to 4.4.2 not sure about lollipop.
I pretty much do everything on my TV sticks from my couch.
BTW android commander is a great free adb gui to perform basic tasks.
Very slow on my network though.

DON'T BLAME ME!!
Good luck
Thanks for the info ! Question though I'm on Nougat if I downgrade to marshmallow for root and change build.prop will I lose this in build.prop if i reupgrade to Nougat?
 
  • Like
Reactions: benjaminswinn
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone