From bfa7e90d5ed12b69f0b80ca96628d81e7d2eac3a Mon Sep 17 00:00:00 2001 From: Tad Date: Sun, 24 Jun 2018 08:42:02 -0400 Subject: [PATCH] Boot animation shine! --- Scripts/Common/Functions.sh | 7 +++++++ Scripts/LineageOS-14.1/Rebrand.sh | 2 +- Scripts/LineageOS-15.1/Rebrand.sh | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Scripts/Common/Functions.sh b/Scripts/Common/Functions.sh index 8d0bc06b..3ee4d2b2 100644 --- a/Scripts/Common/Functions.sh +++ b/Scripts/Common/Functions.sh @@ -95,6 +95,13 @@ generateBootAnimationMask() { } export -f generateBootAnimationMask; +generateBootAnimationShine() { + color=$1; + output=$2; + convert -size 1024x128 -define gradient:angle=90 gradient:"$color"-#9E9E9E \( +clone -flop \) +append "$output"; +} +export -f generateBootAnimationShine; + audit2allowCurrent() { adb shell dmesg | audit2allow -p "$ANDROID_PRODUCT_OUT"/root/sepolicy; } diff --git a/Scripts/LineageOS-14.1/Rebrand.sh b/Scripts/LineageOS-14.1/Rebrand.sh index f32a11ec..b123308d 100644 --- a/Scripts/LineageOS-14.1/Rebrand.sh +++ b/Scripts/LineageOS-14.1/Rebrand.sh @@ -30,7 +30,7 @@ sed -i '/CM_TARGET_PACKAGE/s/lineage/'"$REBRAND_ZIP_PREFIX"'/' core/Makefile; enter "frameworks/base"; generateBootAnimationMask "$REBRAND_NAME" "$REBRAND_BOOTANIMATION_FONT" core/res/assets/images/android-logo-mask.png; -#TODO: update android-logo-shine.png from white to orange +generateBootAnimationShine "#FF5722" core/res/assets/images/android-logo-shine.png; enter "packages/apps/Settings"; sed -i '/.*cmlicense_title/s/LineageOS/'"$REBRAND_NAME"'/' res/values*/cm_strings.xml; diff --git a/Scripts/LineageOS-15.1/Rebrand.sh b/Scripts/LineageOS-15.1/Rebrand.sh index 7432f702..81754f99 100644 --- a/Scripts/LineageOS-15.1/Rebrand.sh +++ b/Scripts/LineageOS-15.1/Rebrand.sh @@ -36,7 +36,7 @@ sed -i 's|echo "ro.build.host=`hostname`"|echo "ro.build.host=dosbm"|' tools/bui enter "frameworks/base"; generateBootAnimationMask "$REBRAND_NAME" "$REBRAND_BOOTANIMATION_FONT" core/res/assets/images/android-logo-mask.png; -#TODO: update android-logo-shine.png from white to orange +generateBootAnimationShine "#FF5722" core/res/assets/images/android-logo-shine.png; enter "lineage-sdk"; sed -i '/.*lineage_version/s/LineageOS/'"$REBRAND_NAME"'/' lineage/res/res/values*/strings.xml;