ADB over Tether - Android Software Development

As the title suggests, I'm curious if it's at all possible to create an app such as ADB Wireless, but that will work over tethering.
I'm constantly developing on my laptop during my 3 hours of commuting every day, and hate having to pull out my USB cable to test out the latest build. I love and highly use ADB Wireless, but I'm curious before I start development on an app like this, whether or not this is even possible. If you got links or suggestions, I'd love to hear them.
Of course, those here on XDA would get first stabs at the app if it's possible
Thanks for your time

Related

[Q] Wifi Tethering Only worth Rooting?

So I haven't rooted yet and have been super pleased with Launcher Pro Plus so far in terms of customization, the social networking widgets, etc.
Going out of town tomorrow morning, driving to Arizona and could REALLY benefit from having wifi tether for the trip. Worth rooting just for that? I figure I can always revert back but once I root, do I lose the UI as I have it now, meaning will I be FORCED to choose a new rom once I do so or does it essentially stay the same and give me the 'option' of flashing a new ROM?
Thanks.
Yes, it's worth it. No you don't need a custom rom or anything else. You won't even notice you're rooted other than the SuperUser icon in your app drawer.
Word, thanks. Looks like z4root is no longer in the market, will search around for another option I guess.
Save the .apk to your SDCard and then run it from the local explorer, called files I think. Can't remember since I'm on the RubiX rom.
Right on, found an apk, put to SD card and am now doing the permanent root. Icon spinning, how long this take out of curiosity?
Not very long. Make sure your SDcard isn't mounted to your PC via USB Mass Storage or PC Mode. Charge only setting will allow your phone to be mounted to itself.
Didn't know I had to be USB'd to my PC, assumed once the apk was local to the device I'd be okay. Looks like it's finally rebooting now.
You shouldn't have to but that's the only way I've found my phone to work with the z4root app.
Thank you man for your help, rooted and wireless tether is working. Now to find out what else I can do (simply anyway) now that I'm rooted. Themse and stuff sound appealing but with Launcher Pro Plus, not sure what is out there. Will dig around, thanks again!
NP. Root opened a whole new world for you, just be careful what you do. Read twice, execute once or else you'll get to know how to SBF back to stock really well.
DNak206 said:
Thank you man for your help, rooted and wireless tether is working. Now to find out what else I can do (simply anyway) now that I'm rooted. Themse and stuff sound appealing but with Launcher Pro Plus, not sure what is out there. Will dig around, thanks again!
Click to expand...
Click to collapse
What did you use for your Wifi app once rooted? I am still looking for one that does at least wpa encryption, hopefully for free.
I think the first I heard of was wifi tether and it works.. but only unsecure for me. I would prefer something with a password obviously, if you find out, please advise.
Sent from my DROIDX using XDA App
You can have free wifi tether without rooting using easyswitch
Sent from my DROIDX using XDA App
Reading your posts and have some questions
Mustang02 said:
Not very long. Make sure your SDcard isn't mounted to your PC via USB Mass Storage or PC Mode. Charge only setting will allow your phone to be mounted to itself.
Click to expand...
Click to collapse
Sorry to bud in , I'm new to this and have been reading your posts and others. I have a few questions So, the .apk can be run from the phone with usb power connected to pc? Also the z4root has an unroot option? One more question, no teathering app is needed or not? Hope I don't sound to dumb!
I found the file by doing a simple search, saved it to my pc, used the USB chord to transfer it to my card on my phone. After that, I unplugged the chord and ran it from the phone (seeing how I didn't think I need the PC connection any longer).
As for tethering, I'm using "Wifi Tether" which is working, and tried Barnacle but Wifi Tether seems to work better. Anyone know if wired tethering would be faster? If so, what are you using? VPN-ing for work is SUPER slow via wifi tether.

Reverse USB tethering on motorola atrix on windows XP

Hey guys just curious if there is a solution to reverse tether via usb on the motorola atrix. I've searched every post imaginable but nothing works for the Atrix. Come on XDA turn water in wine for me
Sent from my MB860 using XDA App
I was wondering how to tether via usb normally, I can't seem to find an option anywhere on my AT&T branded Atrix
It should be in your list of apps... there should just be an app called "Tethering" to preform your task. It's super simple to use as well just click of the "USB Tethering" option and your done but for further detail on tethering try just going in google and typing USB tethering on windows XP.
Sorry I would post a link to a good site but I'm a newbie and I need to do 8 posts before I can post links to external websites.
If you don't have the APP let me know and I'll find a way to get it to you.
But someone please help me out with my problem...
Thanks,
Ghettosean
ahh I see, unfortunately I don't have it and I assume it's because I'm running gingerblur without bloatware.. Would be great if you could somehow get it too me and in relation to your problem I don't think it would be easily possible unless you used wireless. Ad-hoc network with internet connection sharing.
Sent from my MB860 using XDA App
ghettosean said:
It should be in your list of apps... there should just be an app called "Tethering" to preform your task. It's super simple to use as well just click of the "USB Tethering" option and your done but for further detail on tethering try just going in google and typing USB tethering on windows XP.
Sorry I would post a link to a good site but I'm a newbie and I need to do 8 posts before I can post links to external websites.
If you don't have the APP let me know and I'll find a way to get it to you.
But someone please help me out with my problem...
Thanks,
Ghettosean
Click to expand...
Click to collapse
What? did I get ripped off? I haven't seen an app for tether that came with my phone. If that is true, then all the time the DEV's put into hacking to get it working was for not? use the search and look for tethering. the answer is close to what you said, but does not involve an "app". It is a setting within the wireless network settings, but selecting it alone does not get you tethering.
Ahh I have seen wireless tethering (but use barnacle instead) I was curious about USB tethering though
Sent from my MB860 in Australia
If any newbies want this app just email me and I will send it as for the people clogging my post I will send it by the end of the day... I just want help with my problem now and I know it wont be easy unless its wifi but it can be done with other phones on xp... im going to try and get it working effortlessly in linux this weekend... help xda!!!
Sent from my MB860 using XDA App
Maybe I am not understanding what your question. tethering is usually referring to being able to use the phone as an access point so you can surf the web from your computer using the phone as a "modem". what are you wanting to do with reverse tethering? If you are wanting to do what i described, go into the development threads and look for ARoot or gladroot. also I think most of the roms have this built in now also.
pdanet allows tethering through usb
mrphil101 said:
Maybe I am not understanding what your question. tethering is usually referring to being able to use the phone as an access point so you can surf the web from your computer using the phone as a "modem". what are you wanting to do with reverse tethering? If you are wanting to do what i described, go into the development threads and look for ARoot or gladroot. also I think most of the roms have this built in now also.
Click to expand...
Click to collapse
By reverse tethering I mean the opposite of what you have described and that is to use the internet provided on the computer onto your phone. This can be done and I will do it with red hat linux I'm positive that I can get this to work but to get this to work on windows XP is a different challenge with the Atrix in particular.
If anyone has any information please help a brother out!
ghettosean said:
By reverse tethering I mean the opposite of what you have described and that is to use the internet provided on the computer onto your phone. This can be done and I will do it with red hat linux I'm positive that I can get this to work but to get this to work on windows XP is a different challenge with the Atrix in particular.
If anyone has any information please help a brother out!
Click to expand...
Click to collapse
I don't know about USB tethering, but if your computer has a wireless adapter you could use it to create an ad hoc network to which your phone could connect. You could then use ICS (Internet Connection Sharing) in Windows to bridge your internet connection to your wireless one. That way your Atrix could use your computer's interntet connection wirelessly!
kevp453 said:
I don't know about USB tethering, but if your computer has a wireless adapter you could use it to create an ad hoc network to which your phone could connect. You could then use ICS (Internet Connection Sharing) in Windows to bridge your internet connection to your wireless one. That way your Atrix could use your computer's interntet connection wirelessly!
Click to expand...
Click to collapse
True but as far as reverse usb tether. I don't know about android but with winmo just by having the phone synced would allow for this. Have you tried the medi sync or any of the other option when you connect via usb to see if they allow for this?
Sent from my MB860 using XDA Premium App
ghettosean
if what you want is to find workaround of WiFi problems on unlocked Atrix, you'd better look for AT&T SIM (even nonworking, just to report the phone it's operator ID - there are lot at eBay). Currently this is the best solution. Also, member crnkoj is developing the solution HERE, but it is very complicated for now.
Old trusted WinMo born when WiFi on phone was just a miracle, so it was able to get internet through USB, but Android never dreamed there is an AT&T whith its stupid intervention in phone firmware.
Thanks for all the replies... I've found a solution and I can actually reverse tether over USB two different ways and I will share my findings in a week... I have one last snag. Full internet access but I can't download apps from the market even though I took down my firewall on windows... Give me one more week but if anyone has a solution to that new problem that doesn't include opening port 5228 let me know. Cheers!!!
Sent from my MB860 using XDA App
Solution
Hey all... I'm still having no luck downloading from the market or using other internet apps but browsing on the web seems to be fine with reverse usb tethering. here's what I have done:
1. I connect to my laptop via usb and I start up regular usb tethering (as if I'm going to give internet to my computer from my phone)
2. When I complete step 1 on the windows computer I see a new network icon pop up representing my atrix as an RNDIS networking device
3. From here in windows I right click on the internet connection that is providing the internet to the laptop or computer and select properties from here I click on the advanced tab and check the box that allows "internet connection sharing" there is also a dropdown to pick which networking device you want to share with I select the networking device that represents the atrix and click ok.
4. From here I restart my internet connection and then I right click on the internet connection for the atrix and select properties. On the general tab I select internet protocol (TCP/IP) and click the properties button and change my ip address manually and pick --> 192.168.2.1 with a subnet mask of 255.255.255.0 then click ok and ok again
5. From here I start adb shell (or you can use terminal on your phone if you wish) and type the following
su (to go into root or super user mode)
ifconfig usb0 192.168.2.2 netmask 255.255.255.0 up
route add default gw 192.168.2.1 dev usb0
setprop net.usb0.dns1 192.168.2.1
setprop net.dns1 192.168.2.1
iptables -F
iptables -F -t nat
setprop net.dns1 8.8.8.8
setprop "net.gprs.http-proxy" ""
after this ping www.yahoo.ca to be sure everything is working properly and if you get a response your good to go.
I'm assuming that everyone who is using these instructions has android sdk installed and there windows machine recognises the adb drivers for there phone as i'm convinced this will work with any android phone not just the atrix and I will test to confirm.
I wrote up these instructions pretty quick and I'll probably shorten them up as there is a few unessesary parts in the script for adb shell but everything will work and you should be able to but this will only allow you to use the internet and browse the internet with your phone this will not allow the market and other internet apps to work if anyone finds a solution to this it would be much appreciated.
Cheers all and ANDROID RULES!!!
Ghettosean
On the Atrix there is no USB tethering built in!
Chubby_Skunk said:
On the Atrix there is no USB tethering built in!
Click to expand...
Click to collapse
Should you have taken some time to read the thread, what you actually wrote wouldn't be an epic fail.
joyo22 said:
Should you have taken some time to read the thread, what you actually wrote wouldn't be an epic fail.
Click to expand...
Click to collapse
lol
reading comprehension is not this forums users' strong suit
good work too btw ghettosean, i know youve been working on this for some time as i saw op
There's a free software for windows call connectify that can convert ur xp into a wireless station...
Sent from my MB860
Ok since I have done this myself AND IT WORKED!!! What I have done is not a fail.... My atrix did come with tethering software and the app itself is called "Tethering" so sorry for those who do not have it but I will post another message today attaching the APK for this and how to install it. I'm at work and can't do this right now.
Why do people start bashing others before taking the time to ask for help?!?
I've attached the APK to this post you ungrateful whinny blood sucking... )@#$(@[email protected]*)[email protected]*)($*)@($*!!!
YOUR WELCOME BY THE WAY TO THE UNGRATEFUL ONES WHO WILL BENIFIT FROM THIS!
Anyone who has contributed to this post in a positive way a big thank you to them.

[Q] MK809 with 3G dongle and wifi tethering?

I have tried to search for an answer to this with no real success. I believe that it is possible to connect a USB 3G dongle such as Huawei E1750 to an MK809 such as Justop K9. Hopefully someone will be able to confirm that? Then I would like to know if it is possible to then share that 3G connection via wifi tethering to other devices.
Basically I'm trying to combine 3G modem and wifi router into a hdmi stick/dongle. If anyone has tried this I would be interested to hear their experience. If it is someting that is really not practical then I more than likely will give it a miss. I would need to use this as my "main" internet connection, although I wouldn't consider myself a "power user" I do stream youtube and online such as BBC iPlayer. I have had good experience with wifi tethering using my old HTC HD2 (flashed with android 4.0) and can get 4Mb connection speeds which allows me to stream no problem.
If this works well I would then be connecting a usb hard drive and using webdav server app to share the contents to my other devices.
I would appreciate any guidance! :good:
P.S. I notice that I'm not supposed to post questions in here, but I can see a few questions already within this section and it seems like the best place for this question to me. Mods, please move it if you need to.
I think it could be done as long as the router has a connection but just a bit of info, I watch YouTube quite a bit maybe 4-5 20/30min vids a day and in the past 7 days YouTube has used probably 12gig of data. Since everything is HD. I know a lot of dongles have data limits. IPlayer doesn't work great these devices for now you have to use the flash version and its a little buggy. Its best to get it from xbmc add on.
Oh and the 808 doesn't have tether not sure about the 809
Sent from my HTC Sensation
Thanks for the reply.
It's a virgin media contract I'm looking at. Supposedly truly unlimited according to vm themselves and can be used to tether. I got my dad one and he uses it to tether his laptop and ubisurfer when away. It works very well when I've tried it myself.
Thanks for the tip about tethering on 808. I imagine this is just a software limitation? It was possibly never considered when the rom was built. I think there are Google play apps that will enable this on phones that didn't have it as an original option. I'm hoping it will work in a similar way.
Xbmc will be on my list. I assume it's possible to side load flash onto these things.
Can't answer your 3g question but just bought the mk809 justop k9 and it comes pre installed with flash. Have xbmc installed and it works brilliantly with streaming from my server, an app called tvcatchup and all the usual on demand add ons.
Sent from my LT15i using xda app-developers app
yes that would be interesting. I know that a lot of usb devices are supported. tried a webcam on it. Works perfect in combination with skype. for wath I read. its also possible to use a usb to lan adapter. maybe an option for the poor reception.
but a 3g dongle. got to see that.
J_B204 said:
Can't answer your 3g question but just bought the mk809 justop k9 and it comes pre installed with flash. Have xbmc installed and it works brilliantly with streaming from my server, an app called tvcatchup and all the usual on demand add ons.
Sent from my LT15i using xda app-developers app
Click to expand...
Click to collapse
Thanks for that. It is nice to hear a positive review about the Justop K9 as I was considering one anyway. This project might just save me some money having to buy other equipment. Would you be able to try whether you can install one of the free non root wifi tether apps from the play store? Obviously there would be no internet connection, but if you can establish a wifi hotspot and connect a phone to it then it's a good sign.
As for the USB to ethernet, I have a couple of those connectors spare. I'm aware you can use them on various android devices to give them an internet connection, but I don't know whether the reverse is true? Is it possible to share a 3G connection to the USB, and via the ethernet connection to a separate wifi router for instance? I can't find a good answer to that. I'm gonna have a play with my TF700 and see what I can accomplish!
Regards,
John
No need to install an app, android 4 onwards supports wifi tethering natively. Just needed to go into the 'more' menu and set up from there. Managed to connect easily with my Sony Tablet but, as you say, couldn't browse as the stick wifi was being used to tether.
Spoke too soon on the on demand stuff, seems itv player, 4od and 5od have been messing around with their encryption so the xbmc add ons have stopped working, I'm sure the devs are working on it. Iplayer add on still works and there is a work around using firefox anyway.
Can't help with your other query I'm afraid, sorry.
Sent from my Sony Tablet S using xda app-developers app

LS-980 any working wifi - tether?

Has anyone found or established and working wifi or usb tether on stock rooted rom? This is single handly the most important function that I require on my phone. I will probably be trading it in on the Nexus 5 this week, it doesn't look like we will see working hotspot anytime soon. If anyone has a working tether please share.
Sent from my LG-LS980 using Tapatalk
Clockworkmod tether works just fine with that the USB. I take it you're with T-Mobile?
Sent from my VS980 4G using Tapatalk
comk4ver said:
Clockworkmod tether works just fine with that the USB. I take it you're with T-Mobile?
Sent from my VS980 4G using Tapatalk
Click to expand...
Click to collapse
Clockworkmod Tether connects and works for me but it randomly disconnects on both my PC and laptop. Can't figure out what's causing it.
Sent from my LG-LS980 using xda app-developers app
Yes I agree it does it to me too... And you tried pda+/foxfi?
Sent from my VS980 4G using Tapatalk
i got it to work on tmobile by using sqleditor and changing a value.... but it doesnt stick after a reboot. luckily it just takes a few seconds to change. and pdanet worked perfect for usb tethering
TMobile D801
Are there any devs working on this?
Would be much appreciated!
I don't want to hijack your thread, but I was going to make a thread and I wondered if this was better suited to go with your post. Maybe you guys have encountered this and figured it out. Part of our problem is that no one really wants usb usally. They want wifi. But right now I'd be thrilled to have a good, stable usb tether for when I need it. The only way I've been able to keep it stable is by constant download, like setting something going in the background on Netflix, but that's not a real solution!
I have a few issues. This is USB tether and not WiFi.
I need to set up for occasional tethering and just planned on using USB tethering. I went to clockworkmod tethering and installed it on a Sprint variant LG G2(LS980). I am trying to get that working on two different computers. Computer 1 is an older laptop running Vista. Computer 2 is a new laptop running win8.
Computer 1 has the app installed and works. The issue is, if I stop downloading anything for just a few moments, it quits working. I then have to close out the app on the phone and then reopen it and it takes off just fine. I’d like to know how to make that a stable connection.
Computer 2 is more of the issue. First, the Win8 driver signature enforcement setting was disabled. The app was installed on the computer and there was tethering for a little bit. Long enough to try a page or two and then point the computer to speedtest, which was 16mbps down, which is great for where we are in the country. After the test there was a gap in downloading any information. It quit tethering and would never work again. It was believed it might be due to the wrong driver. The first one was taken directly from the LG page a week or two ago, LGMobileDriver_S50xxxx, so the app was relaunched and attempted to use the driver found on triple double u clockworkmod dot com/tether/drivers and is LGMobileDriver_S498xxx and that didn’t work.
In short, what do I do to get this to work? I’m at a bit of a loss. It should be easy.
Thanks.

How to wirelessly transfer data

Hey people!
I've been developing Android apps for about 4 months now, so I'm still pretty new. There are two apps I am currently working on, and I'm stuck at a similar point in both of them - connecting and sending data to another device wirelessly. In one, I would like to transfer strings (specifically strings of data I've collected from the accelerometer) from the device to a computer via wifi. In the other app, I would like to connect two devices and send the GPS data to each other, so each knows where the other is.
I've done a lot of research, but I'm still unclear what the best way to go about this is. I've seen people suggesting the use of servers for others who were trying to do something similar, but I have no idea how to even start setting that up. From what I've seen, the Socket Android class appears to be what I should use, but I really don't understand how it works. It looks like I connect to a device by providing the IP address, but I don't understand how the other device will receive the data....or really how it works at all lol. Am I on the right track? If someone could give me some explanations/suggestions/guidance I would be very appreciative. Thanks!
I suggest you to download some example then.try to run them
Sent from my Che1-CL20 using XDA Free mobile app

Categories

Resources