Android system optimization

Source: Internet
Author: User
Tags nameserver

These are actually some practical tips for optimizing ROM. Think very much is still practical.

Build.prop (edit/system/build.prop file (requires root, can use File Manager or other root explorer)
Assuming that Build.prop has these parameters, you just need to change the number

1. Force the home program into memory.
Number of references:
Ro. Home_app_adj=1
2. Improve JPG quality to 100%
Number of references:
ro.media.enc.jpeg.quality=100
3. VM Virtual heap size; Increase RAM
Number of references:
dalvik.vm.heapsize=48m
4. Rendering the UI using the GPU
Number of references:
Debug.sf.hw=1
5. Reduce the delay that occurs after dialing
Number of references:
Ro.telephony.call_ring.delay=0
6. Improved sliding response
Number of references:
windowsmgr.max_events_per_sec=150
7. Battery optimization
Number of references:
wifi.supplicant_scan_interval=180
Pm.sleep_mode=1
Ro.ril.disable.power.collapse=0
8. Disable the Debug notification icon out of the status bar today
Number of references:
Persist.adb.notify=0
9. Improve Global touch screen response
Number of references:
Debug.performance.tuning=1
Video.accelerate.hw=1
10. Improve image and camera quality
Number of references:
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
One. (3G) Signal optimization
Number of references:
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
Number of references:
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.
Number of references:
Ro.lge.proximity.delay=25
Mot.proximity.delay=25
14. Fix the application failure.
Number of references:
Ro.kernel.android.checkjni=0
15. Do not wake the phone by pressing the Add/subtract key
Number of references:
Ro.config.hwfeature_wakeupkey=0
16. Force turn on Function key backlight when the screen is lit
Number of references:
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)
Number of references:
Debug.sf.nobootanimation=1
18. Other Optimizations
Number of references:
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 is suitable for LG model optimization (do not know what optimization, Wood has a rod machine)
Number of references:
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 folder, Wood has the words to create their own)
(ROM is required to have/SYSTEM/ETC/INIT.D folder, and need to busybox normal use.) Create a blank file, each of the first line of the file needs to have a #!/system/bin/sh, dragged into the/SYSTEM/ETC/INIT.D Then named like 77tweaks * (number, then name)
1. Strict Minfree handler optimization
Number of references:
echo "2048,3072,6144,15360,17920,20480″>/sys/module/lowmemorykiller/parameters/minfree
2. Network speed optimization
Number of references:
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
Number of references:
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
Number of references:
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
Number of references:
echo "500″>/proc/sys/vm/dirty_expire_centisecs
echo "1000″>/proc/sys/vm/dirty_writeback_centisecs
6. EXT4 Optimization (add I/O scheduling) (Requires/system,/cache,/data formatted partition EXT4))
A) removal of journalism
Number of references:
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
Number of references:
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 the cache size is added
Number of references:
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
Number of references:
echo "2048″>/sys/devices/virtual/bdi/179:0/read_ahead_kb;
9. Defrags Database files
Number of references:
For i in \
' Find/data-iname ' *.db "'
Do \
Sqlite3 $i ' VACUUM; ';
Done
9. Removal of Logger
Number of references:
Rm/dev/log/main
Ondemand governor (overclocking optimized)
Number of references:
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
Self-proactively change governor and I/O scheduling
A) I/O scheduling (best: MTD device –VR; EMMC device –sio) – The kernel that needs to be adapted
Number of references:
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.
Number of references:
echo "Governor-name-here" >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
12. Start your own active-zipalign apk
(Need zipalign binary, located in System/bin/zipalign, can refer to the following Web site to join)
Reference website:http://forum.xda-developers.com/showthread.php?t=860586
13. Process Resident Optimization
Reference website:
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 (assuming the partition is large enough) to expand the data partition
:
cachesize=$ (df-k/cache | tail-n1 | t R-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
Number of references:
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, be able to use File Manager or other root explorer, assuming you do not create this file yourself)
Speed up GPS positioning time and signal.
A) Asian NTP server (replace Europe for Asia)
Number of references:
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)
Number of references:
Supl_host=supl.sonyericsson.com supl_port=7275
Other Optimizations/Tips
1. Change 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 the most complete APN list right now. (We don't need that whole, pro ~)
References: System/etc/apns-conf.xml
3. Using Google ' s DNS server
References:
Open resolv.conf (assuming System/etc folder Wood has to build one on its own. Then add the following two lines:
NameServer 8.8.8.8
NameServer 8.8.4.4

Android system optimization

Related Article

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.