vendor: lineage boot animation
Change-Id: Iff2087eb97aee5e586eecf3898f0066d99bc885c
This commit is contained in:
parent
fecbcbe269
commit
2371d23f28
Binary file not shown.
@ -6,18 +6,21 @@ HALF_RES="$3"
|
|||||||
OUT="$ANDROID_PRODUCT_OUT/obj/BOOTANIMATION"
|
OUT="$ANDROID_PRODUCT_OUT/obj/BOOTANIMATION"
|
||||||
|
|
||||||
if [ "$HEIGHT" -lt "$WIDTH" ]; then
|
if [ "$HEIGHT" -lt "$WIDTH" ]; then
|
||||||
SIZE="$HEIGHT"
|
IMAGEWIDTH="$HEIGHT"
|
||||||
else
|
else
|
||||||
SIZE="$WIDTH"
|
IMAGEWIDTH="$WIDTH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
IMAGESCALEWIDTH="$IMAGEWIDTH"
|
||||||
|
IMAGESCALEHEIGHT=$(expr $IMAGESCALEWIDTH / 3)
|
||||||
|
|
||||||
if [ "$HALF_RES" = "true" ]; then
|
if [ "$HALF_RES" = "true" ]; then
|
||||||
IMAGESIZE=$(expr $SIZE / 2)
|
IMAGEWIDTH=$(expr $IMAGEWIDTH / 2)
|
||||||
else
|
|
||||||
IMAGESIZE="$SIZE"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RESOLUTION=""$IMAGESIZE"x"$IMAGESIZE""
|
IMAGEHEIGHT=$(expr $IMAGEWIDTH / 3)
|
||||||
|
|
||||||
|
RESOLUTION=""$IMAGEWIDTH"x"$IMAGEHEIGHT""
|
||||||
|
|
||||||
for part_cnt in 0 1 2
|
for part_cnt in 0 1 2
|
||||||
do
|
do
|
||||||
@ -26,7 +29,7 @@ done
|
|||||||
tar xfp "vendor/cm/bootanimation/bootanimation.tar" --to-command="convert - -resize '$RESOLUTION' \"png8:$OUT/bootanimation/\$TAR_FILENAME\""
|
tar xfp "vendor/cm/bootanimation/bootanimation.tar" --to-command="convert - -resize '$RESOLUTION' \"png8:$OUT/bootanimation/\$TAR_FILENAME\""
|
||||||
|
|
||||||
# Create desc.txt
|
# 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"
|
cat "vendor/cm/bootanimation/desc.txt" >> "$OUT/bootanimation/desc.txt"
|
||||||
|
|
||||||
# Create bootanimation.zip
|
# Create bootanimation.zip
|
||||||
|
@ -90,6 +90,10 @@ include vendor/cm/config/themes_common.mk
|
|||||||
# CMSDK
|
# CMSDK
|
||||||
include vendor/cm/config/cmsdk_common.mk
|
include vendor/cm/config/cmsdk_common.mk
|
||||||
|
|
||||||
|
# Bootanimation
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
bootanimation.zip
|
||||||
|
|
||||||
# Required CM packages
|
# Required CM packages
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
CMAudioService \
|
CMAudioService \
|
||||||
|
Loading…
Reference in New Issue
Block a user