My Galaxy S2 build.prop tweaks

By | April 14, 2012

I’m currently running Cyanogenmod9 on my Galaxy S2 on Telstra. It runs beautifully and I am loving ICS and all the hard work that the CM devs put into their ROM’s. What I’ve done though is created a local.prop file inside /data/ (I know the title says build.prop) but I decided on local.prop since flashing new nightly builds of CM9 I don’t lose any of the settings since they’re in /data/.

I figured I would post it here not only for my future reference but also for anyone else that wanted to copy some of the settings. Once changed, wipe cache and dalvik-cache and reboot. If you do however break your phone, I will not be held responsible. ;-)

# My SGS2 tweaks
 
# system stuff
net.hostname=SGS2_CM9
ro.sf.lcd_density=202
qemu.sf.lcd_density=202
dalvik.vm.heapsize=48m
dalvik.vm.startheapsize=8m #Allows the system to start at a lower heap size and rank up as needed.
dalvik.vm.verify-bytecode=false
dalvik.vm.dexopt-flags=v=n,o=v
 
# GUI tweaks
debug.sf.hw=1
debug.performance.tuning=1
debug.composition.type=gpu
video.accelerate.hw=1
windowsmgr.max_events_per_sec=180 #faster scrolling
ro.max.fling_velocity=12000 #faster scrolling
ro.min.fling_velocity=8000 #faster scrolling
ro.camera.sound.forced=0 #disable camera sound
 
# wifi & battery tweaks
pm.sleep_mode=1
ro.ril.disable.power.collapse=0
wifi.supplicant_scan_interval=180
 
# phone tweaks
ro.lge.proximity.delay=25
mot.proximity.delay=25
ro.telephony.call_ring.delay=1000
 
# media tweaks
ro.media.enc.jpeg.quality=100
ro.media.dec.vid.wmv.enabled=1
ro.media.dec.aud.wma.enabled=1
ro.media.dec.aud.flac.enabled=1
ro.media.dec.vid.avi.enabled=1
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
media.stagefright.enable-record=false
 
# misc tweaks
persist.adb.notify=0
ro.kernel.android.checkjni=0
ro.kernel.checkjni=0
 
# disable sending data and logging
ro.config.nocheckin=1
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1
 
# net tweaks
net.dns1=8.8.4.4
net.dns2=8.8.8.8
net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960
net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960
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
 
# nextg tweaks
ro.ril.enable.a52=0
ro.ril.enable.a53=1
ro.ril.enable.sdr=1
ro.ril.enable.dtm=1
ro.ril.enable.gea3=1
ro.ril.enable.amr.wideband=1
ro.ril.disable.fd.plmn.prefix=23402,23410,23411
ro.ril.disable.mcc.filter=1
ro.ril.disable.power.collapse=1
ro.ril.hsxpa=2
ro.ril.hsdpa.category=14
ro.ril.hsupa.category=7
ro.ril.gprsclass=12
ro.ril.hep=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=268449905
ro.ril.fast.dormancy.rule=0
ro.ril.emc.mode=1
persist.cust.tell.eons=1

If anyone knows of any obsolete settings I don’t need in here, or something additional to add, please let me know!