[MOD]Data Speed Tweak [ICS/GB][Wifi/3g/4g]>Flashable ZIP<

Search This thread

fiddy619

Senior Member
Nov 2, 2010
781
324
San Diego
This is a known Linux speed tweak, and i found it on the epic 4g thread (my son has one, and I loaded CM9 on his phone) that was started by marcusant. So, i'm really just sharing the info with the Evo community, but I truly think it is quite valuable info, and will likely work on any Android based device since as stated earlier it is a Linux tweak. This has only been tested on ICS, and GB, but I'm pretty sure results will be the same with Sense...


This is what i did, and for those of you that want to add it yourself, just add this code...

Code:
net.ipv4.tcp_ecn=0
net.ipv4.route.flush = 1
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_rmem = 4096 39000 187000
net.ipv4.tcp_wmem = 4096 39000 187000
net.ipv4.tcp_mem = 187000 187000 187000
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_moderate_rcvbuf = 1
to a file sysctl.conf (you can use root explorer to make a new file, or whatever file manager tool you like) then using root explorer copy the file and navigate to /system/etc/ mount as r/w and rename the original sysctl.conf file to sysctl.conf.bak, then paste the one you originally copied (you can add the lines of code to the original file if you are using a edited one already). Then change ownership to root/root, and permissions to rw/r/r, then mount back to r/o, and exit root explorer, and reboot. If it works you should notice your browser opening pages faster, the market much faster, and of course speed test will be faster.

I was pm'd this as a way to get this properly working on ICS. Thanks ratkiley

ratkiley said:
You can ignore my previous email because I found the solution. I am sharing it with you so you could update your original forum post with the missing information.

At first, I was not able to install the data speed tweak zip files through my ClockWorkMod recovery ROM on my Ice Cream Sandwich / Android 4.0 phone. After various experimentation, I figured out the solution.

To install the zip from the SD card,

  1. Copy the zip file into the root of your SD card
  2. Boot into Clockwork mod recovery rom on your phone.
  3. Mount the /system/ folder. (So you don't flash the files into the Recovery ROM's /system/ folder instead of your android ROM's system folder. Otherwise, you won't see the /system/etc/sysctl.conf file appear in the file system after installing the zip file.)
  4. Choose "install zip from sd card" -> "choose zip from sd card", then find the zip file.

* The /system/etc folder does not exist on the clockwork mod ROM's file system, but it does on other android ROMs. ADB shell exposes the clockwork mod /system/ folder to you unless you first mount the /system folder. So apparently, "Mount /system" means mount your phone's Android ROM's /system folder in the running Clockwork Mod unix file system.

This is highly unlikely, but if this somehow breaks your device I am in no way responsible... Just had to put that out there...

For ICS users you might need to use THIS method, or you can update your services.jar file HERE (compliments of Papa Smurf151 Thread).

Flashable Zips are below...
 

Attachments

  • DataSpeedBoostUndo_signed.zip
    155.9 KB · Views: 8,099
  • DataSpeedBoost_signed.zip
    156.1 KB · Views: 10,279
  • DataSpeedBoost+mem_signed.zip
    156.1 KB · Views: 13,967
Last edited:

fiddy619

Senior Member
Nov 2, 2010
781
324
San Diego
/system/etc/ does not seem to be the location on Sense based Roms. Do you have any information on where it is on Sense Roms?

I extracted a sense rom (Derps), and i did see a /system/etc directory, however, i did not see a sysctl.conf file. You could try putting the file in that directory, and it may do the needed adjustments upon boot. Again, i'm not a sense user, but It is still a linux base, so the adjustment "should" still be possible...
 
  • Like
Reactions: sclarktay4

fiddy619

Senior Member
Nov 2, 2010
781
324
San Diego
OK, both flashable zip, and flashable undo zip are in the OP. The flashable zips are based on a stock file, so if you are using a modified sysctl.conf file, this will set you back to stock, so I would suggest just adding the lines manually if you are using a modified sysctl.conf file. You can easily check this by just navigating to your /system/etc/ location with a file manager (i suggest root explorer), and just checking the size of your sysctl.conf file, if it is 0kb, then it is stock, and flash away. If it has any size value at all, then it is modified in some way, and as stated earlier I would suggest manually modifying your file.
 

Sinyc

Senior Member
Jul 9, 2009
194
13
Tried flashing and said aborted, can't find update script or something along those lines.

Sent from my HTC EVO 4G using xda premium.
 

fiddy619

Senior Member
Nov 2, 2010
781
324
San Diego
Just now flashed and aborted on me also... Hhhmmm, any ideas?

Sent from my PC36100 using xda premium

You could try toggling signature, that should get it working, but I'm not with my computer right now, so I'll have to look into it later. Sorry about that, if anyone wants to make a flashable zip in the mean time i'de appreciate it.

Sent using my Cyanogized Monster EVO via Tapatalk 2
 

storm68

Senior Member
Sep 8, 2010
1,881
551
Orlando
You could try toggling signature, that should get it working, but I'm not with my computer right now, so I'll have to look into it later. Sorry about that, if anyone wants to make a flashable zip in the mean time i'de appreciate it.

Sent using my Cyanogized Monster EVO via Tapatalk 2

Yeah that's the first thing I did but no go, thanks though.... :)

