Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP extremewing

15th December 2013, 05:40 AM   |  #1  
OP Member
Salt Lake
Thanks Meter: 66
 
75 posts
Join Date:Joined: Jan 2010
More
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:	979
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:	1002
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 includes all functionality of ADB-Over-WiFi-Helper plus a lot more is now also available for free to XDA users.

Get the new ADB Master here: http://forum.xda-developers.com/show....php?t=2707556

It is highly recommended to use the new download rather than the file attached to this post!
Attached Files
File Type: zip ADB-Over-WiFi-Helper.zip - [Click for QR Code] (314.8 KB, 1748 views)
Last edited by extremewing; 9th May 2014 at 12:56 AM. Reason: Added info
The Following 33 Users Say Thank You to extremewing For This Useful Post: [ View ]
20th December 2013, 08:02 PM   |  #2  
conantroutman's Avatar
Moderator Committee / XDA Portal Team - Title Under Construction. Please Pardon Our Dust
Thanks Meter: 7,231
 
14,148 posts
Join Date:Joined: Dec 2009
More
Thanks for this. Much appreciated.
25th December 2013, 12:36 AM   |  #3  
SystemErrorOne's Avatar
Recognized Contributor
Flag Jacksonville
Thanks Meter: 326
 
481 posts
Join Date:Joined: Jun 2011
More
If you need an icon or Banner created let me know.
Nice work!
The Following User Says Thank You to SystemErrorOne For This Useful Post: [ View ]
25th December 2013, 12:36 AM   |  #4  
Senior Member
Thanks Meter: 80
 
428 posts
Join Date:Joined: Jan 2012
Donate to Me
More
so now if i broke my USB port i can lock bootloader with this?Yes?
Nexus 4
25th December 2013, 03:00 AM   |  #5  
AECRADIO's Avatar
Member
Flag Payson, AZ.
Thanks Meter: 8
 
51 posts
Join Date:Joined: Aug 2013
More
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!
25th December 2013, 03:36 AM   |  #6  
spiderio's Avatar
Senior Member
Flag Jakarta
Thanks Meter: 846
 
1,134 posts
Join Date:Joined: Aug 2009
Donate to Me
this apps is awesome make adb over wifi easier
25th December 2013, 04:01 AM   |  #7  
Navneet Suresh's Avatar
Senior Member
Flag /Universe/Earth/India/
Thanks Meter: 482
 
603 posts
Join Date:Joined: Jun 2013
More
Smile Nice
Quote:
Originally Posted by extremewing

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
25th December 2013, 02:43 PM   |  #8  
rayjr13's Avatar
Senior Member
Thanks Meter: 129
 
910 posts
Join Date:Joined: May 2011
More
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.
26th December 2013, 03:51 AM   |  #9  
casouzaj's Avatar
Senior Member
Flag Pindamonhangaba, SP
Thanks Meter: 103
 
1,169 posts
Join Date:Joined: Oct 2006
More
Quote:
Originally Posted by rayjr13

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.
29th December 2013, 05:54 AM   |  #10  
OP Member
Salt Lake
Thanks Meter: 66
 
75 posts
Join Date:Joined: Jan 2010
More
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.
Last edited by extremewing; 29th December 2013 at 05:56 AM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes