mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
Fix boot animation + churn
Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
0e1266ac1f
commit
163a162568
13 changed files with 82 additions and 60 deletions
|
@ -151,8 +151,7 @@ generateBootAnimationMask() {
|
|||
local text=$1;
|
||||
local font=$2
|
||||
local output=$3;
|
||||
convert -background black -fill transparent -font "$font" -gravity center -size 512x128 label:"$text" "$output";
|
||||
#optipng "$output"; #XXX: breaks boot animation on 14.1?
|
||||
convert -depth 8 -background black -fill transparent -font "$font" -gravity center -size 512x128 label:"$text" "PNG32:$output";
|
||||
}
|
||||
export -f generateBootAnimationMask;
|
||||
|
||||
|
@ -160,9 +159,8 @@ generateBootAnimationShine() {
|
|||
local color=$1;
|
||||
local style=$2;
|
||||
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";
|
||||
#The colors need to be symmetrical in order to make the animation smooth and not have any noticeable lines
|
||||
convert -depth 8 -size 1024x128 -define gradient:angle=90 "$style":"$color" \( +clone -flop \) +append "PNG24:$output";
|
||||
}
|
||||
export -f generateBootAnimationShine;
|
||||
|
||||
|
@ -179,7 +177,7 @@ export -f audit2allowADB;
|
|||
|
||||
processRelease() {
|
||||
#Reference (MIT): GrapheneOS
|
||||
#https://github.com/GrapheneOS/script/blob/10/release.sh
|
||||
#https://github.com/GrapheneOS/script/blob/12.1/release.sh
|
||||
local DEVICE="$1";
|
||||
local BLOCK="$2";
|
||||
local VERITY="$3";
|
||||
|
|
|
@ -417,14 +417,26 @@ enableLowRam "device/samsung/smdk4412-common";
|
|||
enableLowRam "device/samsung/toro";
|
||||
enableLowRam "device/samsung/toroplus";
|
||||
enableLowRam "device/samsung/tuna";
|
||||
enableLowRam "device/unihertz/jellypro";
|
||||
#Tweaks for <3GB RAM devices
|
||||
#enableLowRam "device/amazon/apollo";
|
||||
#enableLowRam "device/amazon/hdx-common";
|
||||
#enableLowRam "device/amazon/thor";
|
||||
#enableLowRam "device/htc/m7";
|
||||
#enableLowRam "device/htc/m7-common";
|
||||
#enableLowRam "device/htc/msm8960-common";
|
||||
#enableLowRam "device/samsung/d2att";
|
||||
#enableLowRam "device/samsung/d2-common";
|
||||
#enableLowRam "device/samsung/d2spr";
|
||||
#enableLowRam "device/samsung/d2tmo";
|
||||
#enableLowRam "device/samsung/d2vzw";
|
||||
#enableLowRam "device/samsung/i9305";
|
||||
#enableLowRam "device/samsung/kona-common";
|
||||
#enableLowRam "device/samsung/msm8960-common";
|
||||
#enableLowRam "device/samsung/n5100";
|
||||
#enableLowRam "device/samsung/n5110";
|
||||
#enableLowRam "device/samsung/n5120";
|
||||
#enableLowRam "device/samsung/n7100";
|
||||
|
||||
#Fixes
|
||||
#Fix broken options enabled by hardenDefconfig()
|
||||
|
|
|
@ -334,6 +334,13 @@ removeBuildFingerprints || true;
|
|||
|
||||
#Tweaks for <2GB RAM devices
|
||||
enableLowRam "device/asus/fugu";
|
||||
#Tweaks for <3GB RAM devices
|
||||
#enableLowRam "device/asus/deb";
|
||||
#enableLowRam "device/asus/flo";
|
||||
#enableLowRam "device/htc/flounder";
|
||||
#enableLowRam "device/htc/flounder_lte";
|
||||
#enableLowRam "device/lge/bullhead";
|
||||
#enableLowRam "device/lge/hammerhead";
|
||||
|
||||
#Fix broken options enabled by hardenDefconfig()
|
||||
sed -i "s/CONFIG_DEBUG_RODATA=y/# CONFIG_DEBUG_RODATA is not set/" kernel/google/msm/arch/arm/configs/lineageos_*_defconfig; #Breaks on compile
|
||||
|
|
|
@ -392,6 +392,9 @@ removeBuildFingerprints || true;
|
|||
|
||||
#Tweaks for <2GB RAM devices
|
||||
enableLowRam "device/asus/fugu" "fugu";
|
||||
#Tweaks for <3GB RAM devices
|
||||
#enableLowRam "device/lge/hammerhead" "hammerhead";
|
||||
#enableLowRam "device/samsung/kccat6" "kccat6";
|
||||
|
||||
#Fix broken options enabled by hardenDefconfig()
|
||||
sed -i "s/CONFIG_STRICT_MEMORY_RWX=y/# CONFIG_STRICT_MEMORY_RWX is not set/" kernel/asus/msm8953/arch/arm64/configs/*_defconfig; #Breaks on compile
|
||||
|
|
|
@ -30,7 +30,7 @@ awk -i inplace '!/DrawSurface\(logo.get\(\)/' recovery_ui/screen_ui.cpp; #Hide l
|
|||
mogrify -format png -fill "#FF5722" -opaque "#167C80" -fuzz 10% res-*/images/*sel.png; #Recolor icons
|
||||
mogrify -format png -fill "#FF5722" -opaque "#7c4dff" -fuzz 10% res-*/images/ic_back_sel.png;
|
||||
sed -i 's|0x7c, 0x4d, 0xff|0xff, 0x57, 0x22|' recovery_ui/*ui.cpp; #Recolor accents (recovery primary)
|
||||
sed -i 's|0xf8, 0x90, 0xff|0xff, 0x98, 0x00|' recovery_ui/*ui.cpp; #Recolor accents (recovery secondar)
|
||||
sed -i 's|0xf8, 0x90, 0xff|0xff, 0x98, 0x00|' recovery_ui/*ui.cpp; #Recolor accents (recovery secondary)
|
||||
sed -i 's|0xe6, 0x51, 0x00|0x4c, 0xaf, 0x50|' recovery_ui/*ui.cpp; #Recolor accents (fastboot primary)
|
||||
sed -i 's|0xfd, 0xd8, 0x35|0x8b, 0xc3, 0x4a|' recovery_ui/*ui.cpp; #Recolor accents (fastboot secondary)
|
||||
sed -i 's|0xfd, 0xd8,0x35|0x8b, 0xc3, 0x4a|' recovery_ui/*ui.cpp; #Recolor accents (fastboot secondary typo)
|
||||
|
|
|
@ -29,7 +29,7 @@ awk -i inplace '!/DrawSurface\(logo.get\(\)/' recovery_ui/screen_ui.cpp; #Hide l
|
|||
mogrify -format png -fill "#FF5722" -opaque "#167C80" -fuzz 10% res-*/images/*sel.png; #Recolor icons
|
||||
mogrify -format png -fill "#FF5722" -opaque "#7c4dff" -fuzz 10% res-*/images/ic_back_sel.png;
|
||||
sed -i 's|0x7c, 0x4d, 0xff|0xff, 0x57, 0x22|' recovery_ui/*ui.cpp; #Recolor accents (recovery primary)
|
||||
sed -i 's|0xf8, 0x90, 0xff|0xff, 0x98, 0x00|' recovery_ui/*ui.cpp; #Recolor accents (recovery secondar)
|
||||
sed -i 's|0xf8, 0x90, 0xff|0xff, 0x98, 0x00|' recovery_ui/*ui.cpp; #Recolor accents (recovery secondary)
|
||||
sed -i 's|0xe6, 0x51, 0x00|0x4c, 0xaf, 0x50|' recovery_ui/*ui.cpp; #Recolor accents (fastboot primary)
|
||||
sed -i 's|0xfd, 0xd8, 0x35|0x8b, 0xc3, 0x4a|' recovery_ui/*ui.cpp; #Recolor accents (fastboot secondary)
|
||||
sed -i 's|0xfd, 0xd8,0x35|0x8b, 0xc3, 0x4a|' recovery_ui/*ui.cpp; #Recolor accents (fastboot secondary typo)
|
||||
|
|
|
@ -296,15 +296,15 @@ fi;
|
|||
fi;
|
||||
|
||||
if enterAndClear "packages/modules/Permission"; then
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0002-Network_Permission-1.patch"; #always treat INTERNET as a runtime permission (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0002-Network_Permission-2.patch"; #add INTERNET permission toggle (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0003-Sensors_Permission-1.patch"; #always treat OTHER_SENSORS as a runtime permission (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0003-Sensors_Permission-2.patch"; #add OTHER_SENSORS permission group (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0004-Special_Permission-1.patch"; #refactor handling of special runtime permissions (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0004-Special_Permission-2.patch"; #don't auto revoke Network and Sensors (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0004-Special_Permission-3.patch"; #ui fix for special runtime permission (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0004-Special_Permission-4.patch"; #fix usage UI summary for Network/Sensors (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0005-Browser_No_Location.patch"; #stop auto-granting location to system browsers (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0002-Network_Permission-1.patch"; #Always treat INTERNET as a runtime permission (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0002-Network_Permission-2.patch"; #Add INTERNET permission toggle (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0003-Sensors_Permission-1.patch"; #Always treat OTHER_SENSORS as a runtime permission (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0003-Sensors_Permission-2.patch"; #Add OTHER_SENSORS permission group (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0004-Special_Permission-1.patch"; #Refactor handling of special runtime permissions (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0004-Special_Permission-2.patch"; #Don't auto revoke Network and Sensors (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0004-Special_Permission-3.patch"; #UI fix for special runtime permission (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0004-Special_Permission-4.patch"; #Fix usage UI summary for Network/Sensors (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0005-Browser_No_Location.patch"; #Stop auto-granting location to system browsers (GrapheneOS)
|
||||
applyPatch "$DOS_PATCHES/android_packages_modules_Permission/0006-Location_Indicators.patch"; #SystemUI: Use new privacy indicators for location (GrapheneOS)
|
||||
fi;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ awk -i inplace '!/DrawSurface\(logo.get\(\)/' recovery_ui/screen_ui.cpp; #Hide l
|
|||
mogrify -format png -fill "#FF5722" -opaque "#167C80" -fuzz 10% res-*/images/*sel.png; #Recolor icons
|
||||
mogrify -format png -fill "#FF5722" -opaque "#7c4dff" -fuzz 10% res-*/images/ic_back_sel.png;
|
||||
sed -i 's|0x7c, 0x4d, 0xff|0xff, 0x57, 0x22|' recovery_ui/*ui.cpp; #Recolor accents (recovery primary)
|
||||
sed -i 's|0xf8, 0x90, 0xff|0xff, 0x98, 0x00|' recovery_ui/*ui.cpp; #Recolor accents (recovery secondar)
|
||||
sed -i 's|0xf8, 0x90, 0xff|0xff, 0x98, 0x00|' recovery_ui/*ui.cpp; #Recolor accents (recovery secondary)
|
||||
sed -i 's|0xe6, 0x51, 0x00|0x4c, 0xaf, 0x50|' recovery_ui/*ui.cpp; #Recolor accents (fastboot primary)
|
||||
sed -i 's|0xfd, 0xd8, 0x35|0x8b, 0xc3, 0x4a|' recovery_ui/*ui.cpp; #Recolor accents (fastboot secondary)
|
||||
sed -i 's|0xfd, 0xd8,0x35|0x8b, 0xc3, 0x4a|' recovery_ui/*ui.cpp; #Recolor accents (fastboot secondary typo)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue