Tiny tweaks
This commit is contained in:
parent
71fe4d590e
commit
47ca4c5954
@ -116,7 +116,8 @@ generateBootAnimationMask() {
|
|||||||
local text=$1;
|
local text=$1;
|
||||||
local font=$2
|
local font=$2
|
||||||
local output=$3;
|
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;
|
export -f generateBootAnimationMask;
|
||||||
|
|
||||||
@ -126,6 +127,7 @@ generateBootAnimationShine() {
|
|||||||
local output=$3;
|
local output=$3;
|
||||||
#The colors need to be symmetrical in order to make the animation smooth and not have any noticble lines
|
#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";
|
convert -size 1024x128 -define gradient:angle=90 "$style":"$color" \( +clone -flop \) +append "$output";
|
||||||
|
optipng "$output";
|
||||||
}
|
}
|
||||||
export -f generateBootAnimationShine;
|
export -f generateBootAnimationShine;
|
||||||
|
|
||||||
|
@ -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
|
awk -i inplace '!/TARGET_RELEASETOOLS_EXTENSIONS/' BoardConfig.mk; #broken releasetools
|
||||||
|
|
||||||
enterAndClear "device/motorola/clark";
|
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 "recovery_only('" >> 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 " 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";
|
enterAndClear "device/oneplus/avicii";
|
||||||
enableVerity; #Resurrect dm-verity
|
enableVerity; #Resurrect dm-verity
|
||||||
|
@ -79,7 +79,7 @@ export DOS_GPG_SIGNING_KEY="B8744D67F9F1E14E145DFD8E7F627E920F316994";
|
|||||||
#Branding
|
#Branding
|
||||||
export DOS_BRANDING_NAME="DivestOS";
|
export DOS_BRANDING_NAME="DivestOS";
|
||||||
export DOS_BRANDING_ZIP_PREFIX="divested";
|
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_STYLE="plasma"; #Options: gradient, plasma
|
||||||
#export DOS_BRANDING_BOOTANIMATION_COLOR="#FF5722-#FF8A65"; #gradient
|
#export DOS_BRANDING_BOOTANIMATION_COLOR="#FF5722-#FF8A65"; #gradient
|
||||||
export DOS_BRANDING_BOOTANIMATION_COLOR="#FF5722-#03A9F4"; #plasma
|
export DOS_BRANDING_BOOTANIMATION_COLOR="#FF5722-#03A9F4"; #plasma
|
||||||
|
Loading…
x
Reference in New Issue
Block a user