diff --git a/Scripts/Common/Functions.sh b/Scripts/Common/Functions.sh index d938d346..c7976064 100644 --- a/Scripts/Common/Functions.sh +++ b/Scripts/Common/Functions.sh @@ -116,7 +116,8 @@ generateBootAnimationMask() { local text=$1; local font=$2 local output=$3; - convert -background black -fill transparent -font "$font" -gravity center -size 512x128 label:"$text" "$output"; + convert -background black -fill transparent -font "$font" -gravity center -size 512x128 label:"$text\n"$(date +%Y.%m) "$output"; + optipng "$output"; } export -f generateBootAnimationMask; @@ -126,6 +127,7 @@ generateBootAnimationShine() { local output=$3; #The colors need to be symmetrical in order to make the animation smooth and not have any noticble lines convert -size 1024x128 -define gradient:angle=90 "$style":"$color" \( +clone -flop \) +append "$output"; + optipng "$output"; } export -f generateBootAnimationShine; diff --git a/Scripts/LineageOS-17.1/Patch.sh b/Scripts/LineageOS-17.1/Patch.sh index 80205d93..2ecfe9fe 100644 --- a/Scripts/LineageOS-17.1/Patch.sh +++ b/Scripts/LineageOS-17.1/Patch.sh @@ -251,8 +251,13 @@ echo "pmf=0" >> wifi/wpa_supplicant_overlay.conf; #Wi-Fi chipset doesn't support awk -i inplace '!/TARGET_RELEASETOOLS_EXTENSIONS/' BoardConfig.mk; #broken releasetools enterAndClear "device/motorola/clark"; -echo "recovery_only(' allow firmware_file labeledfs:filesystem associate; ')" >> sepolicy/recovery.te; #304224: Allow recovery to unzip and chmod modem firmware -#echo "TARGET_RECOVERY_PERMISSIVE_OVERRIDE := true" >> BoardConfig.mk; #Allow extract_firmware.sh to function +echo "recovery_only('" >> sepolicy/recovery.te; #304224: Allow recovery to unzip and chmod modem firmware +echo " allow firmware_file labeledfs:filesystem associate;" >> sepolicy/recovery.te; +echo " allow recovery firmware_file:dir search;" >> sepolicy/recovery.te; +echo " allow recovery firmware_file:file { open write };" >> sepolicy/recovery.te; +echo "')" >> sepolicy/recovery.te; +#sed -i '2isetenforce 0' releasetools/extract_firmware.sh; +#echo "setenforce 1" >> releasetools/extract_firmware.sh; enterAndClear "device/oneplus/avicii"; enableVerity; #Resurrect dm-verity diff --git a/Scripts/init.sh b/Scripts/init.sh index 3b0137ae..7b70b9ae 100644 --- a/Scripts/init.sh +++ b/Scripts/init.sh @@ -79,7 +79,7 @@ export DOS_GPG_SIGNING_KEY="B8744D67F9F1E14E145DFD8E7F627E920F316994"; #Branding export DOS_BRANDING_NAME="DivestOS"; export DOS_BRANDING_ZIP_PREFIX="divested"; -export DOS_BRANDING_BOOTANIMATION_FONT="Fira-Sans-Bold"; #Options: $ convert -list font +export DOS_BRANDING_BOOTANIMATION_FONT="Fira-Sans-Heavy"; #Options: $ convert -list font export DOS_BRANDING_BOOTANIMATION_STYLE="plasma"; #Options: gradient, plasma #export DOS_BRANDING_BOOTANIMATION_COLOR="#FF5722-#FF8A65"; #gradient export DOS_BRANDING_BOOTANIMATION_COLOR="#FF5722-#03A9F4"; #plasma