2018-02-11 23:50:18 -05:00
|
|
|
#!/bin/bash
|
|
|
|
#DivestOS: A privacy oriented Android distribution
|
2018-06-03 14:13:59 -04:00
|
|
|
#Copyright (c) 2017-2018 Divested Computing, Inc.
|
2018-02-11 23:50:18 -05:00
|
|
|
#
|
|
|
|
#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 option) 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 <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
#Overclocks the CPU to increase performance
|
2018-04-27 23:09:52 -04:00
|
|
|
#Last verified: 2018-04-27
|
2018-02-11 23:50:18 -05:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
echo "Applying overclocks...";
|
2018-02-11 23:50:18 -05:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
enter "kernel/huawei/angler";
|
2018-06-29 00:55:21 -04:00
|
|
|
patch -p1 < "$DOS_PATCHES_OVERCLOCKS/android_kernel_huawei_angler/0001-Overclock.patch";
|
2018-02-11 23:50:18 -05:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
enter "kernel/lge/g3";
|
2018-06-29 00:55:21 -04:00
|
|
|
patch -p1 < "$DOS_PATCHES_OVERCLOCKS/android_kernel_lge_g3/0001-Overclock.patch"; #2.45GHz -> 2.76GHz =+1.24GHz
|
|
|
|
patch -p1 < "$DOS_PATCHES_OVERCLOCKS/android_kernel_lge_g3/0002-Overclock.patch";
|
|
|
|
patch -p1 < "$DOS_PATCHES_OVERCLOCKS/android_kernel_lge_g3/0003-Overclock.patch";
|
|
|
|
patch -p1 < "$DOS_PATCHES_OVERCLOCKS/android_kernel_lge_g3/0004-Overclock.patch";
|
2018-02-11 23:50:18 -05:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
enter "kernel/lge/hammerhead";
|
2018-06-29 00:55:21 -04:00
|
|
|
patch -p1 < "$DOS_PATCHES_OVERCLOCKS/android_kernel_lge_hammerhead/0001-Overclock.patch"; #2.26GHz -> 2.95GHz =+2.76GHz XXX: Untested!
|
2018-02-11 23:50:18 -05:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
enter "kernel/lge/mako";
|
2018-06-29 00:55:21 -04:00
|
|
|
patch -p1 < "$DOS_PATCHES_OVERCLOCKS/android_kernel_lge_mako/0001-Overclock.patch";
|
|
|
|
patch -p1 < "$DOS_PATCHES_OVERCLOCKS/android_kernel_lge_mako/0002-Overclock.patch";
|
|
|
|
patch -p1 < "$DOS_PATCHES_OVERCLOCKS/android_kernel_lge_mako/0003-Overclock.patch";
|
|
|
|
patch -p1 < "$DOS_PATCHES_OVERCLOCKS/android_kernel_lge_mako/0004-Overclock.patch";
|
|
|
|
patch -p1 < "$DOS_PATCHES_OVERCLOCKS/android_kernel_lge_mako/0005-Overclock.patch";
|
2018-06-26 13:58:08 -04:00
|
|
|
echo "CONFIG_LOW_CPUCLOCKS=y" >> arch/arm/configs/lineageos_mako_defconfig; #384MHz -> 81MHz
|
|
|
|
echo "CONFIG_CPU_OVERCLOCK=y" >> arch/arm/configs/lineageos_mako_defconfig; #1.51GHz -> 1.70GHz =+0.90GHz
|
|
|
|
#echo "CPU_OVERCLOCK_ULTRA=y" >> arch/arm/configs/lineageos_mako_defconfig; #1.51GHz -> 1.94GHz =+1.72GHz XXX: Causes excessive throttling
|
2018-04-06 14:10:43 -04:00
|
|
|
|
2018-04-23 08:59:18 -04:00
|
|
|
enter "kernel/oppo/msm8974";
|
2018-06-29 00:55:21 -04:00
|
|
|
patch -p1 < "$DOS_PATCHES_OVERCLOCKS/android_kernel_oppo_msm8974/0001-OverUnderClock-EXTREME.patch"; #300MHz -> 268MHz, 2.45GHz -> 2.95GHz =+2.02GHz XXX: Not 100% stable under intense workloads
|
2018-02-11 23:50:18 -05:00
|
|
|
|
2018-06-29 00:55:21 -04:00
|
|
|
cd "$DOS_BUILD_BASE";
|
2018-04-23 08:59:18 -04:00
|
|
|
echo "Overclocks applied!";
|