Android system optimization

Source: Internet
Author: User
Tags nameserver

These are actually some practical tips for optimizing ROM. I think a lot of it is useful.

Build.prop (edit/system/build.prop file (requires root, can use File Manager or other root explorer)
If you have these parameters in the Build.prop, just change the values

1. Force the home program into memory.
Parameters:
Ro. Home_app_adj=1
2. Improve JPG quality to 100%
Parameters:
ro.media.enc.jpeg.quality=100
3. VM Virtual heap size; Increase RAM
Parameters:
dalvik.vm.heapsize=48m
4. Rendering the UI using the GPU
Parameters:
Debug.sf.hw=1
5. Reduce the delay that occurs after dialing
Parameters:
Ro.telephony.call_ring.delay=0
6. Improved sliding response
Parameters:
windowsmgr.max_events_per_sec=150
7. Battery optimization
Parameters:
wifi.supplicant_scan_interval=180
Pm.sleep_mode=1
Ro.ril.disable.power.collapse=0
8. The Disable Debug notification icon appears in the status bar
Parameters:
Persist.adb.notify=0
9. Improve Global touch screen response
Parameters:
Debug.performance.tuning=1
Video.accelerate.hw=1
10. Improve image and camera quality
Parameters:
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
One. (3G) Signal optimization
Parameters:
ro.ril.hsxpa=2 ro.ril.gprsclass=10
Ro.ril.hep=1 Ro.ril.enable.dtm=1
ro.ril.hsdpa.category=10
Ro.ril.enable.a53=1
Ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
Ro.ril.hsupa.category=5
12. Network Speed optimization
Parameters:
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
13. No black screen appears after dialing.
Parameters:
Ro.lge.proximity.delay=25
Mot.proximity.delay=25
14. Fix the problem with the application.
Parameters:
Ro.kernel.android.checkjni=0
15. Do not wake the phone by pressing the Add/subtract key
Parameters:
Ro.config.hwfeature_wakeupkey=0
16. Force turn on Function key backlight when the screen is lit
Parameters:
Ro.mot.buttonlight.timeout=0
17. Do not display the boot animation (System/media/bootanimation.zip animation will not display, speed up the boot speed)
Parameters:
Debug.sf.nobootanimation=1
18. Other Optimizations
Parameters:
Ro.config.hw_menu_unlockscreen=false
Persist.sys.use_dithering=0
Persist.sys.purgeable_assets=1
Dalvik.vm.dexopt-flags=m=y
ro.mot.eri.losalert.delay=1000
19. The following are optimized for LG models (do not know what optimization, Wood has a rod machine)
Parameters:
Persist.service.pcsync.enable=0
Persist.service.lgospd.enable=0
User.feature.flex=true
User.feature.lgdrm=false
User.feature.lgresource=false
User.feature.lgpoweroff=false
User.feature.ls_event=false
User.feature.ls_normal=false
User.feature.sui=false
INIT.D (SYSTEM/ETC/INIT.D General folk ROM has the directory, Wood has the words to create their own)
(Requires ROM has/SYSTEM/ETC/INIT.D directory, and needs BusyBox to be able to use normally.) Create a blank file, with the first line of each file required to have a #!/system/bin/sh, drag it into the/SYSTEM/ETC/INIT.D and Named like 77tweaks * (number, then name)
1. Strict Minfree handler optimization
Parameters:
echo "2048,3072,6144,15360,17920,20480″>/sys/module/lowmemorykiller/parameters/minfree
2. Network speed optimization
Parameters:
echo "0″>/proc/sys/net/ipv4/tcp_timestamps;
echo "1″>/proc/sys/net/ipv4/tcp_tw_reuse;
echo "1″>/proc/sys/net/ipv4/tcp_sack;
echo "1″>/proc/sys/net/ipv4/tcp_tw_recycle;
echo "1″>/proc/sys/net/ipv4/tcp_window_scaling;
echo "5″>/proc/sys/net/ipv4/tcp_keepalive_probes;
echo "30″>/PROC/SYS/NET/IPV4/TCP_KEEPALIVE_INTVL;
echo "30″>/proc/sys/net/ipv4/tcp_fin_timeout;
echo "404480″>/proc/sys/net/core/wmem_max;
echo "404480″>/proc/sys/net/core/rmem_max;
echo "256960″>/proc/sys/net/core/rmem_default;
echo "256960″>/proc/sys/net/core/wmem_default;
echo "4096,16384,404480″>/proc/sys/net/ipv4/tcp_wmem;
echo "4096,87380,404480″>/proc/sys/net/ipv4/tcp_rmem;
3. VM Virtual Machine Management optimization
Parameters:
echo "4096″>/proc/sys/vm/min_free_kbytes
echo "0″>/proc/sys/vm/oom_kill_allocating_task;
echo "0″>/proc/sys/vm/panic_on_oom;
echo "0″>/proc/sys/vm/laptop_mode;
echo "0″>/proc/sys/vm/swappiness
echo "50″>/proc/sys/vm/vfs_cache_pressure
echo "90″>/proc/sys/vm/dirty_ratio
echo "70″>/proc/sys/vm/dirty_background_ratio
4. Kernel optimization
Parameters:
echo "8″>/proc/sys/vm/page-cluster;
echo "64000″>/proc/sys/kernel/msgmni;
echo "64000″>/proc/sys/kernel/msgmax;
echo "10″>/proc/sys/fs/lease-break-time;
echo "500,512000,64,2048″>/proc/sys/kernel/sem;
5. Battery optimization
Parameters:
echo "500″>/proc/sys/vm/dirty_expire_centisecs
echo "1000″>/proc/sys/vm/dirty_writeback_centisecs
6. EXT4 optimization (increased I/O scheduling) (Requires/system,/cache,/data formatted partition EXT4))
A) removal of journalism
Parameters:
Tune2fs-o Journal_data_writeback/block/path/to/system
Tune2fs-o ^has_journal/block/path/to/system
Tune2fs-o Journal_data_writeback/block/path/to/cache
Tune2fs-o ^has_journal/block/path/to/cache
Tune2fs-o Journal_data_writeback/block/path/to/data
Tune2fs-o ^has_journal/block/path/to/data
b) Perfect Mount option
Parameters:
BusyBox Mount-o Remount,noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0,nobh/system
BusyBox Mount-o Remount,noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0,nobh/data
BusyBox Mount-o Remount,noatime,noauto_da_alloc,nosuid,nodev,nodiratime,barrier=0,nobh/cache
7. The identity area is non-self-rotating and increases the cache size
Parameters:
loop= ' ls-d/sys/block/loop* ';
ram= ' ls-d/sys/block/ram* ';
mmc= ' ls-d/sys/block/mmc* ';
For J in $LOOP $RAM
Do
echo "0″> $j/queue/rotational;
echo "2048″> $j/queue/read_ahead_kb;
Done
8. SD Card Speed optimization
Parameters:
echo "2048″>/sys/devices/virtual/bdi/179:0/read_ahead_kb;
9. Defrags Database files
Parameters:
For i in \
' Find/data-iname ' *.db "'
Do \
Sqlite3 $i ' VACUUM; ';
Done
9. Removal of Logger
Parameters:
Rm/dev/log/main
Ondemand governor (overclocking optimized)
Parameters:
sampling_rate=$ (busybox expr ' cat/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency '
\* 750/1000)
echo >/sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo $SAMPLING _rate >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
Automatic change of Governor and I/O scheduling
A) I/O scheduling (best: MTD device –VR; EMMC device –sio) – The kernel that needs to be adapted
Parameters:
echo "VR" >/sys/block/mmcblk0/queue/scheduler
Or
echo "Sio" >/sys/block/mmcblk0/queue/scheduler
b) Governor (Best:minmax > Savagedzen > Smoothass > Smartass > Interactive) – Requires kernel support.
Parameters:
echo "Governor-name-here" >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
12. Auto-zipalign apk at startup
(Need zipalign binary, located in System/bin/zipalign, can refer to the following URL to add themselves)
Reference URL:http://forum.xda-developers.com/showthread.php?t=860586
13. Process Resident Optimization
Reference URL:
http://forum.xda-developers.com/showthread.php?t=1137554
http://forum.xda-developers.com/showthread.php?t=1205744

