FORUMS

Galaxy S6 Weekly Shooting Challenge

Over in our forums this weekend, XDA Forum member DevonSloan has started a thread for talented … more

Which Features from Apple Watch Do You Think Android Wear Will Copy?

The Apple Watch and Android Wear are both growing platforms. Now … more

XDA Picks: Best Apps of the Week (May 15 – 22)

Apps are at the front and center of any smartphone experience, and with over a … more

Android 5.1 for the Nvidia Shield Tablet is Out!

Nvidia is quite good at delivering updates in a timely fashion. The producer of famous … more
Post Reply Subscribe to Thread Email Thread

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

15th December 2013, 04:40 AM |#1  
OP Member
Salt Lake
Thanks Meter: 69
 
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:	1131
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:	1156
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, 2038 views)
Last edited by extremewing; 8th May 2014 at 11:56 PM. Reason: Added info
The Following 34 Users Say Thank You to extremewing For This Useful Post: [ View ]
 
 
20th December 2013, 07:02 PM |#2  
conantroutman's Avatar
Moderator Committee / XDA Portal Team - Title Under Construction. Please Pardon Our Dust
Thanks Meter: 7,315
 
More
Thanks for this. Much appreciated.
24th December 2013, 11:36 PM |#3  
SystemErrorOne's Avatar
Recognized Contributor
Flag Jacksonville
Thanks Meter: 342
 
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 ]
24th December 2013, 11:36 PM |#4  
Senior Member
Thanks Meter: 80
 
Donate to Me
More
so now if i broke my USB port i can lock bootloader with this?Yes?
Nexus 4
25th December 2013, 02:00 AM |#5  
AECRADIO's Avatar
Member
Flag Payson, AZ.
Thanks Meter: 8
 
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, 02:36 AM |#6  
spiderio's Avatar
Senior Member
Flag Jakarta
Thanks Meter: 881
 
Donate to Me
More
this apps is awesome make adb over wifi easier
25th December 2013, 03:01 AM |#7  
Navneet Suresh's Avatar
Senior Member
Flag /Universe/Earth/India/
Thanks Meter: 517
 
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, 01:43 PM |#8  
rayjr13's Avatar
Senior Member
Thanks Meter: 151
 
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, 02:51 AM |#9  
casouzaj's Avatar
Senior Member
Flag Pindamonhangaba, SP
Thanks Meter: 139
 
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, 04:54 AM |#10  
OP Member
Salt Lake
Thanks Meter: 69
 
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 04:56 AM.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes