Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,216 Members 53,438 Now Online
XDA Developers Android and Mobile Development Forum

Tips, tricks and tweaks for boosting your phone

Tip us?
 
iONEx
Old
(Last edited by iONEx; 16th November 2012 at 09:29 PM.) Reason: small changes
#1  
iONEx's Avatar
Senior Member - OP
Thanks Meter 628
Posts: 695
Join Date: Feb 2012
Location: Dubrovnik
Talking Tips, tricks and tweaks for boosting your phone

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.


---------------------------------------------------------------------------------------
Quote:
# 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
---------------------------------------END---------------------------------------------


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://forum.xda-developers.com/show....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://forum.xda-developers.com/show....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://forum.xda-developers.com/show....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://forum.xda-developers.com/atta...1&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://forum.xda-developers.com/show....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!
The Following 20 Users Say Thank You to iONEx For This Useful Post: [ Click to Expand ]
 
gaspar77
Old
#2  
Senior Member
Thanks Meter 7
Posts: 108
Join Date: Sep 2012
are these tweaks tested
 
cyrrrinda
Old
#3  
Junior Member
Thanks Meter 1
Posts: 23
Join Date: Dec 2011
Default you can check it here

you can check it here:
http://forum.xda-developers.com/show....php?t=1747697
http://forum.xda-developers.com/show....php?t=1873234
 
iONEx
Old
#4  
iONEx's Avatar
Senior Member - OP
Thanks Meter 628
Posts: 695
Join Date: Feb 2012
Location: Dubrovnik
Quote:
Originally Posted by gaspar77 View Post
are these tweaks tested
Tweaks are tested personally by me.

I've really tried to assemble just the really good tweaks and enhancements.

I've tested and researched all these build.prop tweaks. And as you can see, they all have comments on what they do. So you can choose what you want.
I've also only included init.d scripts that I know raise performance. All tested by me.
 
Mammt
Old
#5  
Mammt's Avatar
Member
Thanks Meter 1
Posts: 63
Join Date: Apr 2012
Just a quick question, my Mini with stock ICS has dalvik.vm.heapsize=128m by default, wouldn't setting it to 68m be an un-tweak?
 
iONEx
Old
#6  
iONEx's Avatar
Senior Member - OP
Thanks Meter 628
Posts: 695
Join Date: Feb 2012
Location: Dubrovnik
Quote:
Originally Posted by Mammt View Post
Just a quick question, my Mini with stock ICS has dalvik.vm.heapsize=128m by default, wouldn't setting it to 68m be an un-tweak?
Nope. It wouldn't be an un-tweak. You've gotta test which heapsize is best.
It's trial and error.... Let it sit at 64 for a few days and see if it's better or worse.
 
Rudjgaard
Old
#7  
Senior Member
Thanks Meter 531
Posts: 832
Join Date: Jun 2012
This thread should be pinned
 
Mammt
Old
#8  
Mammt's Avatar
Member
Thanks Meter 1
Posts: 63
Join Date: Apr 2012
Quote:
Originally Posted by iONEx View Post
Nope. It wouldn't be an un-tweak. You've gotta test which heapsize is best.
It's trial and error.... Let it sit at 64 for a few days and see if it's better or worse.
Since I don't run a ton of apps on my phone I don't think I'd be good in recognizing the difference. Is there a recommended best size based on the device's RAM? I got a Mini, so 512MB of which 340MB usable.
 
iONEx
Old
#9  
iONEx's Avatar
Senior Member - OP
Thanks Meter 628
Posts: 695
Join Date: Feb 2012
Location: Dubrovnik
Quote:
Originally Posted by Mammt View Post
Since I don't run a ton of apps on my phone I don't think I'd be good in recognizing the difference. Is there a recommended best size based on the device's RAM? I got a Mini, so 512MB of which 340MB usable.

Dalvik heap size is the amount of memory (RAM) applications can use.
The bigger it is, bigger apps run faster.

You have to find the golden middle. Because if you have it to big, the memory will be all used up by some apps and will cause laggyness and force closes in others.
Try to stay with the lowest possible setting that lets your phone run smooth.

Take a look at this link: http://ryanolson.wordpress.com/2010/...-rom-cyanogen/

It seems tha 12M! is a good setting o.O
Yet in this read here: http://butterflydroid.wordpress.com/...and-downfalls/
it's suggested to set it higher.

Personally, I use 42m right now. But I've used as low as 24m before.

You have to choose and test for yourself. Try 28m, 42 and 64m. See which is better.

Hope that helps....
The Following User Says Thank You to iONEx For This Useful Post: [ Click to Expand ]
 
hypnos17
Old
(Last edited by hypnos17; 5th November 2012 at 02:02 PM.)
#10  
hypnos17's Avatar
Senior Member
Thanks Meter 4,547
Posts: 3,053
Join Date: Jun 2012
Location: Pan Daemonium

 
DONATE TO ME
great collections..only a particolar (stupid) think that i want to tell you

Quote:
Originally Posted by iONEx View Post
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.
this is a code that we programmer use to say a comment, to remember us what we are doing, is very useful! it isn't part of code, so can be delete, it say only what the tweaks do

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


MediaTek Continues Steps Towards Being Developer-Friendly

Not too long ago MediaTek was very closed off towards the mobile developer … more

Sony PS4 Remote Play Ported to All Android Devices

Im pretty sure that every informed gamer out there perked their ears up when Sony came out … more

Change Your Samsung Galaxy S2’s Dialer Background in Real Time

As with anything, if youve looked at something long enough, things can … more