mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-01-13 00:19:27 -05:00
More (disabled) lowram tweaks for <2GB devices
The inprocess variants make very little reduction and likely reduce security. Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
96e3fc507c
commit
486e358050
@ -118,7 +118,6 @@ export -f enableDexPreOpt;
|
||||
|
||||
enableLowRam() {
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
if [ -f lineage.mk ]; then echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage.mk; fi;
|
||||
if [ -f lineage_$2.mk ]; then echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage_$2.mk; fi;
|
||||
if [ -f BoardConfig.mk ]; then echo 'MALLOC_SVELTE := true' >> BoardConfig.mk; fi;
|
||||
if [ -f BoardConfigCommon.mk ]; then echo 'MALLOC_SVELTE := true' >> BoardConfigCommon.mk; fi;
|
||||
|
@ -126,8 +126,10 @@ export -f enableDexPreOpt;
|
||||
|
||||
enableLowRam() {
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
if [ -f lineage.mk ]; then echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage.mk; fi;
|
||||
if [ -f lineage_$2.mk ]; then echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage_$2.mk; fi;
|
||||
if [ -f lineage_$2.mk ]; then
|
||||
echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage_$2.mk;
|
||||
#if [ "$3" = true ]; echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram-inprocess.mk)' >> lineage_$2.mk; fi;
|
||||
fi;
|
||||
if [ -f BoardConfig.mk ]; then echo 'MALLOC_SVELTE := true' >> BoardConfig.mk; fi;
|
||||
if [ -f BoardConfigCommon.mk ]; then echo 'MALLOC_SVELTE := true' >> BoardConfigCommon.mk; fi;
|
||||
echo "Enabled lowram for $1";
|
||||
|
@ -477,12 +477,12 @@ removeBuildFingerprints || true;
|
||||
enableAutoVarInit || true;
|
||||
|
||||
#Tweaks for <2GB RAM devices
|
||||
enableLowRam "device/asus/fugu" "fugu";
|
||||
enableLowRam "device/motorola/harpia" "harpia";
|
||||
enableLowRam "device/motorola/merlin" "merlin";
|
||||
enableLowRam "device/motorola/msm8916-common" "msm8916-common";
|
||||
enableLowRam "device/motorola/osprey" "osprey";
|
||||
enableLowRam "device/motorola/surnia" "surnia";
|
||||
enableLowRam "device/asus/fugu" "fugu" true;
|
||||
enableLowRam "device/motorola/harpia" "harpia" true;
|
||||
enableLowRam "device/motorola/merlin" "merlin" true;
|
||||
enableLowRam "device/motorola/msm8916-common" "msm8916-common" true;
|
||||
enableLowRam "device/motorola/osprey" "osprey" true;
|
||||
enableLowRam "device/motorola/surnia" "surnia" true;
|
||||
#Tweaks for <3GB RAM devices
|
||||
enableLowRam "device/cyanogen/msm8916-common" "msm8916-common";
|
||||
enableLowRam "device/motorola/clark" "clark";
|
||||
|
@ -187,8 +187,11 @@ export -f enableDexPreOpt;
|
||||
|
||||
enableLowRam() {
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
if [ -f lineage.mk ]; then echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage.mk; fi;
|
||||
if [ -f lineage_$2.mk ]; then echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage_$2.mk; fi;
|
||||
if [ -f lineage_$2.mk ]; then
|
||||
echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage_$2.mk;
|
||||
#if [ "$3" = true ]; echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram-inprocess.mk)' >> lineage_$2.mk; fi;
|
||||
#if [ "$4" = true ]; echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram-inprocess-phone.mk)' >> lineage_$2.mk; fi;
|
||||
fi;
|
||||
#if [ -f BoardConfig.mk ]; then echo 'MALLOC_SVELTE := true' >> BoardConfig.mk; fi; #XXX: Disables use of scudo hardened memory allocator
|
||||
#if [ -f BoardConfigCommon.mk ]; then echo 'MALLOC_SVELTE := true' >> BoardConfigCommon.mk; fi;
|
||||
echo "Enabled lowram for $1";
|
||||
|
@ -559,10 +559,10 @@ removeBuildFingerprints || true;
|
||||
enableAutoVarInit || true;
|
||||
|
||||
#Tweaks for <2GB RAM devices
|
||||
enableLowRam "device/samsung/msm8930-common" "msm8930-common";
|
||||
enableLowRam "device/samsung/serrano3gxx" "serrano3gxx";
|
||||
enableLowRam "device/samsung/serrano-common" "serrano-common";
|
||||
enableLowRam "device/samsung/serranoltexx" "serranoltexx";
|
||||
enableLowRam "device/samsung/msm8930-common" "msm8930-common" true true;
|
||||
enableLowRam "device/samsung/serrano3gxx" "serrano3gxx" true true;
|
||||
enableLowRam "device/samsung/serrano-common" "serrano-common" true true;
|
||||
enableLowRam "device/samsung/serranoltexx" "serranoltexx" true true;
|
||||
#Tweaks for <3GB RAM devices
|
||||
enableLowRam "device/asus/flox" "flox";
|
||||
enableLowRam "device/fairphone/FP2" "FP2";
|
||||
|
@ -128,7 +128,6 @@ export -f enableDexPreOpt;
|
||||
|
||||
enableLowRam() {
|
||||
cd "$DOS_BUILD_BASE$1";
|
||||
if [ -f lineage.mk ]; then echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage.mk; fi;
|
||||
if [ -f lineage_$2.mk ]; then echo -e '\n$(call inherit-product, vendor/divested/build/target/product/lowram.mk)' >> lineage_$2.mk; fi;
|
||||
#if [ -f BoardConfig.mk ]; then echo 'MALLOC_SVELTE := true' >> BoardConfig.mk; fi; #XXX: Disables use of scudo hardened memory allocator
|
||||
#if [ -f BoardConfigCommon.mk ]; then echo 'MALLOC_SVELTE := true' >> BoardConfigCommon.mk; fi;
|
||||
|
@ -373,7 +373,6 @@ if [ "$DOS_MICROG_INCLUDED" != "NONE" ]; then echo "PRODUCT_PACKAGES += DejaVuNl
|
||||
if [ "$DOS_MICROG_INCLUDED" = "NLP" ]; then echo "PRODUCT_PACKAGES += UnifiedNLP" >> packages.mk; fi; #Include UnifiedNlp
|
||||
#echo "PRODUCT_PACKAGES += vendor.lineage.trust@1.0-service" >> packages.mk; #Add deny usb service, all of our kernels have the necessary patch #XXX 19REBASE: is this necessary?
|
||||
echo "PRODUCT_PACKAGES += eSpeakNG" >> packages.mk; #PicoTTS needs work to compile on 18.1, use eSpeak-NG instead
|
||||
awk -i inplace '!/F-DroidPrivilegedExtensionOfficial/' packages.mk; #Appears to be broken
|
||||
sed -i 's/wifi,cell/internet/' overlay/common/frameworks/base/packages/SystemUI/res/values/config.xml; #Use the modern quick tile
|
||||
fi;
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user