diff --git a/Scripts/LineageOS-14.1/Patch.sh b/Scripts/LineageOS-14.1/Patch.sh index 6a0c7adc..0e7e2cb3 100755 --- a/Scripts/LineageOS-14.1/Patch.sh +++ b/Scripts/LineageOS-14.1/Patch.sh @@ -203,6 +203,7 @@ enterAndClear "device/amazon/hdx-common" echo "/dev/block/platform/msm_sdcc.1/by-name/misc /misc emmc defaults defaults" >> rootdir/etc/fstab.qcom; #Add the misc (mmcblk0p5) partition for recovery flags enterAndClear "device/motorola/clark" +git revert 6a116d3d47a23fb33a064916995cbb3b265cf32f patch -p1 < $patches"android_device_motorola_clark/0001-Tri_State_Torch.patch" #Tri-state torch enterAndClear "device/oneplus/bacon" diff --git a/Scripts/LineageOS-15.1/Functions.sh b/Scripts/LineageOS-15.1/Functions.sh index f555a8dd..cb9293a1 100644 --- a/Scripts/LineageOS-15.1/Functions.sh +++ b/Scripts/LineageOS-15.1/Functions.sh @@ -72,7 +72,8 @@ export -f buildAll; patchWorkspace() { source build/envsetup.sh; - repopick 204743 204744; + repopick 204743 204744 207991; #Cherry picks + source $scripts/Patch.sh; source $scripts/Defaults.sh; source $scripts/Overclock.sh; @@ -107,6 +108,14 @@ enableDexPreOptFull() { } export -f enableDexPreOptFull; +compressRamdisks() { + if [ -f BoardConfig.mk ]; then + echo "LZMA_RAMDISK_TARGETS := boot,recovery" >> BoardConfig.mk; + echo "Enabled ramdisk compression"; + fi; +} +export -f compressRamdisks; + enhanceLocation() { cd $base$1; #Enable GLONASS diff --git a/Scripts/LineageOS-15.1/Patch.sh b/Scripts/LineageOS-15.1/Patch.sh index 250d7632..4d6c2e4c 100755 --- a/Scripts/LineageOS-15.1/Patch.sh +++ b/Scripts/LineageOS-15.1/Patch.sh @@ -57,6 +57,9 @@ echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/a #top dir cp -r $patches"Fennec_DOS-Shim" $base"packages/apps/"; #Add a shim to install Fennec DOS without actually including the large APK +#enterAndClear "bootable/recovery" +#optipng -strip all res*/images/*.png; + enterAndClear "build/make" #patch -p1 < $patches"android_build/0001-Automated_Build_Signing.patch" #Automated build signing. Disclaimer: From CopperheadOS 13.0 #TODO: Rebase sed -i 's/messaging/Silence/' target/product/*.mk; #Replace AOSP Messaging app with Silence