5,598,086 Members 41,502 Now Online
XDA Developers Android and Mobile Development Forum

[APP][TOOL] ADB-Over-WiFi-Helper

Tip us?
 
extremewing
Old
(Last edited by extremewing; 6th April 2014 at 03:09 AM.) Reason: Added info
#1  
Member - OP
Thanks Meter 30
Posts: 51
Join Date: Jan 2010
Location: Salt Lake
Storage [APP][TOOL] ADB-Over-WiFi-Helper

Free for XDA members and as a thank you for all the information, tools and roms XDA Developers has provided over the years here is something I created that makes it easy to connect adb over tcpip to multiple Android devices. Get rid of the wires!

One click to switch adb on all usb connected devices to tcpip.
One click to switch adb on all tcpip connected device back to usb.
Auto discovery of the devices listening on tcpip.

The application consists of two parts. "Helper.jar" to run on the pc and "Helper.apk" for the device.

Click image for larger version

Name:	Screen Shot 2013-12-14 at 3.46.20PM.png
Views:	705
Size:	59.3 KB
ID:	2455389Helper.jar
- Installs the Helper.apk on the device.
- Attempts to switch adb on the device to use tcpip.
- Sends broadcast messages to look for devices on the network.
- Initiates an adb connection over tcp to any ip that responds to the broadcast.
- Provides a button to switch all usb devices to tcpip.
- Provides a button to switch all tcpip devices to usb which also uninstalls the helper.apk file, leaving no "junk" on the device.

Click image for larger version

Name:	adb-wifi-helper.jpg
Views:	695
Size:	82.1 KB
ID:	2455388On the device, Helper.apk
- Turns on WiFi if not already on.
- Checks and shows if the adb port was indeed opened.
- Listens and responds to udp broadcasts from Helper.jar.

Some android devices will work without root but if you get a red message from the helper on the device, you will need to root it to enable adb in tcpip mode. The rooted method to set adb to use tcpip is used in case the device is rooted.

If you like the tool and want to contribute, please feel free to buy the app on the Play store. The attachment contains exactly the same files for free.

Feedback is welcome and I hope someone finds this useful!

Adrian

UPDATE!!
A new tool I am calling ADB Master that replaces this is now available here: http://forum.xda-developers.com/show....php?t=2707556

I will leave this one up so you have a choice!
Attached Files
File Type: zip ADB-Over-WiFi-Helper.zip - [Click for QR Code] (314.8 KB, 1172 views)
The Following 28 Users Say Thank You to extremewing For This Useful Post: [ Click to Expand ]
 
conantroutman
Old
#2  
conantroutman's Avatar
Moderator Committee / XDA News Writer
Thanks Meter 6690
Posts: 13,688
Join Date: Dec 2009
Thanks for this. Much appreciated.

"If Diane Young won't change your mind......"

