diff --git a/bootanimation/Android.mk b/bootanimation/Android.mk index 70bdc4bcbdbb271ebcba4316f9fcace1ec590d0b..ffe6701be260a3badd4b69113577658800c0c943 100644 --- a/bootanimation/Android.mk +++ b/bootanimation/Android.mk @@ -15,24 +15,38 @@ # limitations under the License. # +ifeq ($(TARGET_USES_MURENA_BOOTANIMATION),true) +BOOTANIMATION_TAR = bootanimation_murena.tar +else +BOOTANIMATION_TAR = bootanimation.tar +endif + TARGET_GENERATED_BOOTANIMATION := $(TARGET_OUT_INTERMEDIATES)/BOOTANIMATION/bootanimation.zip $(TARGET_GENERATED_BOOTANIMATION): INTERMEDIATES := $(TARGET_OUT_INTERMEDIATES)/BOOTANIMATION $(TARGET_GENERATED_BOOTANIMATION): $(SOONG_ZIP) @echo "Building bootanimation.zip" @rm -rf $(dir $@) @mkdir -p $(dir $@) - $(hide) tar xfp vendor/lineage/bootanimation/bootanimation.tar -C $(INTERMEDIATES) + $(hide) tar xfp vendor/lineage/bootanimation/$(BOOTANIMATION_TAR) -C $(INTERMEDIATES) $(hide) if [ $(TARGET_SCREEN_HEIGHT) -lt $(TARGET_SCREEN_WIDTH) ]; then \ IMAGEWIDTH=$(TARGET_SCREEN_HEIGHT); \ else \ IMAGEWIDTH=$(TARGET_SCREEN_WIDTH); \ fi; \ IMAGESCALEWIDTH=$$IMAGEWIDTH; \ - IMAGESCALEHEIGHT=$$(expr $$IMAGESCALEWIDTH / 3); \ + if [ "$(TARGET_USES_MURENA_BOOTANIMATION)" = "true" ]; then \ + IMAGESCALEHEIGHT=$(TARGET_SCREEN_HEIGHT); \ + else \ + IMAGESCALEHEIGHT=$$(expr $$IMAGESCALEWIDTH / 3); \ + fi; \ if [ "$(TARGET_BOOTANIMATION_HALF_RES)" = "true" ]; then \ IMAGEWIDTH="$$(expr "$$IMAGEWIDTH" / 2)"; \ fi; \ - IMAGEHEIGHT=$$(expr $$IMAGEWIDTH / 3); \ + if [ "$(TARGET_USES_MURENA_BOOTANIMATION)" = "true" ]; then \ + IMAGEHEIGHT=$(TARGET_SCREEN_HEIGHT); \ + else \ + IMAGEHEIGHT=$$(expr $$IMAGEWIDTH / 3); \ + fi; \ RESOLUTION="$$IMAGEWIDTH"x"$$IMAGEHEIGHT"; \ for part_cnt in 0 1 2 3 4; do \ mkdir -p $(INTERMEDIATES)/part$$part_cnt; \ diff --git a/bootanimation/bootanimation_murena.tar b/bootanimation/bootanimation_murena.tar new file mode 100644 index 0000000000000000000000000000000000000000..0d2c2cefe7e4f93fe4263f0a09e5587492d6ec05 Binary files /dev/null and b/bootanimation/bootanimation_murena.tar differ