1. Download our Official Android App: Forums for Android!

build.prop tweaks for performance and battery life

Discussion in 'Android Lounge' started by ardchoille, Oct 31, 2011.

  1. ardchoille

    ardchoille Android Expert
    Thread Starter
    Rank:
    None
    Points:
    333
    Posts:
    3,684
    Joined:
    Mar 8, 2011

    Mar 8, 2011
    3,684
    1,940
    333
    Male
    Ordained Minister
    Seattle
    Your phone needs to be rooted in order to follow this tutorial.

    I researched build.prop settings recently and learned how to increase battery life and performance. I use Root Explorer to edit build.prop in place, it makes a backup before saving changes.

    Please read this entire post before making any modifications.

    1) Make a nandroid backup before making any changes
    2) Seriously, make a nandroid backup :D
    3) Download Root Explorer from the market
    4) Launch Root explorer and go to /system
    5) Make sure /system is mounted as R/W, this info and a button are at the top of the Root Explorer screen
    6) Long-press the build.prop file and choose "Open in Text Editor"
    7) Add the following settings or tweak them if they're already present (notice the "or"?)
    8) Once edited press Menu > Save, Root Explorer will save a backup of the original file
    9) Reboot
    10) Any problems should be fixable via Root Explorer
    11) If the phone fails to boot simply restore a nandroid backup

    Code (Text):
    1.  
    2. # Force launcher into memory
    3. ro.HOME_APP_ADJ=1
    4.  
    5. # Start at a lower heap size and increase as needed
    6. dalvik.vm.startheapsize=8m
    7. # VM Heapsize; the higher the RAM, the higher the heap can be
    8. dalvik.vm.heapsize=32m
    9.  
    10. # Render UI through GPU instead of CPU
    11. # Comment out if this causes laggy UI
    12. debug.sf.hw=1
    13.  
    14. # Time between wifi scans in seconds. Keep it high to minimize battery drain
    15. # 5 minutes=300, 4 minutes=240, 3 minutes=180, etc.
    16. wifi.supplicant_scan_interval = 300
    17.  
    18. # Allow power collapse, increases battery life
    19. ro.ril.disable.power.collapse=0
    20.  
    21. # Puts the CPU into deep sleep but preserves registers
    22. pm.sleep_mode=2
    23.  
    24. # Net speed tweaks, choose what you need
    25. net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960
    26. net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960
    27. net.tcp.buffersize.wimax = 4096,221184,524288,4096,16384,110208
    28. net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960
    29. net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960
    30. net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960
    31.  
    32. # When moving through zones or losing signal, having a delay
    33. # smooths out constant disconnects and reconnects, saves battery life
    34. ro.mot.eri.losalert.delay=1000
    35.  
    I made these changes on my Evo 4G yesterday on the rooted stock ROM and on CM7. I haven't seen any problems and battery life seems to have increased a bit.

    I'm sure there are other tweaks but I haven't researched all of them yet. Anyone who has more tweaks feel free to post a reply.
     

    Advertisement

Share This Page

Loading...