Related
***Sticky this please
Check out this application I put together. It is a simple stand alone app for true tethering over wifi, you must have a rooted phone for this app to work....
http://www.androidactivity.com/tetherWifi.html
The main purpose of this thread is to discuss issues with the application. For instructions on how to use it read the webpage from the link above.
Good deal will try it out as soon as i get sp3, is it compatible with new update? thanks for this!
Any chance of making this open source?
If it just uses the same method as http://forum.xda-developers.com/showthread.php?t=474470 then it would be pretty helpful for those of us trying to make a frontend to command line applications.
amgupt01 said:
Any chance of making this open source?
Click to expand...
Click to collapse
Pretty Please... I do appreciate the effort and at that same time, I like to know what I am giving root access to. But, really - I'd like to be able to modify it to my own network environment. I like to customize the dnsmasq.conf a bit for my own peace of mind...
Thanks again, this is the beginning of a great piece of work...
This is really nice!!! The old way with terminal was getting old. Thanks!!!!
Could you have a status icon at the top toolbar to show that the tethering service is active?
Tested, worked flawlessly. Unscecured, of course, but freakin' sweet if you can't get another network. Tried this from my house, worked great on 3g. Work VPN functioned w/o issue.
Nice! Confirmed working with Vista laptop.
I'd like to also voice support for open sourcing this-- or for removing the root requirement if you could get that worked out. I am very appreciative that you've pulled this together but at the same time feel reluctant to install any software that will be running under root that isn't signed or at least has the source code available.
Keep up the great work!
please add an option to change ssid, and settings, and we definately gotta find a way to secure the wifi
I just made a couple bug fixes and put up a new version this morning.
This is still beta and I am looking into making a lot more things configurable.
Right now it is not secure. It only will DHCP out one IP, but it does NAT forward the whole range of 10.0.1.X
I understand everybody's concern about making it open source for root access, at this moment I am not going to make it open source. I would like to figure out a way to make it work without root in the future, but if I cannot I may make it open source.
This may help you out with your concerns, this is what the application does:
-it unpacks files to the /data/data/com.androidactivity.tetherWifi/ directory only on the first run of the application, installing an upgrade of my app will re-unpack the latest files in this directory. a chmod of 744 is done to all of these files.
-manual configuration of dnsmasq.conf, tiwlan.ini, etc.. can be done by modifying these files in this directory. You need to run my application once before modifying, so that these files get unpacked. If you ever upgrade my app, make sure you back up these files before upgrading, because on upgrade my app will overwrite these files.
-when you hit start, i disable wifi if it is on and then run the tether.sh start script.
-when you hit stop, i run the tether.sh stop script, I also enable the wifi back if i had disabled it before running start.
-to see what tether.sh start and stop does, take a look at the /data/data/com.androidactivity.tetherWifi/tether.sh file
stats555 said:
Good deal will try it out as soon as i get sp3, is it compatible with new update? thanks for this!
Click to expand...
Click to collapse
I doubt it needs service pack 3. I just confirmed it working on my machine which has service pack 3.
My bluetooth tethering app, on the other hand, works better with service pack 3, and I do recommend upgrading if you are going to use that app.
moussam said:
***Sticky this please
Check out this application I put together. It is a simple stand alone app for true tethering over wifi, you must have a rooted phone for this app to work....
http://www.androidactivity.com/tetherWifi.html
Update:What this program does..
-it unpacks files to the /data/data/com.androidactivity.tetherWifi/ directory only on the first run of the application, installing an upgrade of my app will re-unpack the latest files in this directory. a chmod of 744 is done to all of these files.
-manual configuration of dnsmasq.conf, tiwlan.ini, etc.. can be done by modifying these files in this directory. You need to run my application once before modifying, so that these files get unpacked. If you ever upgrade my app, make sure you back up these files before upgrading, because on upgrade my app will overwrite these files.
-when you hit start, i disable wifi if it is on and then run the tether.sh start script.
-when you hit stop, i run the tether.sh stop script, I also enable the wifi back if i had disabled it before running start.
-to see what tether.sh start and stop does, take a look at the /data/data/com.androidactivity.tetherWifi/tether.sh file
Click to expand...
Click to collapse
Thanks for this gonna test it out. I was thinking of making something like this you beat me to it.
http://code.google.com/p/gtether/
Similar project, open source.
Do not support closed source projects.
Especially those that require root on your phone!
miseiler said:
http://code.google.com/p/gtether/
Similar project, open source.
Do not support closed source projects.
Especially those that require root on your phone!
Click to expand...
Click to collapse
The gtether application clashes with the ****ty superuser application on the JF releases... it's unusable for me. However, Moussam's works fine.
With GTether, everytime I try and connect my PC - it just goes into an endless loop of approving the super user access, even if you select "Always" it just doesn't work. Which is a shame, because GTether is clearly a better application.
I found the same issue with the endless loop with Super user.
vr24 said:
The gtether application clashes with the ****ty superuser application on the JF releases... it's unusable for me. However, Moussam's works fine.
With GTether, everytime I try and connect my PC - it just goes into an endless loop of approving the super user access, even if you select "Always" it just doesn't work. Which is a shame, because GTether is clearly a better application.
Click to expand...
Click to collapse
Well, the GTether application isn't even Open Source. The SVN for it has no code and the downloadable "source code" is just a gzipped .apk file.
Also, the Super User app is far from ****ty. It is the only thing protecting your phone from people releasing apps on the market targeting rooted users. If someone released an app on the market that ran su without your approval, they could wreak havoc on your phone and potentially brick it.
miseiler said:
http://code.google.com/p/gtether/
Similar project, open source.
Do not support closed source projects.
Especially those that require root on your phone!
Click to expand...
Click to collapse
Everybody, do your homework first before you start making stupid comments. First off gtether is not an open source app. My app is simpler and more stable. Gtether is also a good application, but I wanted to create something that had everything packed up into one install without having to run any shell commands.
I do not have the bells and whistles yet, but I am working on them, this is just a beta release.
amgupt01 said:
Well, the GTether application isn't even Open Source. The SVN for it has no code and the downloadable "source code" is just a gzipped .apk file.
Also, the Super User app is far from ****ty. It is the only thing protecting your phone from people releasing apps on the market targeting rooted users. If someone released an app on the market that ran su without your approval, they could wreak havoc on your phone and potentially brick it.
Click to expand...
Click to collapse
Well, no. The source tgz has all the components of the tether-1.6 app in it, in additional to the apk file (for whatever reason). I suppose you could argue the iptables source isn't present in the file, but that is available elsewhere.
And apps that run su with your approval are just as likely to brick/rootkit.
Well by "source" I am referring to the actual source code used for the .apk file which is run on Android. That's the part which is installed as an application and is actually using the binaries from the tether-1.6 kit as root and running in the background to notify when new users connect.
Also, when I say that SuperUser protects your phone, I'm assuming that people will actually do research before allowing an app to user root privileges and will block an app which has no need to use root whatsoever.
miseiler said:
Well, no. The source tgz has all the components of the tether-1.6 app in it, in additional to the apk file (for whatever reason). I suppose you could argue the iptables source isn't present in the file, but that is available elsewhere.
And apps that run su with your approval are just as likely to brick/rootkit.
Click to expand...
Click to collapse
if it makes everybody more comfortable i can post the script files that are run in my app. su is only needed to run these script files. these files are unpacked into /data/data/com.androidactivity.tetherWifi on the first run of this application and can even be altered to whatever config you want afterwards. su access is not needed until you hit start or stop. if you are concerned install my app and run it and dont grant su access and you will be able to see the unpacked script files in the dir i mentioned, and even alter them if you want.
Hi
how would I go about getting rsync on to my SGS. want to team it up with tasker to backup my sdcard directory when i am at home automatically
Alex
+1
Wow! That's a nice idea!
http://code.google.com/p/rsyncdroid/
Is this any use?
This could be a great idea.
found this too http://android.modaco.com/content/htc-hero-hero-modaco-com/299984/linux-tools-coming-to-mcr/
And even better? Possible unison port http://sites.google.com/site/keigoattic/ocaml-on-android
Yeah! I posted this already here: http://forum.xda-developers.com/showthread.php?p=8146099#post8146099 would be great to have this on phone.
What's next? Having linux on the device?!
It's a pity we cannot run a traditional linux on such powerful devices.
Sent from my GT-I9000 using XDA App
kevo said:
http:code.google.com/p/rsyncdroid/
Is this any use?
This could be a great idea.
Click to expand...
Click to collapse
Mykron said:
Yeah! I posted this already here: REMOVED URL would be great to have this on phone.
Click to expand...
Click to collapse
kevo said:
REMOVED URL
Is this any use?
This could be a great idea.
Click to expand...
Click to collapse
Mykron said:
Yeah! I posted this already here: REMOVED URL would be great to have this on phone.
Click to expand...
Click to collapse
Thanks, I looked at this, unfortunately, it looks like a server only - no client bit - I could be wrong though. So yeah I could send a http request that started my rsync, but I would rather push then pull the info.
kevo said:
REMOVED URL
Is this any use?
This could be a great idea.
Click to expand...
Click to collapse
Mykron said:
Yeah! I posted this already here: REMOVED URL would be great to have this on phone.
Click to expand...
Click to collapse
kevo said:
found this too REMOVED URL
And even better? Possible unison port REMOVED URL
Click to expand...
Click to collapse
I will have to have look, unison would be good, but I only what a one way sync, if I can get bash (or sh) and rsync I can then setup up some history information for the backups as well, then keep the last say 30 or 40.
Alex
Crazy, I started thinking about doing this today too (but for syncing my Music) and searching Google, and someone @ XDA posted a thread about it... today! I don't know if this is any help, but here is where I am at:
I've loaded this Locale plugin into Tasker no problem, and it apparently is running correctly
It looks like the only way to do this will be to set up private keys so the rsync commmand isn't looking for password etc. But every preliminary run i've tried so far has failed for one reason or another. I don't know if the best way is to initiate the rsync from the server via HTTP GET from Tasker or to try and run rsync directly from the phone with the plugin.. I'm just not that good with rsync yet.
I plan on spending more time with this tomorrow because i think this is something that a lot of people would be interested in, i'll post here and in the N1 thread anything I find..
crachel said:
Crazy, I started thinking about doing this today too (but for syncing my Music) and searching Google, and someone @ XDA posted a thread about it... today! I don't know if this is any help, but here is where I am at:
I've loaded URL Locale plugin into Tasker no problem, and it apparently is running correctly
It looks like the only way to do this will be to set up private keys so the rsync commmand isn't looking for password etc. But every preliminary run i've tried so far has failed for one reason or another. I don't know if the best way is to initiate the rsync from the server via HTTP GET from Tasker or to try and run rsync directly from the phone with the plugin.. I'm just not that good with rsync yet.
I plan on spending more time with this tomorrow because i think this is something that a lot of people would be interested in, i'll post here and in the N1 thread anything I find..
Click to expand...
Click to collapse
Cool, where did you get rsync onto the phone. I was thinking it should actually be part of busybox, going to work out how to get that changed to handle it.
so your problem might be you are missing a ssh client - usually dropbear for these environments.
KeyzerSuze said:
Cool, where did you get rsync onto the phone. I was thinking it should actually be part of busybox, going to work out how to get that changed to handle it.
so your problem might be you are missing a ssh client - usually dropbear for these environments.
Click to expand...
Click to collapse
My apologies, in my excitement in finding someone else trying this it didn't even don on me that we had different devices (N1)..
If you've got root, maybe you can install Titanium Backup as its got an option to install busybox?
Ok, I made progress.
I was using adbWireless (in my sig) to run shell commands on my phone since typing the rsync command with Android keyboard sucks. However, I think I ran into one of the limitations of the app, when my server would return asking for a yes/no question and then password, I couldn't type anything in.
So I downloaded QuickSSHd from Market to get proper putty access to the phone and was able to successfully rsync with my server (using password) with this command:
Code:
rsync -vaz -e 'ssh -p (port)' [email protected]:/remote/dir /this/dir/
where (port) is where my server listens for SSH
Now, I just need to setup keys and then configure Tasker and I should be good to go..
So are you initiating the rsync from your desktop, or have you got rsync running on the phone? I'm not quite sure which way round you've managed to do it?
the error i get is "please enable my location source in system settings" in google maps.
I have already done the "Google location services fix (formerly, Twitter client recommendations?)"
any other suggestions?
Thanks
Chris
Spanel said:
the error i get is "please enable my location source in system settings" in google maps.
I have already done the "Google location services fix (formerly, Twitter client recommendations?)"
any other suggestions?
Thanks
Chris
Click to expand...
Click to collapse
AFAICT all that does is fix dependencies - it definitely doesn't activate locations. You are still missing NetworkLocation.apk, among other things. I am trying to figure it out; it might require pushing a more rhobust settings.apk.
I am going to start digging around in the nook source to see if I can make sense of how they castrated settings. I think that might be the best way to attack this problem.
Sent from my NOOKcolor using XDA app
ok thanks! keep this thread updated with your findings.
thanks again!
Chris
A side effect I just found of following the instructions to get the Market working here- http://nookdevs.com/Enable_the_Android_Market
is that Network Location is working.
When I run maps I have the indicator for where I am.
I will be testing how accurate this is tomorrow- I have a long drive to do and will tether to my Droid with gps running.
With luck, the droid will relay location data to the nook over the network.
Pass or fail, I will post the results once I know.
Good to hear, but you're probably getting a position via WiFi and GPS data can't be passed on via tethering AFAIK so you can't get it off the Droid.
I know that the GPS data can't be passed on per se and that I am getting network location data via wifi- 100% agreement.
My hope, and no testing yet to verify, is that if the Droid knows its location by GPS it will pass it along as a Network Location since it is providing Network Services so to speak.
I have no documentation saying this will happen, just pure speculation and wishful thinking.
OK - that is nice guys, but Spanel (and include me as well) have run the location fix and we still get the error: ""please enable my location source in system settings".
I have most everything working and running: rooted, Market, maps installed and working - but for whatever reason, maps does not display my location - just the aforementioned error message when I do.
Note: I also followed http://nookdevs.com/NookColor_Install_missing_google_geolocate_library, completed it with no errors - but still, my wifi - location is not popping up.
rogerdugans said:
A side effect I just found of following the instructions to get the Market working here- http://nookdevs.com/Enable_the_Android_Market
is that Network Location is working.
When I run maps I have the indicator for where I am.
I will be testing how accurate this is tomorrow- I have a long drive to do and will tether to my Droid with gps running.
With luck, the droid will relay location data to the nook over the network.
Pass or fail, I will post the results once I know.
Click to expand...
Click to collapse
Strange, as I followed it as well but I do not.
Sent from my NOOKcolor using XDA
rad131304 said:
Strange, as I followed it as well but I do not.
Sent from my NOOKcolor using XDA
Click to expand...
Click to collapse
Th8is might be a side effect of when performing the initial Android setup portion of the process, the first question asks info regarding location, etc. I unchecked these options (knowing I dont have GPS) and am thinking this may be where it is being "enabled."
Just a thought.
norkoastal said:
Th8is might be a side effect of when performing the initial Android setup portion of the process, the first question asks info regarding location, etc. I unchecked these options (knowing I dont have GPS) and am thinking this may be where it is being "enabled."
Just a thought.
Click to expand...
Click to collapse
Nork - are you saying that you are, in fact, getting a wifi-location fix on your device?
So does anyone have WiFi location up and running ? In Maps, I get the "please enable location" popup and even with "NookColor Tools" (http://forum.xda-developers.com/showthread.php?t=868366) that shows a ton of hidden settings I don't have location either.
The Autonooter author suggested I install NetworkLocation.apk to fix that, but I still get "Please enable a MyLocation source in system settings, anyone ?
webvan said:
The Autonooter author suggested I install NetworkLocation.apk to fix that, but I still get "Please enable a MyLocation source in system settings, anyone ?
Click to expand...
Click to collapse
From what I've seen, that is normal. I just skipped that screen. I am getting a wifi location fix though which is very cool.
Yes Autonooter activates WiFi location, not the scripts though for some reason.
I JUST got my wifi to work in maps -- figured it out after a bunch of frustrated digging -- by editing the com.android.settings_preferences.xml and adding the line
<boolean name="location_wifi" value="true" />
(I did it in the text editing option in the Root Explorer App after making the system folder R/W, but if your use your favorite editor [command-line or otherwise] at will)
since that xml file, for me, only had a "location_gps"="false argument."
Granted I had also replaced the Settings.apk with a 2.1 build 2 stock one and pushed a stock NetworkLocation.apk, neither of which, by my tests, would make maps zero in on my wifi-based location. Going to restore the NookSettings app and see if this holds.
EDIT: Yes. editing com.android.settings_preferences.xml seems to do the trick. Mileage varies, perhaps, as they say.
EDIT2: That file WAS in /data/data/com.android.settings/shared_prefs/ but it seems to have disappeared since I pushed back the NC Settings.apk -- though while I had the stock 2.1 settings.apk installed, the xml file was there, and Google Maps did use my wifi to locate my position. Now that I've pushed back Settings.apk, Maps still finds my location via wifi. Freaky, quirky, but if you want to be able to use the wifi-location finder feature, this is how I got mine to work:
1. Installed a stock NetworkLocations.apk from a 2.1 build,
2. Renamed Settings.apk -> Settings.old
3. ADB installed stock 2.1 settings.apk
4. Enabled wifi location, which now has an option to "set my location"
5. tested Maps application, no dice.
5. edited the XML file as above -- /data/data/com.android.settings/shared_prefs/com.android.settings_preferences.xml
6. tested on maps, success!
7. then removed the 2.1 stock Settings.apk.
8. Renamed Settings.old -> Settings.apk.
I'm sure there is a muuuuuuch easier way to do this, but I'm a total noob. Anybody else have any success?
(The stock Android 2.1 Settings.apk crashed too frequently, anyways, and is annoyingly unreadable with the NC skinning).
I think the process I outlined here will do it for ya...
All you need to do is change the location_provider_allowed field in the secure table in settings.db to network.
Sent from my LogicPD Zoom2 using Tapatalk
fortuno01 Can this be done through Android Commander? Where is the settings.db file, ie which folder?
Also can someone post a clean working NetworkLocation.apk file. I see many on the web.
Finally got it working! Its a festivus miracle!
Alright, so after some playing around, I finally got this working. I used steps similar to above on a win 7 PC. Its all based on the /data/data/com.android.settings/shared_prefs/com.android.settings_preferences.xml file. But you wont have one until you install this apk.
Step one. Download and install attached NetworkLocation.apk with ADB.
Step two. Use android commander (Google it, its free) and navigate to the file.
Note when you first run AC, it will ask which os you are using. I say I dont know, mostly because I'm lazy. Its 2.1 of course.
Step three. Pull the .xml file to desktop and open with notepad.
Step four. Add this as the last line in this file. <boolean name="location_wifi" value="true" />
Step five. Save and Close
Step six. Drag and drop into right panel of android commander where original file was. AC will ask you if you want to place on the right panel. Yes, you do.
Step seven. Exit adb.
Step eight. REBOOT. Dont try before a reboot *it wont work*
Step nine. Please thank me if this works for you.
Merry Christmas.
Where do you get the stock 2.1 apk OS files? (I got your attachment). I have the SDK installed are they in there somewhere or can I pull them from the android developers site somewhere? Thanks.
rDesktop 1.7.0
What is rDesktop?
rDesktop is a terminal services client for Linux - it will allow you to connect to a terminal services session of any Windows machine with Remote Desktop enabled.
This is a newer release of rDesktop than is available in the Debian repos.
Prerequisites
Access to a terminal from WebTop
A small amount of Linux shell knowledge
Usage
Copy the attached binary to somewhere on your device (I suggest /usr/bin, or somewhere else on your PATH)
Open a terminal
Enter the following:
Code:
rdesktop -g workarea -a16 -z -xm -P -0 <server>
You can use the following switches:
-g workarea - sets the window size to the desktop size
-f - makes the session fullscreen (ie. on top of all current chrome)
-a16 - sets 16bit colour depth (valid values are 8, 15, 16 and 24)
-z - enables compression (leave this enabled!)
-xm - sets the 'experience' level to 'modem' (valid values are modem, broadband or LAN)
-0 - causes you to be logged in to the console session (same as the /admin switch for mstsc)
I've found this to be invaluable for getting onto my desktop and servers at work. Now to see if I can get rid of that bloody awful Avant Window Manager and just use FluxBox
I don't have a lapdock, but its compiled for arm/tegra?
Sent from my Motorola Atrix 4G on the network with the most backhaul, whatever that is. This post might have errors as I hate touchscreen keyboards.
GUI support?
I know rdesktop is only terminal based, but is there a sort of add-on to it that allows for a graphical representation of the screen, much like rdp clients in the Android market? that would be far more useful for my purposes, although this is a great step in that direction.
paravorheim said:
I know rdesktop is only terminal based, but is there a sort of add-on to it that allows for a graphical representation of the screen, much like rdp clients in the Android market? that would be far more useful for my purposes, although this is a great step in that direction.
Click to expand...
Click to collapse
An easy solution is to simply create a shell script and then specify the server.
EG: ./rdp.sh <server>
Much prettier than having to type all the strings.
paravorheim said:
I know rdesktop is only terminal based, but is there a sort of add-on to it that allows for a graphical representation of the screen
Click to expand...
Click to collapse
grdesktop is a graphical front end. It works on hacked webtops such as webtop2sd or the debian chroot mod.
krkeegan said:
grdesktop is a graphical front end. It works on hacked webtops such as webtop2sd or the debian chroot mod.
Click to expand...
Click to collapse
Thanks! you just saved me $1000!
If I couldn't run some programs like matlab and mathematica, I would have had to but a laptop for classes.
Sent from my MB860 using XDA Premium App
Mgamerz said:
I don't have a lapdock, but its compiled for arm/tegra?
Click to expand...
Click to collapse
Yes, it was compiled on the Atrix itself (that took a while...).
I use the chroot method on my atrix (I like keeping things seperate!), so this is probably only useful for those of us based on Debian (don't know what version is currently in the ubuntu repos)
The grdesktop package from the debian repos will work just fine with this binary.
I might even start a repo just for webtop... anyone think that would be useful?
YES
FallenAngelUK said:
Yes, it was compiled on the Atrix itself (that took a while...).
I use the chroot method on my atrix (I like keeping things seperate!), so this is probably only useful for those of us based on Debian (don't know what version is currently in the ubuntu repos)
The grdesktop package from the debian repos will work just fine with this binary.
I might even start a repo just for webtop... anyone think that would be useful?
Click to expand...
Click to collapse
That would be very useful, actually. Although I'm terrible at using Unix OSes and terminals in general haha.
this is awesome..almost as good as citrix xendesktop...who needs that though when this works so very well...one question did you get your sound working on the lapdock? when i try to enable sound via -r sound:local it says driver not found or smething like that..basically no matter what settings i use even via the gui tools or the cli..i get the same error and no sound....is there any way to get the sound to work?
If you're using the chroot method, it may be that you need to add some packages.
I haven't tried it myself, but I remember seeing a thread somewhere related to getting RythmBox working - this involved sorting out some missing audio-related stuff.
How is this better than the free 2X client for Android?
Well it runs in the webtop, so you get a much larger screen. Sure you could expand the android in window screen, but that doesn't increase the pixel count.
full-screen resolution grdesktop
Thanks for getting this working FallenAngel!
How would one use the xterm session to set grdesktop to represent the desktop as full screen on the laptop dock? 640 x 480 ( I think? ) just isn't cutting it.
add in -f
into your command line
paravorheim said:
Thanks for getting this working FallenAngel!
How would one use the xterm session to set grdesktop to represent the desktop as full screen on the laptop dock? 640 x 480 ( I think? ) just isn't cutting it.
Click to expand...
Click to collapse
any input on getting the sound to work?
humzat said:
this is awesome..almost as good as citrix xendesktop...who needs that though when this works so very well...one question did you get your sound working on the lapdock? when i try to enable sound via -r sound:local it says driver not found or smething like that..basically no matter what settings i use even via the gui tools or the cli..i get the same error and no sound....is there any way to get the sound to work?
Click to expand...
Click to collapse
humzat said:
add in -f
into your command line
Click to expand...
Click to collapse
I think I tried that, but it didn't work. Ill try again when I get home. Is the command grdesktop -f or after running grdesktop then do -f?
Sent from my MB860 using XDA Premium App
To connect to a server and run it fullscreen, try:
Code:
rdesktop -f -a16 -z -xm -P -0 <server>
To connect to a server and run it fullscreen, try:
Code:
rdesktop -f -a16 -z -xm -P -0 <server>
refer to the first post for command line args
i get an error:
"ERROR: Failed to open keymap en-us
ERROR: Connection refused"
i set all the remote desktop ok and all the settings ok, what was my mistake?
First, thanks for compiling this. I can't imagine how long it took on the Atrix.
Second, I am using this with the lapdock and the arrow keys, home, insert, page up, and the like are not working. I am assuming this is a keymap issue?? Any one else having these issues? Does anyone have the keymap that I need?
If you're like me, a PdaNet customer running Linux who's sad that there's no build of PdaNet designed for Linux for hiding tether usage over USB Tethering, then fear not! After some research I've devised a plan to hide USB tethering usage from carriers that DOES NOT require PdaNet!. I've tested this myself on T-Mobile and Verizon, and on both of these carriers it looks like it works just fine. This does not mean that it will only work with these carriers, these are just the ones I've tested myself (with the exception of the appended notes below). If you have another carrier not mentioned here, please test this out and let me know if it works for you and I'll add it to the OP at the bottom
Here's a precaution I'd take on Android too, just to make sure the carrier really doesn't find anything out:
Go to Magisk Manager and get yourself the OpenDNS or DNSCrypt addon and install that. I think Verizon is catching on that I'm tethering somehow through DNS, even when I use VPN. By setting my DNS on my phone's LTE connection to something that's not-verizon, this should allow me to dodge that. I recommend you doing it too as a precaution
Here's what you have to do for Linux:
1) Hop over to your Linux machine, open a terminal emulator, and type the following commands (with root privileges):
sudo sysctl net.ipv4.ip_default_ttl=65
echo 65 | sudo tee /proc/sys/net/ipv4/ip_default_ttl
What this does is sets your PC's network packets to have a Time To Live of 65. This is to make it seem like the packets were originated from your phone instead of your PC. Android's default TTL for its packets is 64, so when the PC sends packets to your phone through tethering with a TTL of 65, they have a TTL of 64 by the time your phone sends them out to T-Mobile's towers (the internet).
2) If you want to have the PC's TTL set to 65 on every startup so you don't have to keep entering the two commands above again and again every time you reboot, add the following line to your PC's /etc/sysctl.conf file and save:
net.ipv4.ip_default_ttl=65
Here's what you have to do for Mac: (credits for the instructions and post going to @BrettB0727)
For those wondering how to do this on a Mac, it can be done temporarily using:
Code:
sudo sysctl -w net.inet.ip.ttl=65
Or permanently by creating or editing /etc/sysctl.conf to add
Code:
net.inet.ip.ttl=65
if you end up creating the file, you will need to be sure and do:
Code:
sudo chmod 0644 /etc/sysctl.conf
sudo chown root:wheel /etc/sysctl.conf
Here's what you have to do for Windows:
1) Open up regedit and go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters
2) Make a new REG_DWORD entry in there called DefaultTTL and set it to 65
3) Reboot
NOTE: I've found that downloading files can be finicky. I was able to download an MP4 video before without it detecting I was using tethering data, but when I tried to get a .zip file from ModDB T-Mobile found out what I was doing. Just take warning that not all forms of network traffic will be hidden when tethering.
NOTE 2: Confirmed by @triggerlord to work with WiFi Hotspot, as well as with Simple Mobile
NOTE 3: If you're one of those people who have trouble hiding their data with this method, take @niry's advice and see if it helps: he said to remove `dun` type from pcweb.t-mobile.com APN and add it to the end of the fast.t-mobile.com one (if it's not already there)
Lol, this fixed my Simple Mobile (powered by T-Mobile) tethering issues. Nice! This works with the WiFi hotspot feature too BTW.
triggerlord said:
Lol, this fixed my Simple Mobile (powered by T-Mobile) tethering issues. Nice! This works with the WiFi hotspot feature too BTW.
Click to expand...
Click to collapse
Were you able to browse the web (hidden) without changing your browsers user agent? I find that if I don't set Chrome to look like Android its 50/50 if it gets hidden or not.
Sent from my Moto G Play using XDA-Developers Legacy app
jasonmerc said:
Were you able to browse the web (hidden) without changing your browsers user agent? I find that if I don't set Chrome to look like Android its 50/50 if it gets hidden or not.
Sent from my Moto G Play using XDA-Developers Legacy app
Click to expand...
Click to collapse
Everything works fine. I didn't need to change browser agents or anything. (I'm using chromium though.) I've only tried this via WiFi hotspot. EDIT: And I didn't need to change the APN setting either. Changing the TTL was enough to get it working.
is ma.t-mobile.com working for anyone? i keep getting sent to my.t-mobile.com even after doing what OP suggested. it used to work for me a few weeks back.
shawtydat said:
is ma.t-mobile.com working for anyone? i keep getting sent to my.t-mobile.com even after doing what OP suggested. it used to work for me a few weeks back.
Click to expand...
Click to collapse
Maybe they shut down the website. Haven't been on it myself in months
jasonmerc said:
Maybe they shut down the website. Haven't been on it myself in months
Click to expand...
Click to collapse
i'm afraid that to be the case, but is there another way to monitor tether vs mobile data?
shawtydat said:
i'm afraid that to be the case, but is there another way to monitor tether vs mobile data?
Click to expand...
Click to collapse
You might be able to in the T-Mobile app on your phone but other than that I think we're screwed now
jasonmerc said:
If you're like me, a PdaNet customer running Linux who's sad that there's no build of PdaNet designed for Linux for hiding tether usage over USB Tethering, then fear not! After some research I've devised a plan to hide USB tethering usage from T-Mobile. Tested and confirmed working with Ubuntu 16.10 and Mint 18.1, with the latest ResurrectionRemix on my XT1607.
Click to expand...
Click to collapse
When using this method, is the PdaNet app required on the phone?
MountainX said:
When using this method, is the PdaNet app required on the phone?
Click to expand...
Click to collapse
No, you don't need any apps
triggerlord said:
Lol, this fixed my Simple Mobile (powered by T-Mobile) tethering issues. Nice! This works with the WiFi hotspot feature too BTW.
Click to expand...
Click to collapse
Can you supply more information.
I'm looking at switching carriers due to my location(In the mountains with just about nothing for service providers) and want to know how much data you actually use.
What's the most data you have used with this TTL method?
Have they throttled you? and if so, how much?
Any information you can supply is extremely helpful. Thank you! =D
I've used 60gb no throttle.
That's awesome. Thank you for that information.
shawtydat said:
is ma.t-mobile.com working for anyone? i keep getting sent to my.t-mobile.com even after doing what OP suggested. it used to work for me a few weeks back.
Click to expand...
Click to collapse
Works for me.
jasonmerc said:
What this does is sets your PC's network packets to have a Time To Live of 65. This is to make it seem like the packets were originated from your phone instead of your PC. Android's default TTL for its packets is 64, so when the PC sends packets to your phone through tethering with a TTL of 65, they have a TTL of 64 by the time your phone sends them out to T-Mobile's towers (the internet).
Click to expand...
Click to collapse
Thanks, jasonmerc! This put me in the right direction to remove the need for PdaNet on my Mac and also to be able also use my phone as a Wi-Fi Hotspot at full speed on T-Mobile. I'll be looking for your tutorial to bypass T-Mobile's international speed limits!
For those wondering how to do this on a Mac, it can be done temporarily using:
Code:
sudo sysctl -w net.inet.ip.ttl=65
Or permanently by creating or editing /etc/sysctl.conf to add
Code:
net.inet.ip.ttl=65
if you end up creating the file, you will need to be sure and do:
Code:
sudo chmod 0644 /etc/sysctl.conf
sudo chown root:wheel /etc/sysctl.conf
BrettB0727 said:
Thanks, jasonmerc! This put me in the right direction to remove the need for PdaNet on my Mac and also to be able also use my phone as a Wi-Fi Hotspot at full speed on T-Mobile. I'll be looking for your tutorial to bypass T-Mobile's international speed limits!
For those wondering how to do this on a Mac, it can be done temporarily using:
Code:
sudo sysctl -w net.inet.ip.ttl=65
Or permanently by creating or editing /etc/sysctl.conf to add
Code:
net.inet.ip.ttl=65
if you end up creating the file, you will need to be sure and do:
Code:
sudo chmod 0644 /etc/sysctl.conf
sudo chown root:wheel /etc/sysctl.conf
Click to expand...
Click to collapse
I just noticed your reply right now, and I appreciate the steps for doing this on a Mac! I'm going to add these Mac steps to the first post and give you credit for it
As far as international data limits go, I'm not sure I can address that with a fix like this unfortunately.
Still working?
I haven't been able to get over 500kbps using this method. Is this approach still working for folks in 2018?
tatemz said:
I haven't been able to get over 500kbps using this method. Is this approach still working for folks in 2018?
Click to expand...
Click to collapse
I haven't used this in a while, but I'll give it a try soon to see if it still does
tatemz said:
I haven't been able to get over 500kbps using this method. Is this approach still working for folks in 2018?
Click to expand...
Click to collapse
It works in combination with altering the `type` string in the APNs: remove `dun` from pcweb.t-mobile.com one and add it to the fast.t-mobile.com one so it will read `default,supl,hipri,fota,dun`.
niry said:
It works in combination with altering the `type` string in the APNs: remove `dun` from pcweb.t-mobile.com one and add it to the fast.t-mobile.com one so it will read `default,supl,hipri,fota,dun`.
Click to expand...
Click to collapse
Thanks for letting me know about this. I was talking to some people about using this method and they said it was a hit or miss in terms of hiding their tethering usage. I'll update the OP to include what you said as a fix, for people to try out if it's not working