Sent from my PC36100 using xda premium
 

Diablo67

Senior Member
This is what the file is for....
The sysctl.conf is a configuration file for "sysctl" which is an interface for dynamically changing kernel parameters in the Linux OS. The configuration file contains the following elements, vm.min_free_kbytes, vm.dirty_ratio, vm.dirty_backgroud_ratio, vm.vfs_cache_pressure, vm.oom_kill_allocating_task. There are many other elements within the file, but we will be primarily focusing on these specifically (the vm prefix stands for virtual memory). The sysctl.conf file should be located in /etc (/system/etc) by default. To enable it you need your ROM to execute "sysctl -p" somewhere during the boot process (or shortly afterward).
I havent found it in the system/etc/init.d folder on GB/Sense.It is in ICS system/etc./init.d folder though.
 
Last edited:

Sinyc

Senior Member
Jul 9, 2009
194
13
Its pretty much adjusting these values, with some ip4 tweaks too.

6b2f3298-a2ed-b19a.jpg


Sent from my HTC EVO 4G using xda premium.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 31
    This is a known Linux speed tweak, and i found it on the epic 4g thread (my son has one, and I loaded CM9 on his phone) that was started by marcusant. So, i'm really just sharing the info with the Evo community, but I truly think it is quite valuable info, and will likely work on any Android based device since as stated earlier it is a Linux tweak. This has only been tested on ICS, and GB, but I'm pretty sure results will be the same with Sense...


    This is what i did, and for those of you that want to add it yourself, just add this code...

    Code:
    net.ipv4.tcp_ecn=0
    net.ipv4.route.flush = 1
    net.ipv4.tcp_rfc1337 = 1
    net.ipv4.ip_no_pmtu_disc = 0
    net.ipv4.tcp_sack = 1
    net.ipv4.tcp_fack = 1
    net.ipv4.tcp_window_scaling = 1
    net.ipv4.tcp_timestamps = 1
    net.ipv4.tcp_rmem = 4096 39000 187000
    net.ipv4.tcp_wmem = 4096 39000 187000
    net.ipv4.tcp_mem = 187000 187000 187000
    net.ipv4.tcp_no_metrics_save = 1
    net.ipv4.tcp_moderate_rcvbuf = 1
    to a file sysctl.conf (you can use root explorer to make a new file, or whatever file manager tool you like) then using root explorer copy the file and navigate to /system/etc/ mount as r/w and rename the original sysctl.conf file to sysctl.conf.bak, then paste the one you originally copied (you can add the lines of code to the original file if you are using a edited one already). Then change ownership to root/root, and permissions to rw/r/r, then mount back to r/o, and exit root explorer, and reboot. If it works you should notice your browser opening pages faster, the market much faster, and of course speed test will be faster.

    I was pm'd this as a way to get this properly working on ICS. Thanks ratkiley

    ratkiley said:
    You can ignore my previous email because I found the solution. I am sharing it with you so you could update your original forum post with the missing information.

    At first, I was not able to install the data speed tweak zip files through my ClockWorkMod recovery ROM on my Ice Cream Sandwich / Android 4.0 phone. After various experimentation, I figured out the solution.

    To install the zip from the SD card,

    1. Copy the zip file into the root of your SD card
    2. Boot into Clockwork mod recovery rom on your phone.
    3. Mount the /system/ folder. (So you don't flash the files into the Recovery ROM's /system/ folder instead of your android ROM's system folder. Otherwise, you won't see the /system/etc/sysctl.conf file appear in the file system after installing the zip file.)
    4. Choose "install zip from sd card" -> "choose zip from sd card", then find the zip file.

    * The /system/etc folder does not exist on the clockwork mod ROM's file system, but it does on other android ROMs. ADB shell exposes the clockwork mod /system/ folder to you unless you first mount the /system folder. So apparently, "Mount /system" means mount your phone's Android ROM's /system folder in the running Clockwork Mod unix file system.

    This is highly unlikely, but if this somehow breaks your device I am in no way responsible... Just had to put that out there...

    For ICS users you might need to use THIS method, or you can update your services.jar file HERE (compliments of Papa Smurf151 Thread).

    Flashable Zips are below...
    4
    So just flash, how would we undo? Just make a backup of the original file?

    Thanks.

    Sent from my HTC EVO 4G using xda premium.

    I'll make a undo .zip, just give me a minute...
    4
    For those on ICS I have noticed the zip doesn't always stick. I just manually created a second file and pushed it to system/etc then set permissions then rebooted. That's when I finally noticed the vast improvement in speed. Only after a reboot did I get the increased speed.
    I was one of the doubters early on because every time I tried it, it wouldn't work and my speeds never improved. After adding the text manually though its all working perfect. Also don't forget the reboot.

    Sent from my HTC Evo 4G using Tapatalk 2
    2
    Question: Why are the values in the flashable file different from what's posted in the OP?
    1
    It was working :/ but now everytime I reboot it remounts to r/w and my speed is super slow

    sent from my reloaded evo

    Go into root explorer, and mount system as r/o, then go to a terminal app, and type

    $su
    #fix_permissions

    The "$" and "#" are the prompts, so don't type those. Once it gets done either type reboot, or reboot however you wish...

    Sent using my Cyanogized Monster EVO via Tapatalk 2