cm: New boot animation from Cameron Behzadpour

 * Default for tablet is horizontal-1280x800
 * Default for phone is vertical-480x800
 * Override using TARGET_BOOTANIMATION_NAME in cm.mk (must come before
   inherit of CM base product.

Change-Id: Ibd01236847b4f1de0cfd4246c8bd93b1f047005a
diff --git a/config/common.mk b/config/common.mk
index 12ddb22..d133d8d 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -1,5 +1,10 @@
 PRODUCT_BRAND ?= cyanogenmod
 
+ifneq ($(TARGET_BOOTANIMATION_NAME),)
+    PRODUCT_COPY_FILES += \
+        vendor/cm/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip:system/media/bootanimation.zip
+endif
+
 ifdef CM_NIGHTLY
 PRODUCT_PROPERTY_OVERRIDES += \
     ro.rommanager.developerid=cyanogenmodnightly
@@ -44,8 +49,7 @@
 PRODUCT_COPY_FILES +=  \
     vendor/cm/proprietary/RomManager.apk:system/app/RomManager.apk \
     vendor/cm/proprietary/Term.apk:system/app/Term.apk \
-    vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm3.so:system/lib/libjackpal-androidterm3.so \
-    vendor/cm/prebuilt/common/bootanimation.zip:system/media/bootanimation.zip
+    vendor/cm/proprietary/lib/armeabi/libjackpal-androidterm3.so:system/lib/libjackpal-androidterm3.so
 
 # Bring in camera effects & videos
 $(call inherit-product, frameworks/base/data/videos/VideoPackage2.mk)
diff --git a/config/common_full_phone.mk b/config/common_full_phone.mk
index 9e34f98..9a64620 100644
--- a/config/common_full_phone.mk
+++ b/config/common_full_phone.mk
@@ -15,3 +15,8 @@
 
 PRODUCT_PACKAGES += \
   Mms
+
+ifeq ($(TARGET_BOOTANIMATION_NAME),)
+    PRODUCT_COPY_FILES += \
+        vendor/cm/prebuilt/common/bootanimation/vertical-480x800.zip:system/media/bootanimation.zip
+endif
diff --git a/config/common_full_tablet_wifionly.mk b/config/common_full_tablet_wifionly.mk
index 9b99260..a15d21d 100644
--- a/config/common_full_tablet_wifionly.mk
+++ b/config/common_full_tablet_wifionly.mk
@@ -12,3 +12,8 @@
     ro.config.ringtone=CyanTone.ogg \
     ro.config.notification_sound=CyanMessage.ogg \
     ro.config.alarm_alert=CyanAlarm.ogg
+
+ifeq ($(TARGET_BOOTANIMATION_NAME),)
+    PRODUCT_COPY_FILES += \
+        vendor/cm/prebuilt/common/bootanimation/horizontal-1280x800.zip:system/media/bootanimation.zip
+endif
diff --git a/prebuilt/common/bootanimation.zip b/prebuilt/common/bootanimation.zip
deleted file mode 100644
index 528e840..0000000
--- a/prebuilt/common/bootanimation.zip
+++ /dev/null
Binary files differ
diff --git a/prebuilt/common/bootanimation/horizontal-1024x600.zip b/prebuilt/common/bootanimation/horizontal-1024x600.zip
new file mode 100644
index 0000000..6322640
--- /dev/null
+++ b/prebuilt/common/bootanimation/horizontal-1024x600.zip
Binary files differ
diff --git a/prebuilt/common/bootanimation/horizontal-1024x768.zip b/prebuilt/common/bootanimation/horizontal-1024x768.zip
new file mode 100644
index 0000000..7a80295
--- /dev/null
+++ b/prebuilt/common/bootanimation/horizontal-1024x768.zip
Binary files differ
diff --git a/prebuilt/common/bootanimation/horizontal-1280x800.zip b/prebuilt/common/bootanimation/horizontal-1280x800.zip
new file mode 100644
index 0000000..aba6e3d
--- /dev/null
+++ b/prebuilt/common/bootanimation/horizontal-1280x800.zip
Binary files differ
diff --git a/prebuilt/common/bootanimation/vertical-240x320.zip b/prebuilt/common/bootanimation/vertical-240x320.zip
new file mode 100644
index 0000000..d58094f
--- /dev/null
+++ b/prebuilt/common/bootanimation/vertical-240x320.zip
Binary files differ
diff --git a/prebuilt/common/bootanimation/vertical-320x480.zip b/prebuilt/common/bootanimation/vertical-320x480.zip
new file mode 100644
index 0000000..ba9746d
--- /dev/null
+++ b/prebuilt/common/bootanimation/vertical-320x480.zip
Binary files differ
diff --git a/prebuilt/common/bootanimation/vertical-480x800.zip b/prebuilt/common/bootanimation/vertical-480x800.zip
new file mode 100644
index 0000000..6cb7c77
--- /dev/null
+++ b/prebuilt/common/bootanimation/vertical-480x800.zip
Binary files differ
diff --git a/prebuilt/common/bootanimation/vertical-480x854.zip b/prebuilt/common/bootanimation/vertical-480x854.zip
new file mode 100644
index 0000000..9c2c8b2
--- /dev/null
+++ b/prebuilt/common/bootanimation/vertical-480x854.zip
Binary files differ
diff --git a/prebuilt/common/bootanimation/vertical-540x960.zip b/prebuilt/common/bootanimation/vertical-540x960.zip
new file mode 100644
index 0000000..0f15dbe
--- /dev/null
+++ b/prebuilt/common/bootanimation/vertical-540x960.zip
Binary files differ
diff --git a/prebuilt/common/bootanimation/vertical-720x1280.zip b/prebuilt/common/bootanimation/vertical-720x1280.zip
new file mode 100644
index 0000000..e5001be
--- /dev/null
+++ b/prebuilt/common/bootanimation/vertical-720x1280.zip
Binary files differ