mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-06-04 12:58:59 -04:00
Move enter to functions.sh, and move overclocks to overclock.sh
This commit is contained in:
parent
a350cd92f1
commit
7446b2d304
8 changed files with 121 additions and 78 deletions
45
Scripts/LineageOS-14.1/Overclock.sh
Normal file
45
Scripts/LineageOS-14.1/Overclock.sh
Normal file
|
@ -0,0 +1,45 @@
|
|||
#!/bin/bash
|
||||
#DivestOS: A privacy oriented Android distribution
|
||||
#Copyright (c) 2017 Spot Communications, Inc.
|
||||
#
|
||||
#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
|
||||
#XXX: There are no msm8992 overclocks due to poor overclockability
|
||||
|
||||
echo "Applying overclocks..."
|
||||
|
||||
enter "kernel/lge/g3"
|
||||
patch -p1 < $patches"android_kernel_lge_g3/Overclock-1.patch" #2.45Ghz -> 2.76Ghz =+1.24Ghz
|
||||
patch -p1 < $patches"android_kernel_lge_g3/Overclock-2.patch"
|
||||
patch -p1 < $patches"android_kernel_lge_g3/Overclock-3.patch"
|
||||
patch -p1 < $patches"android_kernel_lge_g3/Overclock-4.patch"
|
||||
|
||||
enter "kernel/lge/hammerhead"
|
||||
patch -p1 < $patches"android_kernel_lge_hammerhead/0001-OverUnderClock.patch" #2.26Ghz -> 2.95Ghz =+2.76Ghz XXX: Untested!
|
||||
|
||||
#enter "kernel/lge/mako"
|
||||
#patch -p1 < $patches"android_kernel_lge_mako/0001-OverUnderClock.patch" #384Mhz -> 81Mhz, 1.51Ghz -> 1.94Ghz =+1.72Ghz XXX: Disabled due to excessive thermal throttling
|
||||
|
||||
enter "kernel/motorola/msm8916"
|
||||
patch -p1 < $patches"android_kernel_motorola_msm8916/0001-Overclock.patch" #1.36Ghz -> 1.88Ghz =+ 2.07Ghz
|
||||
|
||||
enter "kernel/moto/shamu"
|
||||
patch -p1 < $patches"android_kernel_moto_shamu/0001-OverUnderClock.patch" #300Mhz -> 35Mhz, 2.64Ghz -> 2.88Ghz =+0.96Ghz XXX: Untested!
|
||||
|
||||
enter "kernel/oneplus/msm8974"
|
||||
patch -p1 < $patches"android_kernel_oneplus_msm8974/0001-OverUnderClock-EXTREME.patch" #300Mhz -> 268Mhz, 2.45Ghz -> 2.95Ghz =+2.02Ghz XXX: Not 100% stable under intense workloads
|
||||
|
||||
cd $base
|
||||
echo "Overclocks applied!"
|
Loading…
Add table
Add a link
Reference in a new issue