mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-02-04 09:05:34 -05:00
Add an option to disable overclocks
This commit is contained in:
parent
bf8f1e4d3d
commit
c6f7abd855
@ -75,7 +75,7 @@ patchWorkspace() {
|
|||||||
|
|
||||||
source $scripts/Patch.sh;
|
source $scripts/Patch.sh;
|
||||||
source $scripts/Defaults.sh;
|
source $scripts/Defaults.sh;
|
||||||
source $scripts/Overclock.sh;
|
if [ "$OVERCLOCKS_ENABLED" = true ]; then source $scripts/Overclock.sh; fi;
|
||||||
source $scripts/Optimize.sh;
|
source $scripts/Optimize.sh;
|
||||||
source $scripts/Rebrand.sh;
|
source $scripts/Rebrand.sh;
|
||||||
source $scripts/Theme.sh;
|
source $scripts/Theme.sh;
|
||||||
|
@ -198,6 +198,7 @@ cp -r $patches"android_vendor_cm/firmware_deblobber" .;
|
|||||||
cp $patches"android_vendor_cm/firmware_deblobber.mk" build/tasks/firmware_deblobber.mk;
|
cp $patches"android_vendor_cm/firmware_deblobber.mk" build/tasks/firmware_deblobber.mk;
|
||||||
sed -i 's/CM_BUILDTYPE := UNOFFICIAL/CM_BUILDTYPE := dos/' config/common.mk; #Change buildtype
|
sed -i 's/CM_BUILDTYPE := UNOFFICIAL/CM_BUILDTYPE := dos/' config/common.mk; #Change buildtype
|
||||||
sed -i 's/messaging/Silence/' config/telephony.mk; #Replace AOSP Messaging app with Silence
|
sed -i 's/messaging/Silence/' config/telephony.mk; #Replace AOSP Messaging app with Silence
|
||||||
|
#if [ "$HOSTS_BLOCKING" = false ]; then echo "PRODUCT_PACKAGES += DNS66" >> config/sce.mk; fi; #Include DNS66 as an alternative
|
||||||
if [ "$HOSTS_BLOCKING" = false ]; then cp $patches"android_vendor_cm/dns66.json" prebuilt/common/etc/dns66.json; fi;
|
if [ "$HOSTS_BLOCKING" = false ]; then cp $patches"android_vendor_cm/dns66.json" prebuilt/common/etc/dns66.json; fi;
|
||||||
if [ "$HOSTS_BLOCKING" = false ]; then sed -i '4iPRODUCT_COPY_FILES += vendor/cm/prebuilt/common/etc/dns66.json:system/etc/dns66/settings.json' config/common.mk; fi; #Include DNS66 default config
|
if [ "$HOSTS_BLOCKING" = false ]; then sed -i '4iPRODUCT_COPY_FILES += vendor/cm/prebuilt/common/etc/dns66.json:system/etc/dns66/settings.json' config/common.mk; fi; #Include DNS66 default config
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ patchWorkspace() {
|
|||||||
|
|
||||||
source $scripts/Patch.sh;
|
source $scripts/Patch.sh;
|
||||||
source $scripts/Defaults.sh;
|
source $scripts/Defaults.sh;
|
||||||
source $scripts/Overclock.sh;
|
if [ "$OVERCLOCKS_ENABLED" = true ]; then source $scripts/Overclock.sh; fi;
|
||||||
source $scripts/Optimize.sh;
|
source $scripts/Optimize.sh;
|
||||||
source $scripts/Rebrand.sh;
|
source $scripts/Rebrand.sh;
|
||||||
source $scriptsCommon/Deblob.sh;
|
source $scriptsCommon/Deblob.sh;
|
||||||
|
@ -198,6 +198,7 @@ cp -r $patches"android_vendor_lineage/firmware_deblobber" .;
|
|||||||
cp $patches"android_vendor_lineage/firmware_deblobber.mk" build/tasks/firmware_deblobber.mk;
|
cp $patches"android_vendor_lineage/firmware_deblobber.mk" build/tasks/firmware_deblobber.mk;
|
||||||
sed -i 's/LINEAGE_BUILDTYPE := UNOFFICIAL/LINEAGE_BUILDTYPE := dos/' config/common.mk; #Change buildtype
|
sed -i 's/LINEAGE_BUILDTYPE := UNOFFICIAL/LINEAGE_BUILDTYPE := dos/' config/common.mk; #Change buildtype
|
||||||
sed -i 's/messaging/Silence/' config/telephony.mk; #Replace AOSP Messaging app with Silence
|
sed -i 's/messaging/Silence/' config/telephony.mk; #Replace AOSP Messaging app with Silence
|
||||||
|
#if [ "$HOSTS_BLOCKING" = false ]; then echo "PRODUCT_PACKAGES += DNS66" >> config/sce.mk; fi; #Include DNS66 as an alternative
|
||||||
if [ "$HOSTS_BLOCKING" = false ]; then cp $patches"android_vendor_lineage/dns66.json" prebuilt/common/etc/dns66.json; fi;
|
if [ "$HOSTS_BLOCKING" = false ]; then cp $patches"android_vendor_lineage/dns66.json" prebuilt/common/etc/dns66.json; fi;
|
||||||
if [ "$HOSTS_BLOCKING" = false ]; then sed -i '4iPRODUCT_COPY_FILES += vendor/lineage/prebuilt/common/etc/dns66.json:system/etc/dns66/settings.json' config/common.mk; fi; #Include DNS66 default config
|
if [ "$HOSTS_BLOCKING" = false ]; then sed -i '4iPRODUCT_COPY_FILES += vendor/lineage/prebuilt/common/etc/dns66.json:system/etc/dns66/settings.json' config/common.mk; fi; #Include DNS66 default config
|
||||||
#
|
#
|
||||||
|
@ -25,6 +25,7 @@ export MALWARE_SCAN_ENABLED=true; #Set true to perform a fast scan on patchWorks
|
|||||||
export MALWARE_SCAN_SETTING="quick"; #buildAll() scan speed. Options are quick, extra, slow, full
|
export MALWARE_SCAN_SETTING="quick"; #buildAll() scan speed. Options are quick, extra, slow, full
|
||||||
export MICROG_INCLUDED=true; #Switch to false to prevent inclusion of microG
|
export MICROG_INCLUDED=true; #Switch to false to prevent inclusion of microG
|
||||||
export HOSTS_BLOCKING=true; #Switch to false to prevent inclusion of our HOSTS file
|
export HOSTS_BLOCKING=true; #Switch to false to prevent inclusion of our HOSTS file
|
||||||
|
export OVERCLOCKS_ENABLED=true; #Switch to false to disable overclocks
|
||||||
export STRONG_ENCRYPTION_ENABLED=false; #Switch to true to enable AES-256bit encryption XXX: THIS WILL **DESTROY** EXISTING INSTALLS!
|
export STRONG_ENCRYPTION_ENABLED=false; #Switch to true to enable AES-256bit encryption XXX: THIS WILL **DESTROY** EXISTING INSTALLS!
|
||||||
export NON_COMMERCIAL_USE_PATCHES=false; #Switch to false to prevent inclusion of non-commercial use patches
|
export NON_COMMERCIAL_USE_PATCHES=false; #Switch to false to prevent inclusion of non-commercial use patches
|
||||||
#END OF USER CONFIGURABLE OPTIONS
|
#END OF USER CONFIGURABLE OPTIONS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user