From 290b1191d5fcdf24d413366a7224e00bc1500d70 Mon Sep 17 00:00:00 2001 From: MOVZX Date: Fri, 5 Dec 2025 18:19:58 +0700 Subject: [PATCH] Add my custom boot animation Signed-off-by: MOVZX --- bootanimation/Android.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bootanimation/Android.mk b/bootanimation/Android.mk index 97948f38..ab4d4dc3 100644 --- a/bootanimation/Android.mk +++ b/bootanimation/Android.mk @@ -39,8 +39,17 @@ $(TARGET_GENERATED_BOOTANIMATION): $(SOONG_ZIP) cat vendor/lineage/bootanimation/desc.txt >> $(INTERMEDIATES)/desc.txt $(hide) $(SOONG_ZIP) -L 0 -o $@ -C $(INTERMEDIATES) -D $(INTERMEDIATES) +# Custom Boot Animation +CUSTOM_BOOTANIMATION := BootAnimations/bootanimation.zip + ifeq ($(TARGET_BOOTANIMATION),) - TARGET_BOOTANIMATION := $(TARGET_GENERATED_BOOTANIMATION) + ifneq ($(wildcard $(CUSTOM_BOOTANIMATION)),) + TARGET_BOOTANIMATION := $(CUSTOM_BOOTANIMATION) + $(warning [BootAnimation] Custom global animation found at $(CUSTOM_BOOTANIMATION)) + else + TARGET_BOOTANIMATION := $(TARGET_GENERATED_BOOTANIMATION) + $(warning [BootAnimation] Custom file not found. Falling back to default generation.) + endif endif include $(CLEAR_VARS)