Move the dalvik-cache to the cache partition (if the partition is large enough) to expand the data partition
parameter:
cachesize=$ (df-k/cache | tail-n1 | tr -S ' | Cut-d '-f2)
If [$CACHESIZE-gt 80000]
then
echo "Large cache detected, moving Dalvik-cache to/cache"
If [!-d/cache/dalvik-cache]
then
BusyBox rm-rf/cache/dalvik-cache/data/dalvik-cache
Mkdir/cache/dalvik-cache/data/dalvik-cache
Fi
BusyBox chown 1000:1000/cache/dalvik-cache
busybox chmod 0771/cache/dalvik-cache
# bind Mount Dalvik-cache so we can still boot without the SDcard
busybox mount-o bind/cache/dalvik-cache/data/dalvik-cache
Bu Sybox chown 1000:1000/data/dalvik-cache
busybox chmod 0771/data/dalvik-cache
Else
Echo Small Cache detected , Dalvik-cache'll remain On/data "
Fi
15. Disable cell phone normalization sleep
Parameters:
mount-t Debugfs none/sys/kernel/debug Echo no_norm Alized_sleeper >/sys/kernel/debug/sched_features
16. OOM Group and precedence adjustment –supercharger
Reference URL: http://forum.xda-developers.com/showthread.php?t=99127
6 gps.conf (edit/system/etc/gps.conf requires root, you can use File Manager or other root explorer, if you do not have the file, create it yourself)
Speed up GPS positioning time and signal.
A) Asian NTP server (replace Europe for Asia)
Parameters:
ntp_server=europe.pool.ntp.org
Xtra_server_1=http://xtra1.gpsonextra.net/xtra.bin
Xtra_server_2=http://xtra2.gpsonextra.net/xtra.bin
Xtra_server_3=http://xtra3.gpsonextra.net/xtra.bin
b) A-gps SE SUPL optimized (better than Nokia's or Google's)
Parameters:
Supl_host=supl.sonyericsson.com supl_port=7275
Other Optimizations/Tips
1. Modify the Hosts file (block ads or climb stairs)
(The use of shielding ads before the hosts to think about meditation, and so let's do the free app of the author love why Ah!)
Address: Block AD hosts:
Http://www.mvps.org/winhelp2002/hosts.txt
http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts
2. Using CyanogenMOD's APN list file – is currently the most complete APN list. (We don't need that whole, pro ~)
Reference: System/etc/apns-conf.xml
3. Using Google's DNS server
Reference:
Open the resolv.conf (if the SYSTEM/ETC catalog wood has to build one yourself. Then add the following two lines:
NameServer 8.8.8.8
NameServer 8.8.4.4

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android system optimization

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.