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)