|
Help setting TTL on a rooted Android. |
type568
Member #8,381
March 2007
|
I got a tablet, & I wanna share the internet with it. Unfortunately when I tether internet, the provider redirects me to authentication offering me cut the speed in half(& well, I need to agree to it). I don't all that much care about the speed(although wtf, I paid for what I paid. They didn't warn me. Yes it was in small text somewhere.. Oh well). The issue was easily worked around on my desktop PC- set TTL from default 64 to 65, and viola! No warnings, no speed cuts. I even used it once when I had an internet outage & it was a nice backup. No one interupteh my stock tradeh! Now with phone.. Well, I don't have the understanding of linux to find the right config and change it. Any help? Thanks.
|
Thomas Fjellstrom
Member #476
June 2000
|
It's the same kernel, the same ttl settings aught to work. somewhere in /sys or /proc I assume. -- |
type568
Member #8,381
March 2007
|
What should be the config filename?
|
Thomas Fjellstrom
Member #476
June 2000
|
cat "foo" > /path/to/magic/file in a rc.local file, or maybe there's a /etc/sysctl.conf file you can modify the net settings in. -- |
type568
Member #8,381
March 2007
|
/proc/sys/net/ipv4/ip_default_ttl Was 64,set to 65. Reboot- doesn't work, check it again- it's 64 :S
|
Thomas Fjellstrom
Member #476
June 2000
|
Yeah, it won't save across boots. you need to set it via a boot up script, like /etc/rc.local (plain shell script) or /etc/sysctl.conf (config for sysctl) -- |
type568
Member #8,381
March 2007
|
Interstingly.. Without a reboot I can't connect to a WiFi, can't get ip address. :S Another thing. Wether or not it is possible to force the tablet not decrease TTL? My router for example has such a featre despite any lack of need in one. To what script shoult I add it, and what should the line look like? Append:
|
Thomas Fjellstrom
Member #476
June 2000
|
I honestly don't know. I'm sure theres something you can change. but I've not played with it. I assume google will know. -- |
type568
Member #8,381
March 2007
|
Thanks. Well, google has to know.. But kind of complex to find, without your hint on location of the file to edit I couldn't google where it can be. Looks like nobody cares about TTL on android
|
Thomas Fjellstrom
Member #476
June 2000
|
I think maybe search for places to set sysctl values, or places to put startup scripts or commands. -- |
type568
Member #8,381
March 2007
|
ATM changing TTL disables wifi connectivity. Do you think there's chance it will work if value set on boot?
|
Thomas Fjellstrom
Member #476
June 2000
|
It might, since it would be set before wifi comes up. I give no guarantees though. -- |
type568
Member #8,381
March 2007
|
I bricked it. SPent half night repairing it, it didn't wanna get flashed because of.. The USB port. I mean it. It could do SOME tasks via the usb, including all filetransfer & charging. But not flashing. I'll try to get some boot-time cmd run
|
Thomas Fjellstrom
Member #476
June 2000
|
If you can't flash via usb, then maybe your phone got relocked? Could you enter recovery (the screen that lets you wipe stuff and re-flash) at all? -- |
type568
Member #8,381
March 2007
|
No, no.. It's flashed with default ROM & rerooted. It was bricked at some point in time. There are two debugging modes: fastboot, & flashmode. Fastboot requires unlocking, flashmode doesn't. Fastboot is kind of a little bit more limited with flashing, although it was enough to brick the phone after i flashed an inappropriate kernel or something. And the whole flashmode just wasn't working from start, although it should be. The solution has fucking killed me. Changing USB port on my PC. Why did everything but specific flashmode was working I've no clue. The fact has taken couple hours of my life, although there was some bonus in shape of very interesting experience. Append:
|
|