Scripts Builds
Basicamente um script é um componente de um programa que realiza uma tarefa automaticamente, ou então completa seu programa como, visuais diferentes e etc. Resumindo: é um arquivo que faz algumas modificações automaticamente, necessitando do seu auxilio..
OBS: Antes de adicionar estes scripts faça backup da sua ROM e seus arquivos. para evitar futuras dores de cabeça.
OBERSAÇÕES FINAIS: COLOQUE LINHAS POR LINHA RESPEITANDO TODOS OS SINAIS E LINHAS
Tutorial Root Explorer
1- ter root
2- download root explorer
3- abra o root explorer
4- vá na pasta system / build.prop
5- abra-o build.prop como editor de textos (Obs para poder editar os scripts o root explorer tem que está com a opção Mount R/O selecionada)
6- vamos lá.
scripts build.prop
Manter o Launcher na memória; evitando que ele feche.
ro.HOME_APP_ADJ=1
Melhora total na qualidade dos JPEGs - linha já existente, modificar.
1ro.media.enc.jpeg.quality=100
VM Heap; valor de memória virtual deslocada para o Dalvik. Use 16, 24, 32, 48 e 64. Cuidado!
dalvik.vm.heapsize=48m
Gerar a UI com a GPU; dá um descanso pra CPU usando a GPU pra criar a interface, como menus etc.
debug.sf.hw=1
Diminuir o atraso da discagem; tira o lag antes da chamada.
ro.telephony.call_ring.delay=0
Max Events; melhoras significativas na rolagem.
windowsmgr.max_events_per_sec=150
Scan de Wifi; poupa bateria aumentando o intervalo de scan.
wifi.supplicant_scan_interval=180
Permitir modo hibernação da bateria; poupa enorme de bateria.
pm.sleep_mode=1
ro.ril.disable.power.collapse=0
ro.ril.disable.power.collapse=0
Desativar aviso de Depuração USB.
persist.adb.notify=0
Aumentar a resposta de toque geral.
debug.performance.tuning=1
video.accelerate.hw=1
video.accelerate.hw=1
Aumentar a qualidade de gravação de fotografia e vídeo.
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
ro.media.enc.hprof.vid.bps=8000000
Ajustes do Sinal 3G; cuidado, pode causar problemas no 3G. Se causar, delete as linhas.
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
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
Ajustes de velocidade da internet; se parar de funcionar, delete as linhas.
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.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
Corrigir alguns problemas de aplicação.
ro.kernel.android.checkjni=0
Força as luzes dos botões (menu, home, voltar e pesquisa) acenderem quando a tela estiver ativa; não funcionou aqui. Mas em Motorolas, funciona.
ro.mot.buttonlight.timeout=0
Desativar a animação de boot; faz com que o telefone inicie mais rápido.
debug.sf.nobootanimation=1
Desabilitar menu de desligar na Lockscreen.
ro.config.hw_menu_unlockscreen=false
Desabilitar Dithering; diminui bem pouco a qualidade da imagem (bem pouco mesmo), mas melhora a fluidez do sistema.
persist.sys.use_dithering=0
Possíveis melhoras com 3D; dá uma diferençazinha.
ro.opengl.off=0
Desabilita "acordar" o aparelho com botões de volume.
ro.config.hwfeature_wakeupkey=0
Força aceleração por hardware; pode melhorar performance.
ro.config.disable_hw_accel=false
Desabilita atraso do toque nas chamadas.
ring.delay=0
Melhoras no Streaming; deixa o Youtube um pouco mais rápido pra carregar.
media.stagefright.enable-meta=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
media.stagefright.enable-record=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
media.stagefright.enable-record=true
SOMENTE PARA SONY ERICSSONS - Melhore o consumo de bateria (edite conforme for necessário)
ro.semc.batt.capacity=950
ro.semc.batt.test.consumption=150
ro.semc.batt.test.z_threshold=50
ro.semc.batt.test.min_level=60
ro.semc.batt.test.consumption=150
ro.semc.batt.test.z_threshold=50
ro.semc.batt.test.min_level=60
IMPORTANTE
ro.semc.batt.capacity
Em ro.semc.batt.capacity troque o valor pela capacidade da sua bateria. Esse valor fica na própria bateria (Ex: 1050mAh)
Melhora a qualidade das filmagens e da camera (NOTA: Experimental)
ro.media.capture.maxres=8m
ro.media.capture.fast.fps=4
ro.media.capture.slow.fps=120
ro.media.panorama.defres=3264x1840
ro.media.panorama.frameres=1280x720
ro.camcorder.videoModes=true
ro.media.enc.jpeg.quality=95
ro.media.capture.fast.fps=4
ro.media.capture.slow.fps=120
ro.media.panorama.defres=3264x1840
ro.media.panorama.frameres=1280x720
ro.camcorder.videoModes=true
ro.media.enc.jpeg.quality=95
Força o telefone a priorizar mais a GPU/CPU (só trocar gpu por cpu quando for conveniente)
debug.composite.type=gpu
Utilize a GPU quando quiser economia de CPU. Porém, use a CPU caso queira uma experiência lisinha, e sua GPU não seja muito forte. A CPU deixa mais liso, mas com uso da CPU (duur), enquanto a GPU economiza CPU, mas fica um pouco travado. Varia de aparelho pra aparelho.
Aumenta a velocidade do wi-fi(Pode dar bugs em alguns aparelhos...)
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
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
scripts Init.d
Veja se a sua rom suporta esse tipo de scripts
1- abra o root explorer
2- vá a pasta / system / etc / ”init.d” se o seu aparelho estiver este arquivo init.d é porque suporta. Senão, não suporta.
#!/system/bin/sh
Código:
**xxxxTroque "**" por dois números quaisquer e "xxxx" pelo nome do Script. Não coloque extensão txt!
Ex. de nome:
56SDBoost
Códigos para colocar:
KickAss Kernel: Dá grandes melhoras no kernel.
KickAss Kernel: Dá grandes melhoras no kernel.
echo "";
if [ ! "`id | grep =0`" ]; then
echo " You are NOT running this script as root...";
echo "";
echo " ...No SuperUser for you!!";
echo "";
echo " ...Please Run as Root and try again...";
echo "";
exit 69;
fi;
busybox mount -o remount,rw /system 2>/dev/null;
for m in /dev/block/mtdblock*;
do
busybox mount -o remount,rw $m /system 2>/dev/null;
done;
busybox sysctl -p;
busybox mount -t debugfs none /sys/kernel/debug 2>/dev/null;
echo NO_NORMALIZED_SLEEPER > /sys/kernel/debug/sched_features 2>/dev/null;
busybox umount /sys/kernel/debug;
busybox sysctl -e -w vm.oom_kill_allocating_task=0;
busybox sysctl -e -w vm.panic_on_oom=0;
busybox sysctl -e -w vm.dirty_background_ratio=50;
busybox sysctl -e -w vm.dirty_ratio=70;
busybox sysctl -e -w vm.min_free_kbytes=4096;
busybox sysctl -e -w vm.vfs_cache_pressure=50;
busybox sysctl -e -w vm.overcommit_memory=1;
busybox sysctl -e -w vm.min_free_order_shift=4;
busybox sysctl -e -w vm.laptop_mode=0;
busybox sysctl -e -w vm.block_dump=0;
busybox sysctl -e -w vm.dirty_writeback_centisecs=2000;
busybox sysctl -e -w vm.dirty_expire_centisecs=1000;
busybox sysctl -e -w kernel.panic=0;
busybox sysctl -e -w kernel.panic_on_oops=1;
busybox sysctl -e -w kernel.msgmni=2048;
busybox sysctl -e -w kernel.msgmax=64000;
busybox sysctl -e -w kernel.shmmni=4096;
busybox sysctl -e -w kernel.shmall=2097152;
busybox sysctl -e -w kernel.shmmax=268435456;
busybox sysctl -e -w kernel.sem='500 512000 64 2048';
busybox sysctl -e -w kernel.sched_features=24189;
busybox sysctl -e -w kernel.hung_task_timeout_secs=30;
busybox sysctl -e -w kernel.sched_latency_ns=18000000;
busybox sysctl -e -w kernel.sched_min_granularity_ns=1500000;
busybox sysctl -e -w kernel.sched_wakeup_granularity_ns=3000000;
busybox sysctl -e -w kernel.sched_compat_yield=1;
busybox sysctl -e -w kernel.sched_shares_ratelimit=256000;
busybox sysctl -e -w kernel.sched_child_runs_first=0;
busybox sysctl -e -w kernel.threads-max=5000;
busybox sysctl -e -w fs.lease-break-time=10;
busybox sysctl -e -w fs.file-max=65536;
for k in $(busybox mount | cut -d " " -f3);
do
busybox sync;
busybox mount -o remount,noatime $k 2>/dev/null;
done;
busybox mount -o remount,ro /system 2>/dev/null;
for m in /dev/block/mtdblock*;
do
busybox mount -o remount,ro $m /system 2>/dev/null;
done;
if [ ! "`id | grep =0`" ]; then
echo " You are NOT running this script as root...";
echo "";
echo " ...No SuperUser for you!!";
echo "";
echo " ...Please Run as Root and try again...";
echo "";
exit 69;
fi;
busybox mount -o remount,rw /system 2>/dev/null;
for m in /dev/block/mtdblock*;
do
busybox mount -o remount,rw $m /system 2>/dev/null;
done;
busybox sysctl -p;
busybox mount -t debugfs none /sys/kernel/debug 2>/dev/null;
echo NO_NORMALIZED_SLEEPER > /sys/kernel/debug/sched_features 2>/dev/null;
busybox umount /sys/kernel/debug;
busybox sysctl -e -w vm.oom_kill_allocating_task=0;
busybox sysctl -e -w vm.panic_on_oom=0;
busybox sysctl -e -w vm.dirty_background_ratio=50;
busybox sysctl -e -w vm.dirty_ratio=70;
busybox sysctl -e -w vm.min_free_kbytes=4096;
busybox sysctl -e -w vm.vfs_cache_pressure=50;
busybox sysctl -e -w vm.overcommit_memory=1;
busybox sysctl -e -w vm.min_free_order_shift=4;
busybox sysctl -e -w vm.laptop_mode=0;
busybox sysctl -e -w vm.block_dump=0;
busybox sysctl -e -w vm.dirty_writeback_centisecs=2000;
busybox sysctl -e -w vm.dirty_expire_centisecs=1000;
busybox sysctl -e -w kernel.panic=0;
busybox sysctl -e -w kernel.panic_on_oops=1;
busybox sysctl -e -w kernel.msgmni=2048;
busybox sysctl -e -w kernel.msgmax=64000;
busybox sysctl -e -w kernel.shmmni=4096;
busybox sysctl -e -w kernel.shmall=2097152;
busybox sysctl -e -w kernel.shmmax=268435456;
busybox sysctl -e -w kernel.sem='500 512000 64 2048';
busybox sysctl -e -w kernel.sched_features=24189;
busybox sysctl -e -w kernel.hung_task_timeout_secs=30;
busybox sysctl -e -w kernel.sched_latency_ns=18000000;
busybox sysctl -e -w kernel.sched_min_granularity_ns=1500000;
busybox sysctl -e -w kernel.sched_wakeup_granularity_ns=3000000;
busybox sysctl -e -w kernel.sched_compat_yield=1;
busybox sysctl -e -w kernel.sched_shares_ratelimit=256000;
busybox sysctl -e -w kernel.sched_child_runs_first=0;
busybox sysctl -e -w kernel.threads-max=5000;
busybox sysctl -e -w fs.lease-break-time=10;
busybox sysctl -e -w fs.file-max=65536;
for k in $(busybox mount | cut -d " " -f3);
do
busybox sync;
busybox mount -o remount,noatime $k 2>/dev/null;
done;
busybox mount -o remount,ro /system 2>/dev/null;
for m in /dev/block/mtdblock*;
do
busybox mount -o remount,ro $m /system 2>/dev/null;
done;
Limpar a RAM inicial pelos processos de inicialização e etc.
/bin/mount -o remount,rw /
/bin/rm -r /voodoo/root/usr/*
/bin/mount -o remount,ro /
/bin/rm -r /voodoo/root/usr/*
/bin/mount -o remount,ro /
Limpeza de cache toda vez que iniciar o aparelho
rm -f /cache/*.apk
rm -f /cache/*.tmp
rm -f /data/dalvik-cache/*.apk
rm -f /data/dalvik-cache/*.tmp
rm -f /cache/*.tmp
rm -f /data/dalvik-cache/*.apk
rm -f /data/dalvik-cache/*.tmp
if [ -e /data/system/userbehavior.db ]
then
rm -f /data/system/userbehavior.db
fi
if [ -d /data/system/usagestats ]
then
chmod 400 /data/system/usagestats
fi
then
chmod 400 /data/system/usagestats
fi
if [ -d /data/system/appusagestats ]
then
chmod 400 /data/system/appusagestats
fi
then
chmod 400 /data/system/appusagestats
fi
if [ -e /dev/log/main ]
then
rm -f /dev/log/main
fi
Melhorando a qualidade de vídeo do aparelho
setprop ro.media.enc.jpeg.quality=90
setprop dalvik.vm.heapsize=48m
setprop ro.telephony.call_ring.delay=800
setprop debug.performance.tuning=1
setprop ro.ril.disable.power.collapse=0
setprop pm.sleep_mode=1
setprop video.accelerate.hw=1
setprop windowsmgr.max_events_per_sec=150
setprop ro.ril.disable.power.collapse=1
setprop wifi.supplicant_scan_interval=150
setprop dalvik.vm.heapsize=48m
setprop ro.telephony.call_ring.delay=800
setprop debug.performance.tuning=1
setprop ro.ril.disable.power.collapse=0
setprop pm.sleep_mode=1
setprop video.accelerate.hw=1
setprop windowsmgr.max_events_per_sec=150
setprop ro.ril.disable.power.collapse=1
setprop wifi.supplicant_scan_interval=150
Melhorar sensibilidade do Touchscreen
echo 7035 > /sys/class/touch/switch/set_touchscreen;
echo 8002 > /sys/class/touch/switch/set_touchscreen;
echo 11000 > /sys/class/touch/switch/set_touchscreen;
echo 13060 > /sys/class/touch/switch/set_touchscreen;
echo 14005 > /sys/class/touch/switch/set_touchscreen;
echo 8002 > /sys/class/touch/switch/set_touchscreen;
echo 11000 > /sys/class/touch/switch/set_touchscreen;
echo 13060 > /sys/class/touch/switch/set_touchscreen;
echo 14005 > /sys/class/touch/switch/set_touchscreen;
Alguns tweaks básicos para melhora na bateria
echo "2000" > /proc/sys/vm/dirty_writeback_centisecs
echo "1000" > /proc/sys/vm/dirty_expire_centisecs
Tweaks para deixar o kernel scheduler menos agressivo
Código: [Selecionar]
echo 20000000 > /proc/sys/kernel/sched_latency_ns
echo 2500000 > /proc/sys/kernel/sched_wakeup_granularity_ns
echo 1000000 > /proc/sys/kernel/sched_min_granularity_ns
echo "1000" > /proc/sys/vm/dirty_expire_centisecs
Tweaks para deixar o kernel scheduler menos agressivo
Código: [Selecionar]
echo 20000000 > /proc/sys/kernel/sched_latency_ns
echo 2500000 > /proc/sys/kernel/sched_wakeup_granularity_ns
echo 1000000 > /proc/sys/kernel/sched_min_granularity_ns
Boost no SD (aumenta o cache dele, melhorando a leitura e velocidades) (NOTA: Altere o valor "2048" se quiser. Pode colocar 128, 1024, 2048, 3072 e 4096)
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
then
/system/xbin/echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
fi;
/system/xbin/echo "2048" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
fi;
DDTweaks (Melhorando bateria, internet e outros)
#
# Copyright (c) 2011 Leonard Luangga
# Copyright (c) 2011 Leonard Luangga
#internet speed tweaks
echo 0 > /proc/sys/net/ipv4/tcp_timestamps;
echo 0 > /proc/sys/net/ipv4/tcp_tw_recycle;
echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse;
echo 1 > /proc/sys/net/ipv4/tcp_sack;
echo 1 > /proc/sys/net/ipv4/tcp_window_scaling;
echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes;
echo 20 > /proc/sys/net/ipv4/tcp_keepalive_intvl;
echo 1800 > /proc/sys/net/ipv4/tcp_keepalive_time;
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;
echo 0 > /proc/sys/net/ipv4/tcp_timestamps;
echo 0 > /proc/sys/net/ipv4/tcp_tw_recycle;
echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse;
echo 1 > /proc/sys/net/ipv4/tcp_sack;
echo 1 > /proc/sys/net/ipv4/tcp_window_scaling;
echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes;
echo 20 > /proc/sys/net/ipv4/tcp_keepalive_intvl;
echo 1800 > /proc/sys/net/ipv4/tcp_keepalive_time;
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;
#battery tweaks (sleepers)
mount -t debugfs none /sys/kernel/debug
echo NO_NEW_FAIR_SLEEPERS > /sys/kernel/debug/sched_features;
echo NO_NORMALIZED_SLEEPERS > /sys/kernel/debug/sched_features;
umount /sys/kernel/debug
if [ -e /proc/sys/kernel/sched_min_granularity_ns ]
then
echo 200000 > /proc/sys/kernel/sched_min_granularity_ns;
fi
if [ -e /proc/sys/kernel/sched_latency_ns ]
then
echo 400000 > /proc/sys/kernel/sched_latency_ns;
fi
LIif [ -e /proc/sys/kernel/sched_wakeup_granularity_ns ]
then
echo 100000 > /proc/sys/kernel/sched_wakeup_granularity_ns;
fi
mount -t debugfs none /sys/kernel/debug
echo NO_NEW_FAIR_SLEEPERS > /sys/kernel/debug/sched_features;
echo NO_NORMALIZED_SLEEPERS > /sys/kernel/debug/sched_features;
umount /sys/kernel/debug
if [ -e /proc/sys/kernel/sched_min_granularity_ns ]
then
echo 200000 > /proc/sys/kernel/sched_min_granularity_ns;
fi
if [ -e /proc/sys/kernel/sched_latency_ns ]
then
echo 400000 > /proc/sys/kernel/sched_latency_ns;
fi
LIif [ -e /proc/sys/kernel/sched_wakeup_granularity_ns ]
then
echo 100000 > /proc/sys/kernel/sched_wakeup_granularity_ns;
fi
if [ -e /proc/sys/kernel/hung_task_timeout_secs ]
then
echo 45 > /proc/sys/kernel/hung_task_timeout_secs;s
#(busybox expr `cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency` \* 750 / 1000);
#echo $SAMPLING_RATE > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
#echo 10000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
echo 70 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold;
then
echo 45 > /proc/sys/kernel/hung_task_timeout_secs;s
#(busybox expr `cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency` \* 750 / 1000);
#echo $SAMPLING_RATE > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
#echo 10000 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
echo 70 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold;
OBS: Antes de adicionar estes scripts faça backup da sua ROM e seus arquivos. para evitar futuras dores de cabeça.
OBERSAÇÕES FINAIS: COLOQUE LINHAS POR LINHA RESPEITANDO TODOS OS SINAIS E LINHAS
creditos : Android X
Nenhum comentário:
Postar um comentário