prebuilt: import bootanimations from sos-5.x
Change-Id: I4c676c5536aa8b2dd119ddd66bf285f05626ae40
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/config/bootanimation.mk b/config/bootanimation.mk
new file mode 100644
index 0000000..8cd9024
--- /dev/null
+++ b/config/bootanimation.mk
@@ -0,0 +1,29 @@
+#
+# Copyright (C) 2024 SHIFT GmbH
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+ifeq ($(TARGET_SCREEN_WIDTH),)
+ $(warning TARGET_SCREEN_WIDTH is not set, using default value: 1080)
+ TARGET_SCREEN_WIDTH := 1080
+endif
+ifeq ($(TARGET_SCREEN_HEIGHT),)
+ $(warning TARGET_SCREEN_HEIGHT is not set, using default value: 1920)
+ TARGET_SCREEN_HEIGHT := 1920
+endif
+
+# e.g.: 1080x1920
+TARGET_SCREEN_RESOLUTION := $(TARGET_SCREEN_WIDTH)x$(TARGET_SCREEN_HEIGHT)
+
+# Boot and Shutdown animations
+PRODUCT_BOOTANIMATION := $(wildcard vendor/shiftos/prebuilt/$(TARGET_SCREEN_RESOLUTION)/media/bootanimation.zip)
+PRODUCT_SHUTANIMATION := $(wildcard vendor/shiftos/prebuilt/$(TARGET_SCREEN_RESOLUTION)/media/shutdownanimation.zip)
+
+ifneq ($(PRODUCT_BOOTANIMATION),)
+ TARGET_BOOTANIMATION := $(PRODUCT_BOOTANIMATION)
+endif
+
+ifneq ($(PRODUCT_SHUTANIMATION),)
+ TARGET_SHUTANIMATION := $(PRODUCT_SHUTANIMATION)
+endif
diff --git a/config/common.mk b/config/common.mk
index 1d521b5..dafe9aa 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -10,7 +10,7 @@
SHIFT_BUILD_WITH_GMS ?= true
# Boot and Shutdown animations
-#include vendor/shiftos/config/bootanimation.mk
+include vendor/shiftos/config/bootanimation.mk
# Packages
#include vendor/shiftos/config/packages.mk
diff --git a/prebuilt/1080x1920/media/bootanimation.zip b/prebuilt/1080x1920/media/bootanimation.zip
new file mode 100644
index 0000000..b9f1023
--- /dev/null
+++ b/prebuilt/1080x1920/media/bootanimation.zip
Binary files differ
diff --git a/prebuilt/1080x1920/media/shutdownanimation.zip b/prebuilt/1080x1920/media/shutdownanimation.zip
new file mode 100644
index 0000000..0a44467
--- /dev/null
+++ b/prebuilt/1080x1920/media/shutdownanimation.zip
Binary files differ
diff --git a/prebuilt/1080x2160/media/bootanimation.zip b/prebuilt/1080x2160/media/bootanimation.zip
new file mode 100644
index 0000000..b9f1023
--- /dev/null
+++ b/prebuilt/1080x2160/media/bootanimation.zip
Binary files differ
diff --git a/prebuilt/1080x2160/media/shutdownanimation.zip b/prebuilt/1080x2160/media/shutdownanimation.zip
new file mode 100644
index 0000000..0a44467
--- /dev/null
+++ b/prebuilt/1080x2160/media/shutdownanimation.zip
Binary files differ
diff --git a/prebuilt/1080x2400/media/bootanimation.zip b/prebuilt/1080x2400/media/bootanimation.zip
new file mode 100644
index 0000000..b9f1023
--- /dev/null
+++ b/prebuilt/1080x2400/media/bootanimation.zip
Binary files differ
diff --git a/prebuilt/1080x2400/media/shutdownanimation.zip b/prebuilt/1080x2400/media/shutdownanimation.zip
new file mode 100644
index 0000000..0a44467
--- /dev/null
+++ b/prebuilt/1080x2400/media/shutdownanimation.zip
Binary files differ