mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
Shellcheck misses
This commit is contained in:
parent
af94760587
commit
88c5ff1a66
@ -21,32 +21,32 @@
|
||||
echo "Applying overclocks...";
|
||||
|
||||
enter "kernel/huawei/angler";
|
||||
patch -p1 < "$patches""android_kernel_huawei_angler/0001-Overclock.patch";
|
||||
patch -p1 < "$patches/android_kernel_huawei_angler/0001-Overclock.patch";
|
||||
|
||||
enter "kernel/lge/g3";
|
||||
patch -p1 < "$patches""android_kernel_lge_g3/0001-Overclock.patch"; #2.45Ghz -> 2.76Ghz =+1.24Ghz
|
||||
patch -p1 < "$patches""android_kernel_lge_g3/0002-Overclock.patch";
|
||||
patch -p1 < "$patches""android_kernel_lge_g3/0003-Overclock.patch";
|
||||
patch -p1 < "$patches""android_kernel_lge_g3/0004-Overclock.patch";
|
||||
patch -p1 < "$patches/android_kernel_lge_g3/0001-Overclock.patch"; #2.45Ghz -> 2.76Ghz =+1.24Ghz
|
||||
patch -p1 < "$patches/android_kernel_lge_g3/0002-Overclock.patch";
|
||||
patch -p1 < "$patches/android_kernel_lge_g3/0003-Overclock.patch";
|
||||
patch -p1 < "$patches/android_kernel_lge_g3/0004-Overclock.patch";
|
||||
|
||||
enter "kernel/lge/hammerhead";
|
||||
patch -p1 < "$patches""android_kernel_lge_hammerhead/0001-Overclock.patch"; #2.26Ghz -> 2.95Ghz =+2.76Ghz XXX: Untested!
|
||||
patch -p1 < "$patches/android_kernel_lge_hammerhead/0001-Overclock.patch"; #2.26Ghz -> 2.95Ghz =+2.76Ghz XXX: Untested!
|
||||
|
||||
enter "kernel/lge/mako";
|
||||
patch -p1 < "$patches""android_kernel_lge_mako/0001-Overclock.patch";
|
||||
patch -p1 < "$patches""android_kernel_lge_mako/0002-Overclock.patch";
|
||||
patch -p1 < "$patches""android_kernel_lge_mako/0003-Overclock.patch";
|
||||
patch -p1 < "$patches""android_kernel_lge_mako/0004-Overclock.patch";
|
||||
patch -p1 < "$patches""android_kernel_lge_mako/0005-Overclock.patch";
|
||||
patch -p1 < "$patches/android_kernel_lge_mako/0001-Overclock.patch";
|
||||
patch -p1 < "$patches/android_kernel_lge_mako/0002-Overclock.patch";
|
||||
patch -p1 < "$patches/android_kernel_lge_mako/0003-Overclock.patch";
|
||||
patch -p1 < "$patches/android_kernel_lge_mako/0004-Overclock.patch";
|
||||
patch -p1 < "$patches/android_kernel_lge_mako/0005-Overclock.patch";
|
||||
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
|
||||
|
||||
#enter "kernel/motorola/msm8916";
|
||||
#patch -p1 < "$patches""android_kernel_motorola_msm8916/0001-Overclock.patch"; #1.36Ghz -> 1.88Ghz =+ 2.07Ghz
|
||||
#patch -p1 < "$patches/android_kernel_motorola_msm8916/0001-Overclock.patch"; #1.36Ghz -> 1.88Ghz =+ 2.07Ghz
|
||||
|
||||
enter "kernel/oppo/msm8974";
|
||||
patch -p1 < "$patches""android_kernel_oppo_msm8974/0001-OverUnderClock-EXTREME.patch"; #300Mhz -> 268Mhz, 2.45Ghz -> 2.95Ghz =+2.02Ghz XXX: Not 100% stable under intense workloads
|
||||
patch -p1 < "$patches/android_kernel_oppo_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!";
|
||||
|
@ -22,7 +22,7 @@ echo "Rebranding...";
|
||||
|
||||
enter "bootable/recovery";
|
||||
git revert bc57208dfcd0958d03a00bbcf5345be6ceac9988 6ac3bb48f9d10e604d4b2d6c4152be9d35d17ea0;
|
||||
patch -p1 < "$patches""android_bootable_recovery/0001-Remove_Logo.patch"; #Remove logo rendering code
|
||||
patch -p1 < "$patches/android_bootable_recovery/0001-Remove_Logo.patch"; #Remove logo rendering code
|
||||
rm res*/images/logo_image.png; #Remove logo images
|
||||
sed -i 's|Android Recovery|'"$REBRAND_NAME"' Recovery|' ./*_ui.cpp;
|
||||
sed -i 's|LineageOS|'"$REBRAND_NAME"'|' ui.cpp;
|
||||
@ -46,7 +46,7 @@ enter "packages/apps/SetupWizard";
|
||||
sed -i 's|http://lineageos.org/legal|https://divestos.xyz/index.php?page=privacy_policy|' src/org/lineageos/setupwizard/LineageSettingsActivity.java;
|
||||
sed -i '/.*setup_services/s/LineageOS/'"$REBRAND_NAME"'/' res/values*/strings.xml;
|
||||
sed -i '/.*services_explanation/s/LineageOS/'"$REBRAND_NAME"'/' res/values*/strings.xml;
|
||||
cp $patches"android_packages_apps_SetupWizard/logo.xml" "res/drawable/logo.xml"; #Replace Lineage logo with ours
|
||||
cp "$patches/android_packages_apps_SetupWizard/logo.xml" "res/drawable/logo.xml"; #Replace Lineage logo with ours
|
||||
|
||||
enter "packages/apps/Updater";
|
||||
sed -i 's|>LineageOS|>'"$REBRAND_NAME"'|' res/values*/strings.xml;
|
||||
|
Loading…
Reference in New Issue
Block a user