Professional Documents
Culture Documents
/system/bin/sh
# Copyright (C) 2016 Paget96
# Big thanks for our legend zeppelinrox
# Thanks to Google, xda and to all users who contribute
#
# L SPEED V4.3.3 VECTOR by Paget96
#
ver="4.3.3"
#
# 11-JAN-2016
#
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
if [ -e /system/bin/busybox ]; then
busybox chmod 111 /system/bin/busybox
elif [ -e /system/xbin/busybox ]; then
busybox chmod 111 /system/xbin/busybox
fi
if [ ! -d "/data/local/busybox*/xbin" ]; then export "PATH"=$PATH:/system/xbin:/
sbin:/vendor/bin:/system/sbin:/system/bin
else export "PATH"=$PATH:/system/xbin:/sbin:/vendor/bin:/system/sbin:/system/bin
:$(busybox ls -d /data/local/busybox*/xbin 2>/dev/null)
fi 2>/dev/null
divider="==============================================="
timeblast="0.1"
timeshorter="0.5"
timeshort="1"
timelong="2"
timelonger="5"
init="/system/etc/init.d" 2>/dev/null
core="/system/L_SPEED" 2>/dev/null
backup="/sdcard/LS_backup" 2>/dev/null
bb1="/system/bin/busybox" 2>/dev/null
bb2="/system/xbin/busybox" 2>/dev/null
bb_down="https://play.google.com/store/apps/details?id=stericson.busybox"
bb_down_flash="http://forum.xda-developers.com/showthread.php?t=3219431"
thread="http://forum.xda-developers.com/android/software-hacking/tweak-l-speed-v
1-0-02-02-2015-t3020138"
donation="http://forum.xda-developers.com/donatetome.php?u=5514152"
bbver=$(busybox | busybox head -n 1 | busybox awk '{print $1,$2}') 2>/dev/null
sestat=$(getenforce) 2>/dev/null
id="$(id)"; id="${id#*=}"; id="${id%%\(*}"; id="${id%% *}"
if [ "$id" != "0" ] && [ "$id" != "root" ]; then
busybox sleep $timeshort
busybox echo ""
busybox echo ""
busybox echo "
You don't have ROOT..."
busybox echo "
Please type su first (terminal emulator)"
busybox echo "
Enable run as ROOT (script manager)"
do
busybox rm -rf $file 2>/dev/null
done
#
#
# Init.d enabler
#
#
#
busybox cat >> $core/LS00Init_d.sh <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your op
tion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
/system/xbin/sysinit
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Init_d.sh
busybox chown 0:0 $core/LS00Init_d.sh
if [ -f /system/su.d/LS00init_d.sh ]; then
busybox rm -rf /system/su.d/LS00init_d.sh
busybox cp -f $core/LS00Init_d.sh /system/su.d/LS00init_d.sh
busybox chmod 755 /system/su.d/LS00init_d.sh
busybox chown 0:2000 /system/su.d/LS00init_d.sh
elif [ -f /system/etc/install-recovery-2.sh ]; then
busybox rm -rf /system/etc/install-recovery-2.sh
busybox cp -f $core/LS00Init_d.sh /system/etc/install-recovery-2.sh
fi
#
#
# LSPEED Status
#
#
#
busybox cat >> $core/LS00LSPEED <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
busybox mkdir -p /tmp
busybox chmod 755 /tmp
LS=/tmp/LSPEED.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox touch \$LS
busybox echo "L SPEED dummy file" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00LSPEED
-o
-o
-o
-o
remount,ro
remount,ro
remount,ro
remount,ro
/ 2>/dev/null
/ / 2>/dev/null
rootfs 2>/dev/null
/system 2>/dev/null
/system 2>/dev/null
/ 2>/dev/null
/ / 2>/dev/null
rootfs 2>/dev/null
/system 2>/dev/null
/system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00MCPS
busybox chown 0:0 $core/LS00MCPS
#
#
# CPU Optimizer
#
#
#
busybox cat >> $core/LS00CPU_Optimizer <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00CPU_Optimizer.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Optimizing CPU.." | busybox tee -a \$LS
# CPU_Optimizer
if [ -e /dev/cpuctl/cpu.shares ]; then
busybox echo "1024" > /dev/cpuctl/cpu.shares
fi;
if [ -e /dev/cpuctl/cpu.rt_runtime_us ]; then
busybox echo "800000" > /dev/cpuctl/cpu.rt_runtime_us
fi;
if [ -e /dev/cpuctl/cpu.rt_period_us ]; then
busybox echo "1000000" > /dev/cpuctl/cpu.rt_period_us
fi;
# 6.0%
if [ -e
busybox
fi;
if [ -e
busybox
fi;
if [ -e
busybox
fi;
/dev/cpuctl/bg_non_interactive/cpu.shares ]; then
echo "62" > /dev/cpuctl/bg_non_interactive/cpu.shares
/dev/cpuctl/bg_non_interactive/cpu.rt_runtime_us ]; then
echo "700000" > /dev/cpuctl/bg_non_interactive/cpu.rt_runtime_us
/dev/cpuctl/bg_non_interactive/cpu.rt_runtime_us ]; then
echo "1000000" > /dev/cpuctl/bg_non_interactive/cpu.rt_period_us
busybox
busybox
busybox
busybox
mount
mount
mount
mount
-o
-o
-o
-o
remount,rw
remount,rw
remount,rw
remount,rw
/ / 2>/dev/null
rootfs 2>/dev/null
/system 2>/dev/null
/system /system 2>/dev/null
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
rm
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
-f
/cache/*.apk 2>/dev/null
/cache/*.tmp 2>/dev/null
/cache/*.log 2>/dev/null
/cache/*.txt 2>/dev/null
/cache/recovery/* 2>/dev/null
/data/*.log 2>/dev/null
/data/*.txt 2>/dev/null
/data/anr/*.log 2>/dev/null
/data/anr/*.txt 2>/dev/null
/data/backup/pending/*.tmp 2>/dev/null
/data/cache/*.* 2>/dev/null
/data/dalvik-cache/*.apk 2>/dev/null
/data/dalvik-cache/*.tmp 2>/dev/null
/data/dalvik-cache/*.log 2>/dev/null
/data/dalvik-cache/*.txt 2>/dev/null
/data/data/*.log 2>/dev/null
/data/data/*.txt 2>/dev/null
/data/log/*.log 2>/dev/null
/data/log/*.txt 2>/dev/null
/data/local/*.apk 2>/dev/null
/data/local/*.log 2>/dev/null
/data/local/*.txt 2>/dev/null
/data/local/tmp/*.log 2>/dev/null
/data/local/tmp/*.txt 2>/dev/null
/data/last_alog/*.log 2>/dev/null
/data/last_alog/*.txt 2>/dev/null
/data/last_kmsg/*.log 2>/dev/null
/data/last_kmsg/*.txt 2>/dev/null
/data/mlog/* 2>/dev/null
/data/tombstones/*.log 2>/dev/null
/data/tombstones/*.txt 2>/dev/null
/data/system/*.log 2>/dev/null
/data/system/*.txt 2>/dev/null
/data/system/dropbox/*.log 2>/dev/null
/data/system/dropbox/*.txt 2>/dev/null
/data/system/usagestats/*.log 2>/dev/null
/data/system/usagestats/*.txt 2>/dev/null
export sampling_rate=10000
export up_threshold=80
busybox echo "memory cleaner--------[OK]" | busybox tee -a \$LS
for file in /data/anr/*.*
do
if [ -e "\$file" ]
then
busybox echo "-anr not cleaned" | busybox tee -a \$LS
else
busybox echo "-anr cleaned" | busybox tee -a \$LS
fi
done
for file in /data/local/tmp/*.*
do
if [ -e "\$file" ]
then
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Seeder.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating light seeder profile.." | busybox tee -a \$LS
busybox sysctl -e -w kernel.random.read_wakeup_threshold=128
busybox sysctl -e -w kernel.random.write_wakeup_threshold=256
busybox sleep 1
if grep "128" proc/sys/kernel/random/read_wakeup_threshold; then
busybox echo "Light seeder profile is activated.." | busybox tee -a \$LS
else
busybox echo "Light seeder profile is not activated.." | busybox tee -a \$LS
fi
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Seeder_Light
-o
-o
-o
-o
-o
remount,ro
remount,ro
remount,ro
remount,ro
remount,ro
/ 2>/dev/null
/ / 2>/dev/null
rootfs 2>/dev/null
/system 2>/dev/null
/system /system 2>/dev/null
busybox
busybox
busybox
busybox
busybox
mount
mount
mount
mount
mount
-o
-o
-o
-o
-o
remount,ro
remount,ro
remount,ro
remount,ro
remount,ro
/ 2>/dev/null
/ / 2>/dev/null
rootfs 2>/dev/null
/system 2>/dev/null
/system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Seeder_Enlarger
busybox chown 0:0 $core/LS00Seeder_Enlarger
#
#
# Seeder Moderate
#
#
#
busybox cat >> $core/LS00Seeder_Moderate <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Seeder.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating moderate seeder profile.." | busybox tee -a \$LS
busybox sysctl -e -w kernel.random.read_wakeup_threshold=1366
busybox sysctl -e -w kernel.random.write_wakeup_threshold=2048
busybox sleep 1
if grep "1366" /proc/sys/kernel/random/read_wakeup_threshold; then
busybox echo "Moderate seeder profile is activated.." | busybox tee -a \$LS
else
busybox echo "Moderate seeder profile is not activated.." | busybox tee -a \$LS
fi
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Seeder_Moderate
busybox chown 0:0 $core/LS00Seeder_Moderate
#
#
# Seeder Aggressive
#
#
#
busybox cat >> $core/LS00Seeder_Aggressive <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Seeder.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating aggressive seeder profile.." | busybox tee -a \$LS
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log " | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Tweaking minfree, cost & debug values..." | busybox tee -a \$LS
# Cost
if [ -e /sys/module/lowmemorykiller/parameters/cost ]; then
busybox chmod 644 /sys/module/lowmemorykiller/parameters/cost
busybox echo "64" > /sys/module/lowmemorykiller/parameters/cost
fi
# Minfree Values
RAM=\$((\$(busybox awk '/MemTotal/{print \$2}' /proc/meminfo)/1024))
lmk1=\$((RAM*2*1024/100/4));
lmk2=\$((RAM*3*1024/100/4));
lmk3=\$((RAM*4*1024/100/4));
lmk4=\$((RAM*5*1024/100/4));
lmk5=\$((RAM*6*1024/100/4));
lmk6=\$((RAM*7*1024/100/4));
busybox chmod 644 /sys/module/lowmemorykiller/parameters/minfree
busybox echo "\$lmk1,\$lmk2,\$lmk3,\$lmk4,\$lmk5,\$lmk6" > /sys/module/lowmemory
killer/parameters/minfree
busybox echo "" | busybox tee -a \$LS
busybox echo "Multitasking RAM manager for \$RAM mb devices successfully applied
.." | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00RAM_Manager_MT
busybox chown 0:0 $core/LS00RAM_Manager_MT
#
#
# Ram Manager Balanced
#
#
#
busybox cat >> $core/LS00RAM_Manager_BL <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
lmk3=\$((RAM*6*1024/100/4));
lmk4=\$((RAM*10*1024/100/4));
lmk5=\$((RAM*14*1024/100/4));
lmk6=\$((RAM*15*1024/100/4));
busybox chmod 644 /sys/module/lowmemorykiller/parameters/minfree
busybox echo "\$lmk1,\$lmk2,\$lmk3,\$lmk4,\$lmk5,\$lmk6" > /sys/module/lowmemory
killer/parameters/minfree
busybox echo "" | busybox tee -a \$LS
busybox echo "Gaming RAM manager for \$RAM mb devices successfully applied.." |
busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00RAM_Manager_GM
busybox chown 0:0 $core/LS00RAM_Manager_GM
#
#
# OOM Killer Enabled
#
#
#
busybox cat >> $core/LS00OOM_Enabled <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00OOM_Killer.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating OOM killer.." | busybox tee -a \$LS
busybox sysctl -e -w vm.oom_dump_tasks=1
busybox sysctl -e -w vm.oom_kill_allocating_task=1
busybox echo "OOM killer is activated.." | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00OOM_Enabled
busybox chown 0:0 $core/LS00OOM_Enabled
#
#
# OOM Killer Disabled
#
#
#
busybox cat >> $core/LS00OOM_Disabled <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00OOM_Killer.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Deactivating OOM killer.." | busybox tee -a \$LS
busybox sysctl -e -w vm.oom_dump_tasks=0
busybox sysctl -e -w vm.oom_kill_allocating_task=0
busybox echo "OOM killer is deactivated.." | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00OOM_Disabled
busybox chown 0:0 $core/LS00OOM_Disabled
#
#
# Cache Reclaiming Lesser
#
#
#
busybox cat >> $core/LS00CR_Lesser <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
-o
-o
-o
-o
-o
remount,rw
remount,rw
remount,rw
remount,rw
remount,rw
/ 2>/dev/null
/ / 2>/dev/null
rootfs 2>/dev/null
/system 2>/dev/null
/system /system 2>/dev/null
busybox
busybox
busybox
busybox
busybox
mount
mount
mount
mount
mount
-o
-o
-o
-o
-o
remount,rw
remount,rw
remount,rw
remount,rw
remount,rw
/ 2>/dev/null
/ / 2>/dev/null
rootfs 2>/dev/null
/system 2>/dev/null
/system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00CR.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Less cache reclaiming activating" | busybox tee -a \$LS
busybox chmod 644 /proc/sys/vm/*
busybox sysctl -e -w vm.vfs_cache_pressure=70
busybox echo "" | busybox tee -a \$LS
busybox echo "Less cache reclaiming is activated" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00CR_Less
busybox chown 0:0 $core/LS00CR_Less
#
#
# Cache Reclaiming x2
#
#
#
busybox cat >> $core/LS00CR_x2 <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
-w
-w
-w
-w
fs.lease-break-time=8
fs.inotify.max_queued_events=32768
fs.inotify.max_user_instances=256
fs.inotify.max_user_watches=16384
busybox echo "File system parameters are updated" | busybox tee -a \$LS
mem=\$((\$(busybox awk '/MemTotal/{print \$2}' /proc/meminfo)))
MFK=\$((mem*3/1024))
busybox
busybox
busybox
busybox
busybox
busybox
busybox
chmod 644
sysctl -w
sysctl -w
sysctl -w
sysctl -w
sysctl -w
sysctl -w
/proc/sys/vm/*
vm.dirty_expire_centisecs=500
vm.dirty_writeback_centisecs=3000
vm.block_dump=0
vm.laptop_mode=0
vm.min_free_kbytes=\$MFK
vm.min_free_order_shift=4
-o
-o
-o
-o
remount,rw
remount,rw
remount,rw
remount,rw
/ 2>/dev/null
/ / 2>/dev/null
rootfs 2>/dev/null
/system 2>/dev/null
/system 2>/dev/null
/ 2>/dev/null
/ / 2>/dev/null
rootfs 2>/dev/null
/system 2>/dev/null
/system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Kernel_Tweaks.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating heavy kernel tweaks.." | busybox tee -a \$LS
# Kernel_tweaks
busybox sysctl -w
busybox sysctl -w
busybox sysctl -w
busybox sysctl -w
busybox sysctl -w
busybox sysctl -w
busybox sysctl -w
if [ -e
busybox
fi
if grep
busybox
else
busybox
fi
kernel.msgmni=32768
kernel.msgmax=8192
kernel.msgmnb=16384
kernel.shmmni=4096
kernel.shmall=2097152
kernel.shmmax=268435456
kernel.sem='250 32000 100 128'
/sys/kernel/dyn_fsync/Dyn_fsync_active ]; then
echo "1" > /sys/kernel/dyn_fsync/Dyn_fsync_active
1 /sys/kernel/dyn_fsync/Dyn_fsync_active; then
echo "Dyn_fsync enabled" | busybox tee -a \$LS
echo "Dyn_fsync doesn't exist on your kernel" | busybox tee -a \$LS
#FS tweak
busybox sysctl
busybox sysctl
busybox sysctl
busybox sysctl
-w
-w
-w
-w
fs.lease-break-time=5
fs.inotify.max_queued_events=32768
fs.inotify.max_user_instances=256
fs.inotify.max_user_watches=16384
busybox echo "File system parameters are updated" | busybox tee -a \$LS
# VM tweak
mem=\$((\$(busybox awk '/MemTotal/{print \$2}' /proc/meminfo)))
MFK=\$((mem*3/1024))
busybox
busybox
busybox
busybox
busybox
busybox
busybox
busybox
busybox
busybox
busybox
if [ -e
else
busybox sysctl -w vm.swappiness=20
fi
busybox echo "" | busybox tee -a \$LS
busybox echo "Heavy kernel tweaks are activated" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Kernel_Tweaks_Heavy
busybox chown 0:0 $core/LS00Kernel_Tweaks_Heavy
#
#
# Net Tweaks (small buffers)
#
#
#
busybox cat >> $core/LS00Net_Small_Buffers <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Net_Tweaks_Buffers.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
net.tcp.buffersize.hspa 4096,32768,65536,4096,32768,65536
net.tcp.buffersize.umts 4096,32768,65536,4096,32768,65536
net.tcp.buffersize.edge 4096,32768,65536,4096,32768,65536
net.tcp.buffersize.gprs 4096,32768,65536,4096,32768,65536
net.tcp.buffersize.hsdpa 4096,32768,65536,4096,32768,65536
net.tcp.buffersize.wifi 4096,32768,65536,4096,32768,65536
net.tcp.buffersize.evdo_b 4096,32768,65536,4096,32768,65536
net.tcp.buffersize.lte 4096,32768,65536,4096,32768,65536
net.tcp.buffersize.default 4096,32768,12582912,4096,32768,12582912
busybox echo "Small net buffers are added" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Net_Small_Buffers
busybox chown 0:0 $core/LS00Net_Small_Buffers
#
#
# Net Tweaks (big buffers)
#
#
#
busybox cat >> $core/LS00Net_Big_Buffers <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
net.tcp.buffersize.default 6144,87380,110208,6144,16384,110208
net.tcp.buffersize.wifi 262144,524288,1048576,262144,524288,1048576
net.tcp.buffersize.lte 262144,524288,3145728,262144,524288,3145728
net.tcp.buffersize.hsdpa 6144,262144,1048576,6144,262144,1048576
net.tcp.buffersize.evdo_b 6144,262144,1048576,6144,262144,1048576
net.tcp.buffersize.umts 6144,87380,110208,6144,16384,110208
net.tcp.buffersize.hspa 6144,87380,262144,6144,16384,262144
net.tcp.buffersize.gprs 6144,8760,11680,6144,8760,11680
net.tcp.buffersize.edge 6144,26280,35040,6144,16384,35040
ro.ril.enable.fd.plmn.prefix 23402,23410,23411
busybox echo "Big net buffers are added" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Net_Big_Buffers
busybox chown 0:0 $core/LS00Net_Big_Buffers
#
#
# Net Tweaks (dns)
#
#
#
busybox cat >> $core/LS00Net_Tweaks_DNS <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
net.dns1 8.8.8.8
net.dns2 8.8.4.4
net.rmnet0.dns1 8.8.8.8
net.rmnet0.dns2 8.8.4.4
sysctl
sysctl
sysctl
sysctl
-w
-w
-w
-w
net.ipv4.conf.all.rp_filter=2
net.ipv4.conf.default.rp_filter=2
net.ipv4.tcp_max_syn_backlog=1024
net.ipv4.tcp_synack_retries=2
# IO Boost
#
#
#
busybox cat >> $core/LS00IO_Boost <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00IO_Boost.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating I/O boost tweak..." | busybox tee -a \$LS
for S in /sys/block/*
do
if [ -f \$S/queue/rq_affinity ]; then
busybox echo "1" > \$S/queue/rq_affinity
fi
if [ -f \$S/queue/rotational ]; then
busybox echo "0" > \$S/queue/rotational
fi
if [ -f \$S/queue/iostats ]; then
busybox echo "0" > \$S/queue/iostats
fi
if [ -f \$S/queue/nomerges ]; then
busybox echo "1" > \$S/queue/nomerges
fi
done
busybox echo "Queue parameters are changed" | busybox tee -a \$LS
busybox echo "" | busybox tee -a $LS
for S in \$MMC;
do
if [ -f \$S/queue/nr_requests ]; then
busybox echo "1024" > \$S/queue/nr_requests
fi
done
busybox echo "Queue parameters are changed" | busybox tee -a \$LS
busybox echo "" | busybox tee -a $LS
busybox echo "I/O extend queue is activated" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00IO_Queue
busybox chown 0:0 $core/LS00IO_Queue
#
#
# Debugging
#
#
#
busybox cat >> $core/LS00Debugging <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Debugging.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Disabling debugging.." | busybox tee -a \$LS
if [ -e /sys/module/lowmemorykiller/parameters/debug_level ]; then
busybox chmod 644 /sys/module/lowmemorykiller/parameters/debug_level
busybox echo "0" > /sys/module/lowmemorykiller/parameters/debug_level
fi
for parameter in /sys/module/*
do
if [ -e $parameter/parameters/debug_mask ]; then
busybox chmod 644 $parameter/parameters/debug_mask
busybox echo "0" > $parameter/parameters/debug_mask
fi
done
busybox echo "" | busybox tee -a \$LS
busybox echo "Debugging are disabled" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Debugging
busybox chown 0:0 $core/LS00Debugging
#
#
# Kernel Panic
#
#
#
busybox cat >> $core/LS00Kernel_Panic <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
-w
-w
-w
-w
vm.panic_on_oom=0
kernel.softlockup_panic=0
kernel.panic_on_oops=0
kernel.panic=0
2>/dev/null
/system 2>/dev/null
/ 2>/dev/null
/ / 2>/dev/null
rootfs 2>/dev/null
/system 2>/dev/null
/system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Zipalign.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Starting Automatic ZipAlign" | busybox tee -a \$LS
if [ -f /system/xbin/zipalign ]; then
ZIPALIGNDB=/data/zipalign.db
if [ ! -f \$ZIPALIGNDB ]; then
touch \$ZIPALIGNDB;
fi;
for DIR in /system/app /data/app /system/priv-app;
do
cd \$DIR;
for APK in *.apk */*.apk;
do
if [ \$APK -ot \$ZIPALIGNDB ] && [ \$(grep "\$DIR/\$APK" \$ZIPAL
IGNDB|wc -l) -gt 0 ]; then
echo "Already checked: \$DIR/\$APK" | tee -a \$LS;
else
ZIPCHECK=\$(/system/xbin/zipalign -c -v 4 \$APK | grep F
AILED | wc -l);
if [ \$ZIPCHECK == "1" ]; then
echo "Now aligning: \$DIR/\$APK" | tee -a \$LS;
/system/xbin/zipalign -f 4 \$APK /data/local/\$A
PK;
rc="\$?";
if [ \$rc -eq 0 ]; then
if [ -e "/data/local/\$APK" ]; then
cp -f -p "/data/local/\$APK" "\$
APK" | tee -a \$LS;
busybox rm -f "/data/local/\$APK
";
grep "\$DIR/\$APK" \$ZIPALIGNDB
> /dev/null || echo \$DIR/\$APK >> \$ZIPALIGNDB;
else
echo "ZipAligning \$APK Failed (
no output file)" | tee -a \$LS;
fi;
else
[ -f "/data/local/\$APK" ] && busybox rm
-f "/data/local/\$APK"
echo "ZipAligning \$APK Failed (rc: \$rc
)" | tee -a \$LS;
fi;
else
echo "Already aligned: \$DIR/\$APK" | tee -a \$L
S;
grep "\$DIR/\$APK" \$ZIPALIGNDB > /dev/null || e
cho $DIR/\$APK >> \$ZIPALIGNDB;
fi;
fi;
done;
done;
busybox touch \$ZIPALIGNDB
busybox echo "Automatic ZipAlign finished" | busybox tee -a \$LS
else
busybox echo "Your device doesn't have zipalign binary" | busybox tee -a \$LS
fi
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Zipalign
busybox chown 0:0 $core/LS00Zipalign
#
#
# Fast Charge
#
#
#
busybox cat >> $core/LS00Fast_Charge <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
enable com.google.android.gms/.update.SystemUpdateActivity
enable com.google.android.gms/.update.SystemUpdateService
enable com.google.android.gms/.update.SystemUpdateService\$ActiveReceiv
enable com.google.android.gms/.update.SystemUpdateService\$Receiver
enable com.google.android.gms/.update.SystemUpdateService\$SecretCodeRe
enable
enable
enable
enable
enable
com.google.android.gsf/.update.SystemUpdateActivity
com.google.android.gsf/.update.SystemUpdatePanoActivity
com.google.android.gsf/.update.SystemUpdateService
com.google.android.gsf/.update.SystemUpdateService\$Receiver
com.google.android.gsf/.update.SystemUpdateService\$SecretCodeRe
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00KGA.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox sleep 20
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Killing GAPPS processes.." | busybox tee -a \$LS
busybox
busybox
busybox
busybox
busybox
killall
killall
killall
killall
killall
-9
-9
-9
-9
-9
com.google.android.gms
com.google.android.gms.persistent
com.google.process.gapps
com.google.android.gsf
com.google.android.gsf.persistent
/sys/block/zram0/disksize ]; then
/sys/block/zram0/comp_algorithm ]; then
echo "1" > /sys/module/zswap/parameters/enabled
echo "\$algorithm" > /sys/block/zram0/comp_algorithm
swapoff /dev/block/zram0
echo "1" /sys/devices/virtual/block/zram0/reset
busybox
busybox
busybox
busybox
else
busybox
fi
ENFORCE_PROCESS_LIMIT false
MAX_SERVICE_INACTIVITY false
MIN_HIDDEN_APPS false
CONTENT_APP_IDLE_OFFSET false
EMPTY_APP_IDLE_OFFSET false
ACTIVITY_INACTIVITY_RESET_TIME false
MIN_RECENT_TASKS false
APP_SWITCH_DELAY_TIME false
PROC_START_TIMEOUT false
CPU_MIN_CHECK_DURATION false
GC_TIMEOUT false
SERVICE_TIMEOUT false
MIN_CRASH_INTERVAL false
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Voice_Call.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating better call quality..." | busybox tee -a \$LS
setprop ro.ril.enable.amr.wideband 1
busybox echo "" | busybox tee -a \$LS
busybox echo "Better call quality is activated" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Voice_Call
busybox chown 0:0 $core/LS00Voice_Call
#
#
# Blackscreen Issue
#
#
#
busybox cat >> $core/LS00Blackscreen <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Blackscreen.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating black screen issue fix.." | busybox tee -a \$LS
setprop ro.lge.proximity.delay 25
setprop mot.proximity.delay 25
busybox echo "" | busybox tee -a \$LS
busybox echo "Black screen issue fix is activated" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Blackscreen
busybox chown 0:0 $core/LS00Blackscreen
#
#
# Improve Battery
#
#
#
busybox cat >> $core/LS00Improve_Battery <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Improve_Battery.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating battery improvements..." | busybox tee -a \$LS
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
debug.sf.hw 1
ro.ril.power_collapse 0
ro.ril.disable.power.collapse 1
persist.sys.use_dithering 0
wifi.supplicant_scan_interval 180
power_supply.wakeup enable
power.saving.mode 1
ro.config.hw_power_saving 1
ro.config.hw_power_saving true
persist.radio.add_power_save 1
if [ -e /sys/module/tpd_setting/parameters/tpd_mode ]; then
busybox chmod 644 /sys/module/tpd_setting/parameters/tpd_mode
busybox echo "1" > /sys/module/tpd_setting/parameters/tpd_mode
elif [ -e /sys/module/hid_magicmouse/parameters/scroll_speed ]; then
busybox chmod 644 /sys/module/hid_magicmouse/parameters/scroll_speed
busybox echo "63" > /sys/module/hid_magicmouse/parameters/scroll_speed
fi
busybox echo "" | busybox tee -a \$LS
busybox echo "Better scrolling is enabled" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Scrolling
busybox chown 0:0 $core/LS00Scrolling
#
#
# Faster Boot
#
#
#
busybox cat >> $core/LS00Faster_Boot <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Faster_Boot.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating faster boot..." | busybox tee -a \$LS
setprop ro.config.hw_quickpoweron true
busybox echo "" | busybox tee -a \$LS
busybox echo "Faster boot is activated" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Faster_Boot
busybox chown 0:0 $core/LS00Faster_Boot
#
#
# Better Image Quality
#
#
#
busybox cat >> $core/LS00Image_Quality <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Image_Quality.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating better image quality..." | busybox tee -a \$LS
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
setprop
ro.media.enc.jpeg.quality 100
ro.media.enc.hprof.vid.fps 60
ro.media.enc.hprof.vid.bps 8000000
ro.media.capture.maxres 8m
ro.media.panorama.defres 3264x1840
ro.media.panorama.frameres 1280x720
ro.camcorder.videoModes true
ro.media.enc.hprof.vid.fps 60
ro.media.dec.aud.wma.enabled 1
ro.media.dec.vid.wmv.enabled 1
ro.media.cam.preview.fps 0
ro.media.capture.flash led
ro.media.capture.flashMinV 3300000
ro.media.capture.torchIntensity 40
ro.media.capture.flashIntensity 70
ro.media.capture.fast.fps 4
ro.media.capture.slow.fps 120
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
media.stagefright.enable-aac true
media.stagefright.enable-qcp true
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Liquid_UI.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating Liquid UI..." | busybox tee -a \$LS
setprop touch.pressure.scale 2
busybox echo "" | busybox tee -a \$LS
busybox echo "LiquidUI is activated" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Liquid_UI
busybox chown 0:0 $core/LS00Liquid_UI
#
#
# Disable Logcats
#
#
#
busybox cat >> $core/LS00Disable_Logcats <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Disable_Logcats.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Disabling logcats..." | busybox tee -a \$LS
setprop
busybox
setprop
setprop
setprop
setprop
setprop
logcat.live disable
rm -f /dev/log/main
debugtool.anrhistory 0
profiler.debugmonitor false
profiler.launch false
profiler.hung.dumpdobugreport false
persist.android.strictmode 0
EOF
busybox chmod 755 $core/LS00Disable_Logcats
busybox chown 0:0 $core/LS00Disable_Logcats
#
#
# Fast Dormancy
#
#
#
busybox cat >> $core/LS00Fast_Dormancy <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Fast_Dormancy.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a $\LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating fast dormancy..." | busybox tee -a \$LS
setprop ro.fast.dormancy 1
setprop ro.ril.fast.dormancy.rule 1
setprop persist.radio.data_no_toggle 1
busybox echo "" | busybox tee -a \$LS
busybox echo "Fast dormancy is activated" | busybox tee -a \$LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
2>/dev/null
/system 2>/dev/null
/ 2>/dev/null
/ / 2>/dev/null
rootfs 2>/dev/null
/system 2>/dev/null
/system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Misc_Tweaks
busybox chown 0:0 $core/LS00Misc_Tweaks
#
#
# Assertive Display
#
#
#
busybox cat >> $core/LS00Assertive_Display <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with t
his program. If not, see <http://www.gnu.org/licenses/>.
#=======================================================================#
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
LS=/system/L_SPEED/LOGS/LS00Assertive_Display.log
if [ -f \$LS ]; then
busybox rm \$LS;
fi;
busybox echo "# L Speed log" | busybox tee -a \$LS
busybox echo "" | busybox tee -a \$LS
busybox echo "Activating assertive display calibration..." | busybox tee -a \$LS
setprop ro.qcom.ad 1
setprop ro.qcom.ad.calib.data /system/etc/ad_calib.cfg
busybox echo "" | busybox tee -a \$LS
busybox echo "Assertive display calibration is activated..." | busybox tee -a \$
LS
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
EOF
busybox chmod 755 $core/LS00Assertive_Display
busybox chown 0:0 $core/LS00Assertive_Display
busybox cat >> $core/LS00ad_calib.cfg <<EOF
#
Assertive Display Calibration Output File Format
# Calibration config file consists of one or more sections. Each section is set
# of parameter values stored on one line each. Number of parameters (hence numbe
r
# of lines in each section is fixed. Order in which parameters are specified in
# given section is fixed as well.
# Comments are supported in configuration file to improve readability of
# calibration configuration parameters. Any line begining with '#' is considered
# as comment and will not be processed further.
# Blank lines are allowed and are ignored. They can be used to improve
# readability of assertive display calibration output file.
# Sections: Any line begining with '=' indicates start of new section in
# calibration output file. Sections, parameters which are part of section and
# order in which they will appear in calibration output file is kept outside
# scope of this documentation in order to have flexibility in development of
# assertive display calibration system. This information can be shared between
# APICAL and Qualcomm as part of assertive display bring ups on given platforms.
# There should not be any spaces betweetn '=' and section name.
# Version 1.0 of calibration output format supports following sections:
# version - Contains assertive display calibration output file format version
# init - Contains assertive display parameters which are independent of
#
assertive display mode
# config - Contains assertive display parameters which are dependent on specific
#
assertive display mode
# Each parameter for assertive display calibration is stored on new line. If
# parameter consists of more than one values (set of values), each value is
# separated by single space (' ') character. In version 1.0 of assertive
# display calibration output file format, all numerical values are in decimal
# unsigned integer format, limited by 32 bits. Range for values or valid value
# for given parameter is outside scope of this documentation. This information
# can be shared between APICAL and Qualcomm as part of assertive display bring
# ups on given platforms.
=version
1.0
# APICAL mode indepent initialization Params
=init
#asym lut
0 211 414 609 796 975 1148 1315 1475 1630 1779 1922 2061 2195 2325 2451 2572 269
0 2804 2915 3022 3126 3227 3325 3420 3513 3603 3691 3776 3859 3940 4019 4095
#color correction lut
255 278 302 326 350 374 398 422 446 470 494 517 541 565 589 613 637 661 684 708
732 755 779 803 826 850 874 897 921 945 968 992 1016
# i_control
7 70
# black lvl
0
# white lvl
1023
# variance
65
# limit amplitude
240
# i_dither
0
# slope max
60
# slope min
128
# dither control
5
# format
3
# autosize
0
# frame width
720
# frame height
1280
# logo vertical position
0
# logo horizontal position
0
# BL_linearity_LUT
0 16 32 48 64 80 96 112 128 145 161 177 193
353 369 385 401 418 434 450 466 482 498 514
674 691 707 723 739 755 771 787 803 819 835
996 1012 1028 1044 1060 1076 1092 1108 1124
253 1269 1285 1301 1317 1333 1349 1365 1381
510 1526 1542 1558 1574 1590 1606 1622 1638
766 1783 1799 1815 1831 1847 1863 1879 1895
023 2039 2056 2072 2088 2104 2120 2136 2152
280 2296 2312 2329 2345 2361 2377 2393 2409
537 2553 2569 2585 2602 2618 2634 2650 2666
794 2810 2826 2842 2858 2875 2891 2907 2923
051 3067 3083 3099 3115 3131 3148 3164 3180
308 3324 3340 3356 3372 3388 3404 3421 3437
565 3581 3597 3613 3629 3645 3661 3677 3694
822 3838 3854 3870 3886 3902 3918 3934 3950
079 4095
# BL_linearity_inverse_LUT
0 16 32 48 64 80 96 112 128 145 161 177 193
353 369 385 401 418 434 450 466 482 498 514
674 691 707 723 739 755 771 787 803 819 835
996 1012 1028 1044 1060 1076 1092 1108 1124
253 1269 1285 1301 1317 1333 1349 1365 1381
510 1526 1542 1558 1574 1590 1606 1622 1638
766 1783 1799 1815 1831 1847 1863 1879 1895
023 2039 2056 2072 2088 2104 2120 2136 2152
280 2296 2312 2329 2345 2361 2377 2393 2409
537 2553 2569 2585 2602 2618 2634 2650 2666
794 2810 2826 2842 2858 2875 2891 2907 2923
051 3067 3083 3099 3115 3131 3148 3164 3180
308 3324 3340 3356 3372 3388 3404 3421 3437
565 3581 3597 3613 3629 3645 3661 3677 3694 3710 3726 3742 3758 3774 3790 3806 3
822 3838 3854 3870 3886 3902 3918 3934 3950 3967 3983 3999 4015 4031 4047 4063 4
079 4095
# alpha
512
# BL_ATT
0 128 256 384 512 640 737 820 898 973 1047 1124 1204 1289 1379 1475 1575 1681 17
94 1912 2036 2167 2305 2450 2601 2760 2927 3101 3283 3473 3672 3879 4095
# ALS_offset
10000
# ALS_thresh
0.1
#APICAL mode specific configuration
=config
# mode
1
# ambient calib lut
0 2048 4096 6144 8192 10240 12288 14336 16384 18432 20480 22528 24576 26624 2867
2 30720 32768 34815 36863 38911 40959 43007 45055 47103 49151 51199 53247 55295
57343 59391 61439 63487 65535
# back_min
0
# back_max
4096
# backlight scale
4096
# ambient_light_min
0
# filter
1738 6
# calibration_abcd
12 95 0 0
#str limit
128
# temp filter recurs
5
# stabilization iterations
256
EOF
busybox chmod 755 $core/LS00ad_calib.cfg
busybox chown 0:0 $core/LS00ad_calib.cfg
#
#
# Boost binary
#
#
#
rm -rf /system/xbin/boost
busybox cat >> $core/LS00Boost <<EOF
#!/system/bin/sh
# Copyright (C) 2016 Paget96
#=======================================================================#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at your opt
ion) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
$init/LS00Cleaner ]; then
cp -f $core/LS00Cleaner $init/LS00Cleaner
chmod 755 $init/LS00Cleaner
chown 0:2000 $init/LS00Cleaner
$init/LS00Seeder_Light ]; then
cp -f $core/LS00Seeder_Light $init/LS00Seeder_Light
chmod 755 $init/LS00Seeder_Light
chown 0:2000 $init/LS00Seeder_Light
$init/LS00Seeder_Enlarger ]; then
cp -f $core/LS00Seeder_Enlarger $init/LS00Seeder_Enlarger
chmod 755 $init/LS00Seeder_Enlarger
chown 0:2000 $init/LS00Seeder_Enlarger
$init/LS00Seeder_Moderate ]; then
cp -f $core/LS00Seeder_Moderate $init/LS00Seeder_Moderate
chmod 755 $init/LS00Seeder_Moderate
chown 0:2000 $init/LS00Seeder_Moderate
$init/LS00Seeder_Aggressive ]; then
cp -f $core/LS00Seeder_Aggressive $init/LS00Seeder_Aggressive
chmod 755 $init/LS00Seeder_Aggressive
chown 0:2000 $init/LS00Seeder_Aggressive
$init/LS00RAM_Manager_MT ]; then
cp -f $core/LS00RAM_Manager_MT $init/LS00RAM_Manager_MT
chmod 755 $init/LS00RAM_Manager_MT
chown 0:2000 $init/LS00RAM_Manager_MT
$init/LS00RAM_Manager_BL ]; then
cp -f $core/LS00RAM_Manager_BL $init/LS00RAM_Manager_BL
chmod 755 $init/LS00RAM_Manager_BL
chown 0:2000 $init/LS00RAM_Manager_BL
$init/LS00RAM_Manager_GM ]; then
cp -f $core/LS00RAM_Manager_GM $init/LS00RAM_Manager_GM
chmod 755 $init/LS00RAM_Manager_GM
chown 0:2000 $init/LS00RAM_Manager_GM
$init/LS00OOM_Enabled ]; then
cp -f $core/LS00OOM_Enabled $init/LS00OOM_Enabled
chmod 755 $init/LS00OOM_Enabled
chown 0:2000 $init/LS00OOM_Enabled
$init/LS00OOM_Disabled ]; then
cp -f $core/LS00OOM_Disabled $init/LS00OOM_Disabled
chmod 755 $init/LS00OOM_Disabled
chown 0:2000 $init/LS00OOM_Disabled
$init/LS00CR_Lesser ]; then
cp -f $core/LS00CR_Lesser $init/LS00CR_Lesser
chmod 755 $init/LS00CR_Lesser
chown 0:2000 $init/LS00CR_Lesser
$init/LS00CR_Less ]; then
cp -f $core/LS00CR_Less $init/LS00CR_Less
chmod 755 $init/LS00CR_Less
chown 0:2000 $init/LS00CR_Less
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
$init/LS00CR_x2 ]; then
cp -f $core/LS00CR_x2 $init/LS00CR_x2
chmod 755 $init/LS00CR_x2
chown 0:2000 $init/LS00CR_x2
$init/S00Allocation_Medium ]; then
cp -f $core/S00Allocation_Medium $init/S00Allocation_Medium
chmod 755 $init/S00Allocation_Medium
chown 0:2000 $init/S00Allocation_Medium
$init/S00Allocation_Large ]; then
cp -f $core/S00Allocation_Large $init/S00Allocation_Large
chmod 755 $init/S00Allocation_Large
chown 0:2000 $init/S00Allocation_Large
$init/LS00Kernel_Tweaks_Light ]; then
cp -f $core/LS00Kernel_Tweaks_Light $init/LS00Kernel_Tweaks_Light
chmod 755 $init/LS00Kernel_Tweaks_Light
chown 0:2000 $init/LS00Kernel_Tweaks_Light
$init/LS00Kernel_Tweaks_Heavy ]; then
cp -f $core/LS00Kernel_Tweaks_Heavy $init/LS00Kernel_Tweaks_Heavy
chmod 755 $init/LS00Kernel_Tweaks_Heavy
chown 0:2000 $init/LS00Kernel_Tweaks_Heavy
$init/LS00Net_Small_Buffers ]; then
cp -f $core/LS00Net_Small_Buffers $init/LS00Net_Small_Buffers
chmod 755 $init/LS00Net_Small_Buffers
chown 0:2000 $init/LS00Net_Small_Buffers
$init/LS00Net_Big_Buffers ]; then
cp -f $core/LS00Net_Big_Buffers $init/LS00Net_Big_Buffers
chmod 755 $init/LS00Net_Big_Buffers
chown 0:2000 $init/LS00Net_Big_Buffers
$init/LS00Net_Tweaks_DNS ]; then
cp -f $core/LS00Net_Tweaks_DNS $init/LS00Net_Tweaks_DNS
chmod 755 $init/LS00Net_Tweaks_DNS
chown 0:2000 $init/LS00Net_Tweaks_DNS
$init/LS00Net_Protection ]; then
cp -f $core/LS00Net_Protection $init/LS00Net_Protection
chmod 755 $init/LS00Net_Protection
chown 0:2000 $init/LS00Net_Protection
$init/LS00Net_Tweaks_RIL ]; then
cp -f $core/LS00Net_Tweaks_RIL $init/LS00Net_Tweaks_RIL
chmod 755 $init/LS00Net_Tweaks_RIL
chown 0:2000 $init/LS00Net_Tweaks_RIL
$init/LS00IO_Boost ]; then
cp -f $core/LS00IO_Boost $init/LS00IO_Boost
chmod 755 $init/LS00IO_Boost
chown 0:2000 $init/LS00IO_Boost
$init/LS00IO_Queue ]; then
cp -f $core/LS00IO_Queue $init/LS00IO_Queue
chmod 755 $init/LS00IO_Queue
chown 0:2000 $init/LS00IO_Queue
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
$init/LS00Debugging ]; then
cp -f $core/LS00Debugging $init/LS00Debugging
chmod 755 $init/LS00Debugging
chown 0:2000 $init/LS00Debugging
$init/LS00Kernel_Panic ]; then
cp -f $core/LS00Kernel_Panic $init/LS00Kernel_Panic
chmod 755 $init/LS00Kernel_Panic
chown 0:2000 $init/LS00Kernel_Panic
$init/LS00Kernel_Sleepers ]; then
cp -f $core/LS00Kernel_Sleepers $init/LS00Kernel_Sleepers
chmod 755 $init/LS00Kernel_Sleepers
chown 0:2000 $init/LS00Kernel_Sleepers
$init/LS00KSM ]; then
cp -f $core/LS00KSM $init/LS00KSM
chmod 755 $init/LS00KSM
chown 0:2000 $init/LS00KSM
$init/LS00SD ]; then
cp -f $core/LS00SD $init/LS00SD
chmod 755 $init/LS00SD
chown 0:2000 $init/LS00SD
$init/LS00Zipalign ]; then
cp -f $core/LS00Zipalign $init/LS00Zipalign
chmod 755 $init/LS00Zipalign
chown 0:2000 $init/LS00Zipalign
$init/LS00Fast_Charge ]; then
cp -f $core/LS00Fast_Charge $init/LS00Fast_Charge
chmod 755 $init/LS00Fast_Charge
chown 0:2000 $init/LS00Fast_Charge
$init/LS00GSDF ]; then
cp -f $core/LS00GSDF $init/LS00GSDF
chmod 755 $init/LS00GSDF
chown 0:2000 $init/LS00GSDF
$init/LS00KGA ]; then
cp -f $core/LS00KGA $init/LS00KGA
chmod 755 $init/LS00KGA
chown 0:2000 $init/LS00KGA
$init/LS00KMS ]; then
cp -f $core/LS00KMS $init/LS00KMS
chmod 755 $init/LS00KMS
chown 0:2000 $init/LS00KMS
$init/LS00Zram ]; then
cp -f $core/LS00Zram $init/LS00Zram
chmod 755 $init/LS00Zram
chown 0:2000 $init/LS00Zram
$init/LS00Wifi_Sleeper ]; then
cp -f $core/LS00Wifi_Sleeper $init/LS00Wifi_Sleeper
chmod 755 $init/LS00Wifi_Sleeper
chown 0:2000 $init/LS00Wifi_Sleeper
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
$init/LS00Flag_Tuner ]; then
cp -f $core/LS00Flag_Tuner $init/LS00Flag_Tuner
chmod 755 $init/LS00Flag_Tuner
chown 0:2000 $init/LS00Flag_Tuner
$init/LS00Voice_Call ]; then
cp -f $core/LS00Voice_Call $init/LS00Voice_Call
chmod 755 $init/LS00Voice_Call
chown 0:2000 $init/LS00Voice_Call
$init/LS00Blackscreen ]; then
cp -f $core/LS00Blackscreen $init/LS00Blackscreen
chmod 755 $init/LS00Blackscreen
chown 0:2000 $init/LS00Blackscreen
$init/LS00Improve_Battery ]; then
cp -f $core/LS00Improve_Battery $init/LS00Improve_Battery
chmod 755 $init/LS00Improve_Battery
chown 0:2000 $init/LS00Improve_Battery
$init/LS00Scrolling ]; then
cp -f $core/LS00Scrolling $init/LS00Scrolling
chmod 755 $init/LS00Scrolling
chown 0:2000 $init/LS00Scrolling
$init/LS00Faster_Boot ]; then
cp -f $core/LS00Faster_Boot $init/LS00Faster_Boot
chmod 755 $init/LS00Faster_Boot
chown 0:2000 $init/LS00Faster_Boot
$init/LS00Image_Quality ]; then
cp -f $core/LS00Image_Quality $init/LS00Image_Quality
chmod 755 $init/LS00Image_Quality
chown 0:2000 $init/LS00Image_Quality
$init/LS00Faster_Streaming ]; then
cp -f $core/LS00Faster_Streaming $init/LS00Faster_Streaming
chmod 755 $init/LS00Faster_Streaming
chown 0:2000 $init/LS00Faster_Streaming
$init/LS00Liquid_UI ]; then
cp -f $core/LS00Liquid_UI $init/LS00Liquid_UI
chmod 755 $init/LS00Liquid_UI
chown 0:2000 $init/LS00Liquid_UI
$init/LS00Disable_Logcats ]; then
cp -f $core/LS00Disable_Logcats $init/LS00Disable_Logcats
chmod 755 $init/LS00Disable_Logcats
chown 0:2000 $init/LS00Disable_Logcats
$init/LS00Fast_Dormancy ]; then
cp -f $core/LS00Fast_Dormancy $init/LS00Fast_Dormancy
chmod 755 $init/LS00Fast_Dormancy
chown 0:2000 $init/LS00Fast_Dormancy
$init/LS00Misc_Tweaks ]; then
cp -f $core/LS00Misc_Tweaks $init/LS00Misc_Tweaks
chmod 755 $init/LS00Misc_Tweaks
chown 0:2000 $init/LS00Misc_Tweaks
fi
if [ -f $init/LS00Assertive_Display ]; then
busybox cp -f $core/LS00Assertive_Display $init/LS00Assertive_Display
busybox chmod 755 $init/LS00Assertive_Display
busybox chown 0:2000 $init/LS00Assertive_Display
busybox cp -f $core/LS00ad_calib.cfg /system/etc/LS00ad_calib.cfg
busybox chmod 755 /system/etc/LS00ad_calib.cfg
busybox chown 0:2000 /system/etc/LS00ad_calib.cfg
fi
fi
if [ ! -f $init/LSPEED ]; then
if [ ! -d /tmp ]; then
busybox mkdir -p /tmp
busybox chmod 755 /tmp
fi
busybox cp -f $core/LS00LSPEED $init/LSPEED
busybox chmod 755 $init/LSPEED
busybox chown 0:2000 $init/LSPEED
sh $init/LSPEED
fi
busybox sleep $timelong
busybox clear
busybox echo "Checking selinux status"
busybox sleep $timeshort
if [ "$sestat" = "Enforcing" ]; then
busybox echo "Your selinux status is $sestat"
busybox echo ""; busybox echo ""; busybox echo "";
busybox sleep $timeshort
busybox echo "Time to configure L Speed ;) "
elif [ "$sestat" = "Permissive" ]; then
busybox echo "Your selinux status is $sestat"
busybox echo ""; busybox echo ""; busybox echo "";
busybox echo "Time to configure L Speed ;) "
else
busybox echo "Your device doesn't have selinux, this option is unav
ailable"
busybox echo ""; busybox echo ""; busybox echo "";
busybox sleep $timeshort
busybox echo "Time to configure L Speed ;) "
fi
busybox echo ""
mount -o remount,ro / 2>/dev/null
mount -o remount,ro / / 2>/dev/null
mount -o remount,ro rootfs 2>/dev/null
mount -o remount,ro /system 2>/dev/null
mount -o remount,ro /system /system 2>/dev/null
busybox mount -o remount,ro / 2>/dev/null
busybox mount -o remount,ro / / 2>/dev/null
busybox mount -o remount,ro rootfs 2>/dev/null
busybox mount -o remount,ro /system 2>/dev/null
busybox mount -o remount,ro /system /system 2>/dev/null
busybox sleep $timelonger
while true; do
busybox clear
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox
busybox
busybox
busybox
if [ -f
else
LS_stat="\e[1;31mEnable init.d\e[0m"
fi
LEVEL=$(busybox cat /sys/class/power_supply/battery/capacity) 2>/dev/null
if [ -f /system/su.d/LS00init_d.sh ]; then
init_meth="\e[1;32msu.d\e[0m"
elif [ -f /system/etc/install-recovery-2.sh ]; then
init_meth="\e[1;32mInstall-recovery-2.sh\e[0m"
else
init_meth="\e[1;30mDefault\e[0m"
fi
if [ -f $init/LS00MCPS ]; then
mcps="\e[1;32mOn\e[0m"
else
mcps="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00CPU_Optimizer ]; then
cpu_opt="\e[1;32mOn\e[0m"
else
cpu_opt="\e[1;31mOff\e[0m"
fi
sestat=$(getenforce) 2>/dev/null
if [ "$sestat" = "Enforcing" ]; then
selinux="\e[1;31mEnforcing\e[0m"
elif [ "$sestat" = "Permissive" ]; then
selinux="\e[1;32mPermissive\e[0m"
else
selinux="\e[1;30mDisabled\e[0m"
fi
if [ -f $init/LS00Cleaner ]; then
cleaner="\e[1;32mOn boot\e[0m"
else
cleaner="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Seeder_Light ]; then
seeder_profile="\e[1;33mLight\e[0m"
elif [ -f $init/LS00Seeder_Enlarger ]; then
seeder_profile="\e[1;35mEnlarger\e[0m"
elif [ -f $init/LS00Seeder_Moderate ]; then
seeder_profile="\e[1;36mModerate\e[0m"
elif [ -f $init/LS00Seeder_Aggressive ]; then
seeder_profile="\e[1;34mAggressive\e[0m"
else
seeder_profile="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00RAM_Manager_MT ]; then
ram_profile="\e[1;33mMultitasking\e[0m"
elif [ -f $init/LS00RAM_Manager_BL ]; then
ram_profile="\e[1;36mBalanced\e[0m"
elif [ -f $init/LS00RAM_Manager_GM ]; then
ram_profile="\e[1;34mGaming\e[0m"
else
ram_profile="\e[1;30mDefault\e[0m"
fi
if [ -f $init/LS00OOM_Enabled ]; then
oom="\e[1;32mEnabled\e[0m"
elif [ -f $init/LS00OOM_Disabled ]; then
oom="\e[1;31mDisabled\e[0m"
else
oom="\e[1;30mDefault\e[0m"
fi
if [ -f $init/LS00CR_Lesser ]; then
reclaiming="\e[1;33mLesser\e[0m"
elif [ -f $init/LS00CR_Less ]; then
reclaiming="\e[1;36mLess\e[0m"
elif [ -f $init/LS00CR_x2 ]; then
reclaiming="\e[1;34mx2\e[0m"
else
reclaiming="\e[1;30mDefault\e[0m"
fi
if [ -f $init/LS00Allocation_Medium ]; then
allocation="\e[1;33mMedium\e[0m"
elif [ -f $init/LS00Allocation_Large ]; then
allocation="\e[1;36mLarge\e[0m"
else
allocation="\e[1;30mDefault\e[0m"
fi
if [ -f $init/LS00Kernel_Tweaks_Light ]; then
kernel_tweaks="\e[1;33mLight\e[0m"
elif [ -f $init/LS00Kernel_Tweaks_Heavy ]; then
kernel_tweaks="\e[1;36mHeavy\e[0m"
else
kernel_tweaks="\e[1;30mDefault\e[0m"
fi
if [ -f $init/LS00Net_Small_Buffers ]; then
buffers="\e[1;32mOn\e[0m"
elif [ -f $init/LS00Net_Big_Buffers ]; then
buffers="\e[1;32mOn\e[0m"
else
buffers="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Net_Tweaks_DNS ]; then
dns="\e[1;32mOn\e[0m"
else
dns="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Net_Protection ]; then
protection="\e[1;32mOn\e[0m"
else
protection="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Net_Tweaks_RIL ]; then
ril="\e[1;32mOn\e[0m"
else
ril="\e[1;31mOff\e[0m"
fi
if [ -f /system/etc/hosts ]; then
if grep -q adblocker /system/etc/hosts; then
adblocker="\e[1;32m`busybox date -r /system/etc/hosts`\e[0m"
else
adblocker="\e[1;31mOff\e[0m"
fi
fi
if [ -f $init/LS00IO_Boost ]; then
IO_boost="\e[1;32mOn\e[0m"
else
IO_boost="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00IO_Queue ]; then
IO_queue="\e[1;32mOn\e[0m"
else
IO_queue="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Debugging ]; then
debug="\e[1;32mOn\e[0m"
else
debug="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Kernel_Panic ]; then
panic="\e[1;32mOn\e[0m"
else
panic="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Kernel_Sleepers ]; then
sleepers="\e[1;32mOn\e[0m"
else
sleepers="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00KSM ]; then
KSM="\e[1;32mOn\e[0m"
else
KSM="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00SD ]; then
SD="\e[1;32mOn\e[0m"
else
SD="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Zipalign ]; then
zipalign="\e[1;32mOn\e[0m"
else
zipalign="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Fast_Charge ]; then
fast_charge="\e[1;32mOn\e[0m"
else
fast_charge="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00GSDF ]; then
google_services="\e[1;32mOn\e[0m"
else
google_services="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00KGA ]; then
google_apps="\e[1;32mOn\e[0m"
else
google_apps="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00KMS ]; then
media_server="\e[1;32mOn\e[0m"
else
media_server="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Zram ]; then
zram="\e[1;32mOn\e[0m"
else
zram="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Wifi_Sleeper ]; then
wifi_sleeper="\e[1;32mOn\e[0m"
else
wifi_sleeper="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Flag_Tuner ]; then
flag="\e[1;32mOn\e[0m"
else
flag="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Voice_Call ]; then
voice_call="\e[1;32mOn\e[0m"
else
voice_call="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Blackscreen ]; then
blackscreen="\e[1;32mOn\e[0m"
else
blackscreen="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Improve_Battery ]; then
improve_battery="\e[1;32mOn\e[0m"
else
improve_battery="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Scrolling ]; then
scrolling="\e[1;32mOn\e[0m"
else
scrolling="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Faster_Boot ]; then
faster_boot="\e[1;32mOn\e[0m"
else
faster_boot="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Image_Quality ]; then
image_quality="\e[1;32mOn\e[0m"
else
image_quality="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Faster_Streaming ]; then
streaming="\e[1;32mOn\e[0m"
else
streaming="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Liquid_UI ]; then
liquid_UI="\e[1;32mOn\e[0m"
else
liquid_UI="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Disable_Logcats ]; then
logcat="\e[1;32mOn\e[0m"
else
logcat="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Fast_Dormancy ]; then
fast_dormancy="\e[1;32mOn\e[0m"
else
fast_dormancy="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Misc_Tweaks ]; then
misc="\e[1;32mOn\e[0m"
else
misc="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00Assertive_Display ]; then
assertive_display="\e[1;32mOn\e[0m"
else
assertive_display="\e[1;31mOff\e[0m"
fi
if [ -d $backup ]; then
backup_time="\e[1;32m`busybox date -r $backup`\e[0m"
else
backup_time="\e[1;31mNo backup\e[0m"
fi
busybox echo $divider
busybox echo -e "
\e[1;31m...
...\e[0m"
busybox echo -e "
\e[1;31m\ \. ^ ./ /\e[0m"
busybox echo -e "
Welcome to \e[1;31m\../ \../\e[0m IZARD $ver"
busybox echo $divider
busybox echo -e "Current state: $LS_stat"
busybox echo $divider
busybox echo -e "1. Boost NOW"
busybox echo -e "2. FStrim NOW"
busybox echo -e "3. Battery Calibration"
busybox echo $divider
busybox echo -e "4. Init.d support | $init_meth"
busybox echo -e "5. CPU Tuner
| $mcps;$cpu_opt"
busybox echo -e "6. Selinux
| $selinux"
busybox echo -e "7. Cleaner
| $cleaner"
busybox echo -e "8. Seeder
| $seeder_profile"
busybox echo -e "9. RAM Manager
| $ram_profile"
busybox echo -e "10.OOM Killer
| $oom"
busybox echo -e "11.Cache Reclaiming | $reclaiming"
busybox echo -e "12.Cache Allocation | $allocation"
busybox echo -e "13.Kernel Tweaks
| $kernel_tweaks"
busybox echo -e "14.LNET Optimizer | $buffers;$dns;$protection;$ril"
busybox echo -e "15.AdBlocker
| $adblocker"
busybox echo -e "16.IO Tweak
| $IO_boost;$IO_queue"
busybox echo $divider
busybox echo -e "17.Disable debugging
| $debug"
busybox echo -e "18.Disable kernel panic
| $panic"
busybox echo -e "19.Kernel sleepers optimization
| $sleepers"
busybox echo -e "20.Kernel samepage merging
| $KSM"
busybox echo -e "21.SD tweak
| $SD"
busybox echo -e "22.Zipalign
| $zipalign"
busybox echo -e "23.Fast charge
| $fast_charge"
busybox echo -e "24.Google services drain fix
| $google_services"
busybox echo -e "25.Kill Google Apps on boot
| $google_apps"
busybox echo -e "26.Kill media server on boot
| $media_server"
busybox echo -e "27.ZRAM
| $zram"
busybox echo -e "28.Wifi sleeper
| $wifi_sleeper"
busybox echo -e "29.Flag tuner
| $flag"
busybox echo -e "30.Better voice call quality
| $voice_call"
busybox echo -e "31.Fix blackscreen issue after call | $blackscreen"
busybox echo -e "32.Improve battery
| $improve_battery"
/system/xbin/fstrim -v
busybox echo ""
busybox echo "Triming
/system/xbin/fstrim -v
busybox echo ""
busybox echo "Triming
/system/xbin/fstrim -v
/cache;
data, please wait..."
/data;
system, please wait"
/system;
else
busybox echo "Your device doesn't support fstrim"
fi
busybox sleep $timeshort
busybox echo ""
busybox echo "Done !!!"
busybox sleep $timelong;;
3)busybox clear
busybox echo ""
busybox echo "You need full battery..."
busybox echo ""
busybox sleep $timeshort
busybox echo "Checking, please wait..."
busybox echo ""
busybox sleep $timeshort
if [ "$LEVEL" = "100" ] ; then
mount -o remount,rw /data
busybox mount -o remount,rw /data
busybox sleep $timeshort
busybox rm -f /data/system/batterystats.bin
busybox echo ""
busybox echo ""
busybox sleep $timelong
busybox echo ""
busybox echo "Your battery is now calibrated.."
busybox echo ""
busybox echo "Please reboot the device..."
busybox sleep $timelong
else
busybox echo ""
busybox echo ""
busybox sleep $timelong
busybox echo ""
busybox echo "Your battery is not fully charged..."
busybox sleep $timelong
fi;;
4)while true; do
busybox clear
if [ -f /system/su.d/LS00init_d.sh ]; then
init_meth="\e[1;32msu.d\e[0m"
elif [ -f /system/etc/install-recovery-2.sh ]; then
init_meth="\e[1;32mInstall-recovery-2.sh\e[0m"
else
init_meth="\e[1;30mDefault\e[0m"
fi
busybox echo -e -n " To use this, please flash superSU first
If first doesnt work, try second
current: $init_meth
1. su.d
2. install-recovery-2.sh
0. Exit
Choose enabling method:"
read -r option
if [ "$option" -eq 1 ]; then
busybox echo ""
busybox echo ""
if [ ! -f /system/su.d/LS00init_d.sh ]; then
busybox rm -rf /system/etc/install-recovery-2.sh
busybox rm -rf /system/xbin/sysinit
fi
busybox cp -f $core/LS00Init_d.sh /system/su.d/LS00init_d.sh
busybox chmod 755 /system/su.d/LS00init_d.sh
busybox chown 0:0 /system/su.d/LS00init_d.sh
busybox cp -f $core/LS00Sysinit /system/xbin/sysinit
busybox chmod 755 /system/xbin/sysinit
busybox chown 0:0 /system/xbin/sysinit
busybox echo ""
$timeshorter
busybox echo "Init.d enabled"
busybox echo "Please reboot"
$timeshort
elif [ "$option" -eq 2 ]; then
busybox echo ""
if [ ! -f /system/etc/install-recovery-2.sh ]; then
busybox rm -rf /system/su.d/LS00init_d.sh
busybox rm -rf /system/xbin/sysinit
fi
busybox cp -f $core/LS00Init_d.sh /system/etc/install-recovery-2.sh
busybox chmod 755 /system/etc/install-recovery-2.sh
busybox chown 0:0 /system/etc/install-recovery-2.sh
busybox cp -f $core/LS00Sysinit /system/xbin/sysinit
busybox chmod 755 /system/xbin/sysinit
busybox chown 0:0 /system/xbin/sysinit
busybox echo ""
$timeshorter
busybox echo "Init.d enabled"
busybox echo "Please reboot"
$timeshort
elif [ "$option" -eq 0 ]; then
break
fi
done;;
5)while true; do
busybox clear
online=$(busybox cat /sys/devices/system/cpu/online)
if [ "$online" = "0" ] ; then
online_norm=1
elif [ "$online" = "0-1" ] ; then
online_norm=2
elif [ "$online" = "0-2" ] ; then
online_norm=3
elif [ "$online" = "0-3" ] ; then
online_norm=4
fi
max_cores=$(busybox cat /sys/devices/system/cpu/possible)
if [ "$max_cores" = "0" ] ; then
max_cores_norm=1
elif [ "$max_cores" = "0-1" ] ; then
max_cores_norm=2
| $mcps
| $cpu_opt
0. Exit
Please select an option: "
read -r option
if [ "$option" -eq 1 ]; then
if [ -f $init/LS00MCPS ]; then
busybox rm -rf $init/LS00MCPS
else
busybox cp -f $core/LS00MCPS $init/LS00MCPS
busybox chmod 755 $init/LS00MCPS
busybox chown 0:2000 $init/LS00MCPS
fi
elif [ "$option" -eq 2 ]; then
if [ -f $init/LS00CPU_Optimizer ]; then
busybox rm -rf $init/LS00CPU_Optimizer
else
busybox cp -f $core/LS00CPU_Optimizer $init/LS00CPU_Optimizer
busybox chmod 755 $init/LS00CPU_Optimizer
busybox chown 0:2000 $init/LS00CPU_Optimizer
fi
elif [ "$option" -eq 0 ]; then
break
fi
done;;
6)if [ "$sestat" = "Enforcing" ]; then
busybox rm -rf /system/su.d/LS00Selinux_Enforce 2>/dev/null
busybox cp -f $core/LS00Selinux_Permissive /system/su.d/LS00Selinux_Perm
issive
busybox chmod 755 /system/su.d/LS00Selinux_Permissive
busybox chown 0:2000 /system/su.d/LS00Selinux_Permissive
sh /system/su.d/LS00Selinux_Permissive 2>/dev/null
elif [ "$sestat" = "Permissive" ]; then
busybox rm -rf /system/su.d/LS00Selinux_Permissive 2>/dev/null
busybox cp -f $core/LS00Selinux_Enforce /system/su.d/LS00Selinux_Enforce
busybox chmod 755 /system/su.d/LS00Selinux_Enforce
busybox chown 0:2000 /system/su.d/LS00Selinux_Enforce
sh /system/su.d/LS00Selinux_Enforce 2>/dev/null
else
busybox echo " Your device doesn't have selinux, this option is un
available"
busybox sleep $timelong
fi;;
7)while true; do
busybox clear
if [ -f $init/LS00Cleaner ]; then
cleaner="\e[1;32mOn boot\e[0m"
else
cleaner="\e[1;31mOff\e[0m"
fi
busybox echo -e -n " Welcome to Cleaner menu
1.
2.
3.
4.
5.
0. Go back
Please select an option: "
read -r option
if [ "$option" -eq 1 ]; then
busybox echo "Cleaning junk files"
busybox sleep $timeshort
busybox echo""
busybox echo "Please wait!!!"
busybox sleep $timelong
mount -o remount,rw / 2>/dev/null
mount -o remount,rw / / 2>/dev/null
mount -o remount,rw rootfs 2>/dev/null
mount -o remount,rw /system 2>/dev/null
mount -o remount,rw /system /system 2>/dev/null
mount -o remount,rw /data 2>/dev/null
mount -o remount,rw /cache 2>/dev/null
busybox mount -o remount,rw / 2>/dev/null
busybox mount -o remount,rw / / 2>/dev/null
busybox mount -o remount,rw rootfs 2>/dev/null
busybox mount -o remount,rw /system 2>/dev/null
busybox mount -o remount,rw /system /system 2>/dev/null
busybox mount -o remount,rw /data 2>/dev/null
busybox mount -o remount,rw /cache 2>/dev/null
busybox rm -f /cache/*.apk 2>/dev/null
busybox rm -f /cache/*.tmp 2>/dev/null
busybox rm -f /cache/*.log 2>/dev/null
busybox rm -f /cache/*.txt 2>/dev/null
busybox rm -f /cache/recovery/* 2>/dev/null
busybox rm -f /data/*.log 2>/dev/null
busybox rm -f /data/*.txt 2>/dev/null
busybox rm -f /data/anr/*.log 2>/dev/null
busybox rm -f /data/anr/*.txt 2>/dev/null
busybox rm -f /data/backup/pending/*.tmp 2>/dev/null
busybox rm -f /data/cache/*.* 2>/dev/null
busybox rm -f /data/dalvik-cache/*.apk 2>/dev/null
busybox rm -f /data/dalvik-cache/*.tmp 2>/dev/null
busybox rm -f /data/dalvik-cache/*.log 2>/dev/null
busybox rm -f /data/dalvik-cache/*.txt 2>/dev/null
Current: $seeder_profile
Current Entropy: $entropy
1.
2.
3.
4.
5.
Default
Light
Enlarger
Moderate
Aggressive
0. Go back
Please select an option: "
read -r option
if [ "$option" -eq 1 ]; then
busybox rm -rf $init/LS00Seeder_Light 2>/dev/null
busybox rm -rf $init/LS00Seeder_Enlarger 2>/dev/null
busybox rm -rf $init/LS00Seeder_Moderate 2>/dev/null
busybox rm -rf $init/LS00Seeder_Aggressive 2>/dev/null
elif [ "$option" -eq 2 ]; then
busybox rm -rf $init/LS00Seeder_Light 2>/dev/null
busybox rm -rf $init/LS00Seeder_Enlarger 2>/dev/null
busybox rm -rf $init/LS00Seeder_Moderate 2>/dev/null
busybox rm -rf $init/LS00Seeder_Aggressive 2>/dev/null
busybox cp -f $core/LS00Seeder_Light $init/LS00Seeder_Light
busybox chmod 755 $init/LS00Seeder_Light
busybox chown 0:2000 $init/LS00Seeder_Light
sh $init/LS00Seeder_Light 2>/dev/null
elif [ "$option" -eq 3 ]; then
busybox rm -rf $init/LS00Seeder_Light 2>/dev/null
busybox rm -rf $init/LS00Seeder_Enlarger 2>/dev/null
busybox rm -rf $init/LS00Seeder_Moderate 2>/dev/null
busybox rm -rf $init/LS00Seeder_Aggressive 2>/dev/null
busybox cp -f $core/LS00Seeder_Enlarger $init/LS00Seeder_Enlarger
busybox chmod 755 $init/LS00Seeder_Enlarger
busybox chown 0:2000 $init/LS00Seeder_Enlarger
sh $init/LS00Seeder_Enlarger 2>/dev/null
elif [ "$option" -eq 4 ]; then
busybox rm -rf $init/LS00Seeder_Light 2>/dev/null
busybox rm -rf $init/LS00Seeder_Enlarger 2>/dev/null
busybox rm -rf $init/LS00Seeder_Moderate 2>/dev/null
busybox rm -rf $init/LS00Seeder_Aggressive 2>/dev/null
busybox cp -f $core/LS00Seeder_Moderate $init/LS00Seeder_Moderate
busybox chmod 755 $init/LS00Seeder_Moderate
busybox chown 0:2000 $init/LS00Seeder_Moderate
sh $init/LS00Seeder_Moderate 2>/dev/null
elif [ "$option" -eq 5 ]; then
busybox rm -rf $init/LS00Seeder_Light 2>/dev/null
busybox rm -rf $init/LS00Seeder_Enlarger 2>/dev/null
busybox rm -rf $init/LS00Seeder_Moderate 2>/dev/null
busybox rm -rf $init/LS00Seeder_Aggressive 2>/dev/null
busybox cp -f $core/LS00Seeder_Aggressive $init/LS00Seeder_Aggressive
busybox chmod 755 $init/LS00Seeder_Aggressive
busybox chown 0:2000 $init/LS00Seeder_Aggressive
sh $init/LS00Seeder_Aggressive 2>/dev/null
elif [ "$option" -eq 0 ]; then
break
fi
done;;
9)while true; do
busybox clear
busybox chmod 644 /sys/module/lowmemorykiller/parameters/minfree
minfree1=$(busybox awk -F , '{print $1}' /sys/module/lowmemorykiller/parameters/
minfree);
minfree2=$(busybox awk -F , '{print $2}' /sys/module/lowmemorykiller/parameters/
minfree);
minfree3=$(busybox awk -F , '{print $3}' /sys/module/lowmemorykiller/parameters/
minfree);
minfree4=$(busybox awk -F , '{print $4}' /sys/module/lowmemorykiller/parameters/
minfree);
minfree5=$(busybox awk -F , '{print $5}' /sys/module/lowmemorykiller/parameters/
minfree);
minfree6=$(busybox awk -F , '{print $6}' /sys/module/lowmemorykiller/parameters/
minfree);
minfreemb1=$((minfree1*4/1024));
minfreemb2=$((minfree2*4/1024));
minfreemb3=$((minfree3*4/1024));
minfreemb4=$((minfree4*4/1024));
minfreemb5=$((minfree5*4/1024));
minfreemb6=$((minfree6*4/1024));
if [ -f $init/LS00RAM_Manager_MT ]; then
ram_profile="\e[1;33mMultitasking\e[0m"
elif [ -f $init/LS00RAM_Manager_BL ]; then
ram_profile="\e[1;36mBalanced\e[0m"
elif [ -f $init/LS00RAM_Manager_GM ]; then
ram_profile="\e[1;34mGaming\e[0m"
else
ram_profile="\e[1;30mDefault\e[0m"
fi
busybox echo -e -n " Ram manager
Current: $ram_profile
Current levels: $minfreemb1,$minfreemb2,$minfreemb3,$minfreemb4,$minfreemb5
,$minfreemb6
1.
2.
3.
4.
Default
Multitasking
Balanced
Gaming
0. Go back
Please select an option: "
read -r option
if [ "$option" -eq 1 ]; then
busybox rm -rf $init/LS00RAM_Manager_MT 2>/dev/null
busybox rm -rf $init/LS00RAM_Manager_BL 2>/dev/null
busybox rm -rf $init/LS00RAM_Manager_GM 2>/dev/null
elif [ "$option" -eq 2 ]; then
busybox rm -rf $init/LS00RAM_Manager_MT 2>/dev/null
busybox rm -rf $init/LS00RAM_Manager_BL 2>/dev/null
busybox rm -rf $init/LS00RAM_Manager_GM 2>/dev/null
busybox cp -f $core/LS00RAM_Manager_MT $init/LS00RAM_Manager_MT
busybox chmod 755 $init/LS00RAM_Manager_MT
busybox chown 0:2000 $init/LS00RAM_Manager_MT
sh $init/LS00RAM_Manager_MT 2>/dev/null
elif [ "$option" -eq 3 ]; then
busybox rm -rf $init/LS00RAM_Manager_MT 2>/dev/null
busybox rm -rf $init/LS00RAM_Manager_BL 2>/dev/null
busybox rm -rf $init/LS00RAM_Manager_GM 2>/dev/null
Default
Lesser
Less
x2
0. Go back
Please select an option: "
read -r option
if [ "$option" -eq 1 ]; then
busybox rm -rf $init/LS00CR_Lesser 2>/dev/null
busybox rm -rf $init/LS00CR_Less 2>/dev/null
busybox rm -rf $init/LS00CR_x2 2>/dev/null
elif [ "$option" -eq 2 ]; then
busybox rm -rf $init/LS00CR_Lesser 2>/dev/null
busybox rm -rf $init/LS00CR_Less 2>/dev/null
busybox rm -rf $init/LS00CR_x2 2>/dev/null
busybox cp -f $core/LS00CR_Lesser $init/LS00CR_Lesser
busybox chmod 755 $init/LS00CR_Lesser
busybox chown 0:2000 $init/LS00CR_Lesser
elif [ "$option" -eq 3 ]; then
busybox rm -rf $init/LS00CR_Lesser 2>/dev/null
busybox rm -rf $init/LS00CR_Less 2>/dev/null
busybox rm -rf $init/LS00CR_x2 2>/dev/null
busybox cp -f $core/LS00CR_Less $init/LS00CR_Less
busybox chmod 755 $init/LS00CR_Less
busybox chown 0:2000 $init/LS00CR_Less
elif [ "$option" -eq 4 ]; then
busybox rm -rf $init/LS00CR_Lesser 2>/dev/null
busybox rm -rf $init/LS00CR_Less 2>/dev/null
busybox rm -rf $init/LS00CR_x2 2>/dev/null
busybox cp -f $core/LS00CR_x2 $init/LS00CR_x2
busybox chmod 755 $init/LS00CR_x2
busybox chown 0:2000 $init/LS00CR_x2
elif [ "$option" -eq 0 ]; then
break
fi
done;;
12)while true; do
busybox clear
if [ -f $init/LS00Allocation_Medium ]; then
allocation="\e[1;33mMedium\e[0m"
elif [ -f $init/LS00Allocation_Large ]; then
allocation="\e[1;36mLarge\e[0m"
else
allocation="\e[1;30mDefault\e[0m"
fi
busybox echo -e -n " Cache allocation
Current: $allocation
1. Default
2. Medium
3. Large
0. Go back
Please select an option: "
read -r option
if [ "$option" -eq 1 ]; then
busybox rm -rf $init/LS00Allocation_Medium 2>/dev/null
busybox rm -rf $init/LS00Allocation_Large 2>/dev/null
elif [ "$option" -eq 2 ]; then
busybox rm -rf $init/LS00Allocation_Medium 2>/dev/null
busybox rm -rf $init/LS00Allocation_Large 2>/dev/null
busybox cp -f $core/LS00Allocation_Medium $init/LS00Allocation_Medium
busybox chmod 755 $init/LS00Allocation_Medium
busybox chown 0:2000 $init/LS00Allocation_Medium
elif [ "$option" -eq 3 ]; then
busybox rm -rf $init/LS00Allocation_Medium 2>/dev/null
busybox rm -rf $init/LS00Allocation_Large 2>/dev/null
busybox cp -f $core/LS00Allocation_Large $init/LS00Allocation_Large
busybox chmod 755 $init/LS00Allocation_Large
busybox chown 0:2000 $init/LS00Allocation_Large
elif [ "$option" -eq 0 ]; then
break
fi
done;;
13)while true; do
busybox clear
if [ -f $init/LS00Kernel_Tweaks_Light ]; then
kernel_tweaks="\e[1;33mLight\e[0m"
elif [ -f $init/LS00Kernel_Tweaks_Heavy ]; then
kernel_tweaks="\e[1;36mHeavy\e[0m"
else
kernel_tweaks="\e[1;30mDefault\e[0m"
fi
busybox echo -e -n " Kernel tweaks menu
Current: $kernel_tweaks
1. Default
2. Light
3. Heavy
0. Go back
Please select an option: "
read -r option
if [ "$option" -eq 1 ]; then
busybox rm -rf $init/LS00Kernel_Tweaks_Light 2>/dev/null
busybox rm -rf $init/LS00Kernel_Tweaks_Heavy 2>/dev/null
elif [ "$option" -eq 2 ]; then
busybox rm -rf $init/LS00Kernel_Tweaks_Light 2>/dev/null
busybox rm -rf $init/LS00Kernel_Tweaks_Heavy 2>/dev/null
busybox cp -f $core/LS00Kernel_Tweaks_Light $init/LS00Kernel_Tweaks_Light
busybox chmod 755 $init/LS00Kernel_Tweaks_Light
busybox chown 0:2000 $init/LS00Kernel_Tweaks_Light
Buffers
DNS
Protection
Ril
|
|
|
|
$buffers
$dns
$protection
$ril
0. Go back
Please select an option: "
read -r option
if [ "$option" -eq 1 ]; then
while true; do
busybox clear
if [ -f $init/LS00Net_Small_Buffers ]; then
buffers="\e[1;33mSmall\e[0m"
elif [ -f $init/LS00Net_Big_Buffers ]; then
buffers="\e[1;36mBig\e[0m"
else
buffers="\e[1;30mDefault\e[0m"
fi
busybox echo -e -n " Buffer menu
Current: $buffers
1. Default buffers
2. Small buffers
3. Big buffers
0. Go back
Please select an option: "
read -r option
if [ "$option" -eq 1 ]; then
busybox rm -rf $init/LS00Net_Small_Buffers 2>/dev/null
busybox rm -rf $init/LS00Net_Big_Buffers 2>/dev/null
elif [ "$option" -eq 2 ]; then
busybox rm -rf $init/LS00Net_Small_Buffers 2>/dev/null
busybox rm -rf $init/LS00Net_Big_Buffers 2>/dev/null
busybox cp -f $core/LS00Net_Small_Buffers $init/LS00Net_Small_Buffers
busybox chmod 755 $init/LS00Net_Small_Buffers
busybox chown 0:2000 $init/LS00Net_Small_Buffers
elif [ "$option" -eq 3 ]; then
busybox rm -rf $init/LS00Net_Small_Buffers 2>/dev/null
busybox rm -rf $init/LS00Net_Big_Buffers 2>/dev/null
busybox cp -f $core/LS00Net_Big_Buffers $init/LS00Net_Big_Buffers
busybox chmod 755 $init/LS00Net_Big_Buffers
busybox chown 0:2000 $init/LS00Net_Big_Buffers
elif [ "$option" -eq 0 ]; then
break
fi
done
elif [ "$option" -eq 2 ]; then
if [ -f $init/LS00Net_Tweaks_DNS ]; then
busybox rm -rf $init/LS00Net_Tweaks_DNS 2>/dev/null
else
busybox cp -f $core/LS00Net_Tweaks_DNS $init/LS00Net_Tweaks_DNS
busybox chmod 755 $init/LS00Net_Tweaks_DNS
busybox chown 0:2000 $init/LS00Net_Tweaks_DNS
fi
elif [ "$option" -eq 3 ]; then
if [ -f $init/LS00Net_Protection ]; then
busybox rm -rf $init/LS00Net_Protection 2>/dev/null
else
busybox cp -f $core/LS00Net_Protection $init/LS00Net_Protection
busybox chmod 755 $init/LS00Net_Protection
busybox chown 0:2000 $init/LS00Net_Protection
fi
elif [ "$option" -eq 4 ]; then
if [ -f $init/LS00Net_Tweaks_RIL ]; then
busybox rm -rf $init/LS00Net_Tweaks_RIL 2>/dev/null
else
busybox cp -f $core/LS00Net_Tweaks_RIL $init/LS00Net_Tweaks_RIL
busybox chmod 755 $init/LS00Net_Tweaks_RIL
busybox chown 0:2000 $init/LS00Net_Tweaks_RIL
fi
elif [ "$option" -eq 0 ]; then
break
fi
done;;
15)while true; do
busybox clear
if grep -q adblocker /system/etc/hosts; then
adblocker="\e[1;32m`busybox date -r /system/etc/hosts`\e[0m"
else
adblocker="\e[1;31mOff\e[0m"
fi
busybox echo -e -n "
AdBlocker
Current: $adblocker
info: Internet connection is required
1. Enable/Update
2. Disable
0. Go back
Please select an option: "
read -r option
if [ "$option" -eq 1 ]; then
busybox rm -rf /system/etc/hosts
busybox wget -O /system/etc/host4 "http://pgl.yoyo.org/adservers/serverlist.p
hp?hostformat=hosts&showintro=0&mimetype=plaintext"
busybox wget -O /system/etc/host3 "http://adaway.org/hosts.txt"
busybox cat /system/etc/host4 >> /system/etc/host3; busybox rm -rf /system/et
c/host4
busybox wget -O /system/etc/host2 "http://hosts-file.net/ad_servers.txt"
busybox cat /system/etc/host3 >> /system/etc/host2; busybox rm -rf /system/et
c/host3
busybox wget -O /system/etc/host1 "http://winhelp2002.mvps.org/hosts.txt"
busybox cat /system/etc/host2 >> /system/etc/host1; busybox rm -rf /system/et
c/host2
busybox sed '/^#/ d' /system/etc/host1 > /system/etc/host;
busybox rm -rf /system/etc/host1
busybox sort /system/etc/host | busybox uniq -u > /system/etc/hosts; busybox
rm -rf /system/etc/host
busybox sed '/localhost/d' /system/etc/hosts > /system/etc/host; busybox rm rf /system/etc/hosts
busybox sed -i -e 's/0.0.0.0/127.0.0.1/g' /system/etc/host; busybox sed -i '1
i #adblocker' /system/etc/host
busybox sed -i '2i 127.0.0.1 localhost' /system/etc/host; busybox sed -i '3i
::1 localhost' /system/etc/host
busybox awk '{$1=$1}1' OFS=" " /system/etc/host > /system/etc/hosts
busybox sed -i -e '$a\' /system/etc/hosts
busybox rm -rf /system/etc/host
busybox chmod 644 /system/etc/hosts
busybox chown 0:0 /system/etc/hosts
elif [ "$option" -eq 2 ]; then
busybox rm -rf /system/etc/hosts
busybox cat >> /system/etc/hosts <<EOF
127.0.0.1
localhost
EOF
busybox chmod 644 /system/etc/hosts
busybox chown 0:0 /system/etc/hosts
elif [ "$option" -eq 0 ]; then
break
fi
done;;
16)while true; do
busybox clear
if [ -f $init/LS00IO_Boost ]; then
IO_boost="\e[1;32mOn\e[0m"
else
IO_boost="\e[1;31mOff\e[0m"
fi
if [ -f $init/LS00IO_Queue ]; then
IO_queue="\e[1;32mOn\e[0m"
else
IO_queue="\e[1;31mOff\e[0m"
fi
busybox echo -e -n " IO tweaks menu
1. IO Boost
| $IO_boost
2. IO Extend Queue | $IO_queue
0. Go back
Please select an option: "
read -r option
if [ "$option" -eq 1 ]; then
if [ -f $init/LS00IO_Boost ]; then
busybox rm -rf $init/LS00IO_Boost 2>/dev/null
else
busybox cp -f $core/LS00IO_Boost $init/LS00IO_Boost
busybox chmod 755 $init/LS00IO_Boost
busybox chown 0:2000 $init/LS00IO_Boost
fi
elif [ "$option" -eq 2 ]; then
if [ -f $init/LS00IO_Queue ]; then
busybox rm -rf $init/LS00IO_Queue 2>/dev/null
else
busybox cp -f $core/LS00IO_Queue $init/LS00IO_Queue
busybox chmod 755 $init/LS00IO_Queue
busybox chown 0:2000 $init/LS00IO_Queue
fi
elif [ "$option" -eq 0 ]; then
break
fi
done;;
17) if [ -f $init/LS00Debugging ]; then
busybox rm -rf $init/LS00Debugging
else
busybox cp -f $core/LS00Debugging $init/LS00Debugging
busybox chmod 755 $init/LS00Debugging
busybox chown 0:2000 $init/LS00Debugging
fi;;
18) if [ -f $init/LS00Kernel_Panic ]; then
busybox rm -rf $init/LS00Kernel_Panic
else
busybox cp -f $core/LS00Kernel_Panic $init/LS00Kernel_Panic
busybox chmod 755 $init/LS00Kernel_Panic
busybox chown 0:2000 $init/LS00Kernel_Panic
fi;;
19) if [ -f $init/LS00Kernel_Sleepers ]; then
busybox rm -rf $init/LS00Kernel_Sleepers
else
busybox cp -f $core/LS00Kernel_Sleepers $init/LS00Kernel_Sleepers
busybox chmod 755 $init/LS00Kernel_Sleepers
busybox chown 0:2000 $init/LS00Kernel_Sleepers
fi;;
20) if [ -f $init/LS00KSM ]; then
busybox rm -rf $init/LS00KSM
else
busybox cp -f $core/LS00KSM $init/LS00KSM
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox
busybox
busybox
fi
if [ -f
busybox