Tweak your Android phone
Improve overall performance, prolong battery life
[revised]
FOR ROOTED PHONES ONLY!
Contents:
1. build.prop
2. sysctl.conf
3. init.d
4. V6 supercharge
5. APK optimisation
6. odexing
7. stock camera high quality video rec&100% jpeg quality
8. misc.
9. FUGU tweaks
!WARNING!
BEFORE you start modifying/tweaking any system files, make a BACKUP!
In that case you're save and you have the option to restore the system if you mess something up!
1. build.prop
For editing build.prop you'll need a file explorer like Root Explorer which is a paid app, or you can use any root enabled file explorer.
Solid Explorer is a really good one!
build.prop is located in /system.
You can also use Android Commander to pull the file to your PC, edit it, then push it back to the phone.
Here's a collection of build.prop tweaks which should improve performance:
NOTE: I've commented values (#) which I'm not really sure about what they do exactly, or I find they are optional.
Test them yourself if you want. remove # in front of line, if you want to enable it.
---------------------------------------------------------------------------------------
---------------------------------------END---------------------------------------------# MEDIA TWEAKS
media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
media.stagefright.enable-rtsp=true
media.stagefright.enable-record=true
# MISCELLANEOUS TWEAKS
wifi.supplicant_scan_interval=150 #sets wifi scan frequency
windowsmgr.max_events_per_sec=90 #This number equates to the refresh rate * 1.5 Android maxes at 60fps.
# faster Scrolling
ro.max.fling_velocity=12000
ro.min.fling_velocity=8000
# improve voice call clarity
ro.ril.enable.amr.wideband=1
# minimize the time Android waits until it rings on a call (not really necessary if you're not experiencing problems)
ro.telephony.call_ring.delay=0
# disable error checking
ro.kernel.android.checkjni=0
ro.kernel.checkjni=0
# disable logcat
logcat.live=disable
# faster youtube?
ro.ril.hep=0
# Faster boot
persist.sys.shutdown.mode=hibernate
# disable animation for faster startup
#debug.sf.nobootanimation=1
# disable USB debugging icon from status bar
persist.adb.notify=0
#HARDWARE RELATED TWEAKS
# Render graphics with GPU&CPU?
debug.composition.type=CPU
debug.composition.type=GPU
# should improve responsiveness through Hardware Rendering
debug.sf.hw=1
persist.sys.ui.hw=1
debug.egl.profiler=1
debug.egl.hw=1
# Qualcomm display settings
debug.qctwa.statusbar=1
debug.qctwa.preservebuf=1
com.qc.hardware=true
# BATTERY SAVING
ro.ril.disable.power.collapse=0
ro.mot.eri.losalert.delay=1000 #smooths out network disconnects
ro.config.nocheckin=1 #disable sending usage data to google
# sleep modes
pm.sleep_mode=1
#usage:
#pm.sleep_mode=0 -> collapse suspend
#pm.sleep_mode=1 -> collapse (will totally power off the cpu)
#pm.sleep_mode=2 -> sleep (cpu is still on, but put into low power mode (registers are still saved)
#pm.sleep_mode=3 -> slow Clock and Wait for Interrupt (lowered frequency and voltage)
#pm.sleep_mode=4 -> wait for interrupt (no change in cpu clock or voltage)
# DALVIK TWEAKS
dalvik.vm.execution-mode=int:jit #Dalvik just-in-time compiler
dalvik.vm.verify-bytecode=false
dalvik.vm.dexopt-flags=v=n,o=a,u=y #first remove the existing dalvik.vm.dexopt-flags line before putting this one!
# if you get problems like apps not starting, not getting root although you're rooted, change this to m=v,o=y
dalvik.vm.jmiopts=forcecopy
dalvik.vm.heapstartsize=5m
dalvik.vm.heapgrowthlimit=18m #make sure this value is a little less than half of the heap size
dalvik.vm.heapsize=42m #change this to a value you like. 42m is not an universal value, you can also set it to 64m
# TCP buffers
net.tcp.buffersize.default 4096,87380,704512,4096,16384,110208;
net.tcp.buffersize.wifi 524288,1048576,2097152,262144,524288,1048576;
net.tcp.buffersize.lte 524288,1048576,2097152,262144,524288,1048576
net.tcp.buffersize.hspa 4094,87380,704512,4096,16384,262144
net.tcp.buffersize.umts 4094,87380,563200,4096,16384,110208
net.tcp.buffersize.gprs 4094,87380,256960,4096,16384,110208;
net.tcp.buffersize.edge 4094,87380,256960,4096,16384,110208;
# DEACTIVATED LINES
# minimize the time Android waits until it rings on a call (not really necessary if you're not experiencing problems)
#ro.telephony.call_ring.delay=0
# proximity sensor delay (not really necessary if you don't experience black screen issue after cal)
#mot.proximity.delay=25
#ro.lge.proximity.delay=25
# disable error reporting. may possibly breake some apps.
#profiler.force_disable_err_rpt=1
#profiler.force_disable_ulog=1
# locks launcher in memory (not recommended on low RAM devices)
#ro.HOME_APP_ADJ=1
build.prop tweaks listings with explanation:
Improving performance of your Android device through optimizing Build.Prop settings | Niranjan Thilak
Examining build.prop tweaks for Android ICS: A comprehensive guide (Part 1) | Jeff Mixon
2. sysctl.conf
About sysctl: http://en.wikipedia.org/wiki/Sysctl
sysctl.conf improve battery:
[MOD] Improve your battery life - xda-developers
sysctl.conf Data speed increase (wifi/3g/4g)
Data speed increase (wifi/3g/4g) - xda-developers
3. init.d
Enable init.d for Xperia STOCK ROM:
[Script] init.d for STOCK ROM - xda-developers
Enable init.d for all ROMs:
http://xdaforums.com/showthread.php?t=1933849
Some init.d tweaks/scripts:
Loopy Smoothness Tweak: [Script]Loopy Smoothness Tweak[TUT] - xda-developers
Smurfed Out script: [SCRIPT/TWEAKS] [Team D.I.R.T.] Smurfed Out V 6.6 (ultimate build.prop/init.d) 4-21 - xda-developers
Adrenaline™ Engine:[CWM][SCRIPTS][TWEAKS] Adrenaline™ Engine | STOCK 4.2 | CM 4.2b | 4/6 - xda-developers
ZV6:[MOD][ALL ROMS][TweakZV6] Init.d best tweaks[Flashable] Increase your performance ) - xda-developers
Thunderbolt!: [SCRIPTS][TWEAKS] ThunderBolt! v2.7.7 - 8/1/12 [Better Battery Life & Performance!] - xda-developers
X-PLODE:
Even more scripts: http://xdaforums.com/showthread.php?t=1928464
4. V6 Supercharging
][Script-U9RC8.2]Be A Super User! Use The -=V6 SuperCharger=- Lag, Redraw & RAM Fixer! - xda-developers
1.] Download V6 supercharger and place it on your SDcard. Optionally you can rename it to a simple name like V6.
2.] Download&install script manager from google play.
3.] open script manager and grant it root privileges.
4.] Load downloaded script by selecting it, tap superuser (SU) icon (it will turn green)
5.] Tap 'run' in upper left corner
6.] touch the screen to open keyboard.
7.] it will ask to set scrolling speed, select 1 or 2 or 3 and then enter. Or select 0 for instant display.
8.] let it run until it stops scrolling. It will then ask you "Please Enter Option [1-30]:"
9.] Choose 10 for automatic calculation of settings (V6 cust-oomizer), or choose for yourself. My personal choice is 5 [Multitask]
10.] let it do it's thing... after it's finished it'll ask you if you want to super clean&reboot, do it.
To verify if the script has been installed, run it again after reboot.
If all is gods, you should get "Launcher is HARD TO KILL! ie. SUPERCHARGED" and "SuperCharger Level: 100% SuperCharged!"
Also try -=Ultimate Jar Power Tools=- by zeppelinrox: http://xdaforums.com/showthread.php?t=1914159
5. APK Optimisation
][DEVS] Optimize all APKs automatically, Reduce memory footprint! [Now with Zipalign] - xda-developers
What it does: Makes APK's smaller by compressing PNG files in it. You gain a bit more space on internal storage, and smaller memory footprint!
Download this file http://xdaforums.com/attachment.php?attachmentid=233101&d=1254347893 and extract it somewhere. Preferably to your desktop. The folder is named apkopt by default.
Open your ROM's zip. Open system and extract app folder to desktop.
Select all APK's inside app folder and copy/move them to apkopt folder.
Press win+r which opens run, type cm which opens command prompt.
now navigate to whereveryour apkopt folder is and type "apkopt_all".
The process will start, and it will take some time to finish.
It will create two new folders, "optimized" & "original".
Your optimized APK's are obviously in the optimized folder.
You can compare how much in size they've shrinked, for some ROM's you can gain as much as 20Mb!
Create new folder called "app", and place all optimized APK's in it.
Open you ROM zip again, go to system and replace the app folder with the optimized one.
Now you can flash the ROM
6. ROM odexing
][ODEX] on Any ROM - xda-developers
Odexing pros:
Faster boot, faster app loading, gain more space in internal storage.
deODEXED pros:
Modification of apk becomes easier
ROM is open to theme modifications
Further odex vs deodex info: xda-developers - View Single Post - [ODEX] on Any ROM
So, I think if you're not a ROM or theme maker, you should be good to go
Download this file:
odex-cwm.zip and put it on your SDcard.
Reboot phone into recovery and flash zip. It's as simple as that
WARNING! Make sure you make a nandroid backup before you flash it!
To odex single files only: http://xdaforums.com/showthread.php?t=1879128
7. Camera mod
[MOD][ICS&GB][4/26/12]Camera HQ Mod: Extreme vs High (UPD: MDPI GB version updated) - xda-developers
ONLY for Sony stock camera app!
8. misc.
Collection of various tweaks on XDA:
Collect of tweaks, scripts, optimizations for Xperia Devices - xda-developers
Get more RAM and faster responses by disabling verify-bytecode!:
Get more RAM and faster responses by disabling verify-bytecode! - xda-developers
9. FUGU tweaks
This SHOULD improve responsiveness.
[MOD] FuguTweaks - xda-developers
anyways, happy tweaking!
Last edited: