diff options
author | Asher Simonds <dayanhammer@gmail.com> | 2017-01-16 21:52:24 -0600 |
---|---|---|
committer | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2017-01-17 19:29:58 +0800 |
commit | 2371d23f28c2aa3c71315b9079babcec45e5e375 (patch) | |
tree | 24f3e212e6d5c773225209280354e63332e63a1d | |
parent | fecbcbe269efe76c1ba9ee018a47cb3cb2ce78b6 (diff) | |
download | vendor_replicant-2371d23f28c2aa3c71315b9079babcec45e5e375.zip vendor_replicant-2371d23f28c2aa3c71315b9079babcec45e5e375.tar.gz vendor_replicant-2371d23f28c2aa3c71315b9079babcec45e5e375.tar.bz2 |
vendor: lineage boot animation
Change-Id: Iff2087eb97aee5e586eecf3898f0066d99bc885c
-rw-r--r-- | bootanimation/bootanimation.tar | bin | 6563840 -> 5416960 bytes | |||
-rwxr-xr-x | bootanimation/generate-bootanimation.sh | 17 | ||||
-rw-r--r-- | config/common.mk | 4 |
3 files changed, 14 insertions, 7 deletions
diff --git a/bootanimation/bootanimation.tar b/bootanimation/bootanimation.tar Binary files differindex 50e82bf..95f6b4c 100644 --- a/bootanimation/bootanimation.tar +++ b/bootanimation/bootanimation.tar diff --git a/bootanimation/generate-bootanimation.sh b/bootanimation/generate-bootanimation.sh index b5d8f19..5a30c39 100755 --- a/bootanimation/generate-bootanimation.sh +++ b/bootanimation/generate-bootanimation.sh @@ -6,18 +6,21 @@ HALF_RES="$3" OUT="$ANDROID_PRODUCT_OUT/obj/BOOTANIMATION" if [ "$HEIGHT" -lt "$WIDTH" ]; then - SIZE="$HEIGHT" + IMAGEWIDTH="$HEIGHT" else - SIZE="$WIDTH" + IMAGEWIDTH="$WIDTH" fi +IMAGESCALEWIDTH="$IMAGEWIDTH" +IMAGESCALEHEIGHT=$(expr $IMAGESCALEWIDTH / 3) + if [ "$HALF_RES" = "true" ]; then - IMAGESIZE=$(expr $SIZE / 2) -else - IMAGESIZE="$SIZE" + IMAGEWIDTH=$(expr $IMAGEWIDTH / 2) fi -RESOLUTION=""$IMAGESIZE"x"$IMAGESIZE"" +IMAGEHEIGHT=$(expr $IMAGEWIDTH / 3) + +RESOLUTION=""$IMAGEWIDTH"x"$IMAGEHEIGHT"" for part_cnt in 0 1 2 do @@ -26,7 +29,7 @@ done tar xfp "vendor/cm/bootanimation/bootanimation.tar" --to-command="convert - -resize '$RESOLUTION' \"png8:$OUT/bootanimation/\$TAR_FILENAME\"" # Create desc.txt -echo "$SIZE" "$SIZE" 30 > "$OUT/bootanimation/desc.txt" +echo "$IMAGESCALEWIDTH $IMAGESCALEHEIGHT" 30 > "$OUT/bootanimation/desc.txt" cat "vendor/cm/bootanimation/desc.txt" >> "$OUT/bootanimation/desc.txt" # Create bootanimation.zip diff --git a/config/common.mk b/config/common.mk index b03299a..5671283 100644 --- a/config/common.mk +++ b/config/common.mk @@ -90,6 +90,10 @@ include vendor/cm/config/themes_common.mk # CMSDK include vendor/cm/config/cmsdk_common.mk +# Bootanimation +PRODUCT_PACKAGES += \ + bootanimation.zip + # Required CM packages PRODUCT_PACKAGES += \ CMAudioService \ |