HTC HD2, Samsung Galaxy SII, Note II, Nexus 7 2012 & Motorola Xoom

 
SystemErrorOne
Old
#3  
SystemErrorOne's Avatar
Recognized Contributor
Thanks Meter 251
Posts: 373
Join Date: Jun 2011
Location: Jacksonville
If you need an icon or Banner created let me know.
Nice work!
Press Thanks If I Helped (: Also Check out my first Android app Link below:

http://goo.gl/5aFAlm

The Following User Says Thank You to SystemErrorOne For This Useful Post: [ Click to Expand ]
 
darkmatthew
Old
#4  
Senior Member
Thanks Meter 79
Posts: 403
Join Date: Jan 2012

 
DONATE TO ME
so now if i broke my USB port i can lock bootloader with this?Yes?
Nexus 4
Smartphone:LG Nexus 4
Tablet:Nexus 7 II or Galaxy note 10.1
 
AECRADIO
Old
#5  
AECRADIO's Avatar
Member
Thanks Meter 4
Posts: 49
Join Date: Aug 2013
Location: St. Germain
Default ADB over wireless

I think this will be a very useful application for anybody requiring to make changes when on the road, or away from one's main computer.
Running ADB over WiFi should be a great addition to anybody's 'tool kit', I for one, look forward to making use of this application.
Many thanks for bringing this to all of us at XDA.
Thank you!
 
spiderio
Old
#6  
spiderio's Avatar
Senior Member
Thanks Meter 540
Posts: 988
Join Date: Aug 2009
Location: Jakarta
this apps is awesome make adb over wifi easier
 
Navneet Suresh
Old
#7  
Navneet Suresh's Avatar
Senior Member
Thanks Meter 382
Posts: 477
Join Date: Jun 2013
Location: Android World
Smile Nice

 
Quote:
Originally Posted by extremewing View Post
Free for XDA members and as a thank you for all the information, tools and roms XDA Developers has provided over the years here is something I created that makes it easy to connect adb over tcpip to multiple Android devices. Get rid of the wires!

One click to switch adb on all usb connected devices to tcpip.
One click to switch adb on all tcpip connected device back to usb.
Auto discovery of the devices listening on tcpip.

The application consists of two parts. "Helper.jar" to run on the pc and "Helper.apk" for the device.

Attachment 2455389Helper.jar
- Installs the Helper.apk on the device.
- Attempts to switch adb on the device to use tcpip.
- Sends broadcast messages to look for devices on the network.
- Initiates an adb connection over tcp to any ip that responds to the broadcast.
- Provides a button to switch all usb devices to tcpip.
- Provides a button to switch all tcpip devices to usb which also uninstalls the helper.apk file, leaving no "junk" on the device.

Attachment 2455388On the device, Helper.apk
- Checks and shows if the adb port was indeed opened
- Listens and responds to udp broadcasts from Helper.jar.

Some android devices will work without root but if you get a red message from the helper on the device, you will need to root it to enable adb in tcpip mode. The rooted method to set adb to use tcpip is used in case the device is rooted.

If you like the tool and want to contribute, please feel free to buy the app on the Play store. The attachment contains exactly the same files for free.

Feedback is welcome and I hope someone finds this useful!

Adrian


Nice tool Bro

Device : ASUS Nexus 7 32GB



My Works on XDA


 
rayjr13
Old
#8  
rayjr13's Avatar
Senior Member
Thanks Meter 76
Posts: 584
Join Date: May 2011
Thank you for the Christmas gift. I'm on HTC DNA and I am rooted but I get the red port closed message about root required.

No request for root occurs in supersu from this app.
 
casouzaj
Old
#9  
casouzaj's Avatar
Senior Member
Thanks Meter 83
Posts: 1,120
Join Date: Oct 2006
Location: Pindamonhangaba, SP
Quote:
Originally Posted by rayjr13 View Post
Thank you for the Christmas gift. I'm on HTC DNA and I am rooted but I get the red port closed message about root required.

No request for root occurs in supersu from this app.
Same issue here, on my rooted Xperia J. No entry regarding this apk's request for root is found in Super-SU's logs, whatsoever.
Sony Xperia SP C5303
UItimate PureXSP V2 Z2 Look + Update 1.2 ROM
Best mid-range smartphone!

Previous smartphones:
Xperia J (with my daughter), Moto Defy (my son's toy), Acer Tempo M900 (crippled)!), i-Mate Ultimate 9502 (in a drawer), O2 Xda Exec (dead! ); HP iPaq h6365 (sold); Palm Tungsten W (sold).
 
extremewing
Old
(Last edited by extremewing; 29th December 2013 at 04:56 AM.)
#10  
Member - OP
Thanks Meter 30
Posts: 51
Join Date: Jan 2010
Location: Salt Lake
Wow, thanks for all the comments!

The helper on the device does not use or need su and ONLY does the following:
1) Checks if the adb tcp port was indeed opened on the device (by creating a tcp connection attempt to it)
2) Listens and then responds to a udp broadcast from the java app.

In future, it could do more.

All the work is done over the USB cable (or WiFi to switch back) using adb from the java app.
In essence, the java app executes the following abd commands to each device (both the "rooted" and non rooted methods are attempted each time):

To turn ON tcpip mode:
adb -s <devicename> tcpip 5555
adb -s <devicename> shell su -c 'setprop service.adb.tcp.port 5555'

To turn OFF tcpip mode:
adb -s <devicename> usb
adb -s <devicename> shell su -c 'setprop service.adb.tcp.port -1'


Please explain a bit more what is happening when the red message appears?
Is the device connected over USB and appearing in the left hand list on the java app?

Perhaps post the output from the java app when you press Switch to WiFi.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Android Control Center Becomes Quick Control Panel, Brings Host of New Features

You may recall that back in August of last year, we talked … more

Polish Your Custom Themes with Theme Debugger

Creating a custom Android theme from scratch can be quite the laborious task. In addition to … more

Clean Up Your Logcat Code with Lib Cleaner

Some of you may think that writing code is the hardest part of development. It’s not, as the … more

Tweak Your Xperia Device’s Camera App Yourself

We’ve come to expect nearly perfect cameraperformancein our modern day … more