Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,734,299 Members 48,576 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
extremewing
Old
(Last edited by extremewing; 8th May 2014 at 11:56 PM.) Reason: Added info
#1  
Member - OP
Thanks Meter 45
Posts: 59
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:	823
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:	831
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, 1458 views)
The Following 32 Users Say Thank You to extremewing For This Useful Post: [ Click to Expand ]
 
conantroutman
Old
#2  
conantroutman's Avatar
Moderator Committee / XDA Portal Team - Title Under Construction. Please Pardon Our Dust
Thanks Meter 6997
Posts: 13,951
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 269
Posts: 401
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 80
Posts: 411
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 7
Posts: 51
Join Date: Aug 2013
Location: Payson, AZ.
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 726
Posts: 1,064
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 440
Posts: 531
Join Date: Jun 2013
Location: /Universe/Earth/India/
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



Link to my threads.


 
rayjr13
Old
#8  
rayjr13's Avatar
Senior Member
Thanks Meter 87
Posts: 701
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 91
Posts: 1,142
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
Rooted Stock Brazilian12.1.A.1.205 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 45
Posts: 59
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