[Samsung Galaxy W I8150] arsradu:
This tutorial is meant for users that want to create from scratch or edit bootanimation.zip files to replace the current ones on their systems.

So let's get to work. :)​

Requirements: a PC, WinRAR / 7-zip, Notepad++ for Windows users, a bunch of frames(images).

Folder structure and general guidelines

The structure of a bootanimation.zip file is: folders (named "part0", "part1", "part2" etc) and a desc.txt file (in charge of animation properties).

So, you can either put all your frames in a single folder and name it "part0" (yes, the name is mandatory), or create more folders if you plan to create a more complex animation such as one that will show a section of your animation multiple times or will make a pause between sections/parts. If you just want to animate one single section, with no special requirements, you can just create a single folder containing all your images.

For more in-depth information on how do the bootanimations work on Android, please, visit this page.

Creating the animation parts/ folders

So, we'll create a folder called part0 and a file called desc.txt. If you want to keep your stuff organized, you can throw them both in another folder and name it whatever you want. You're not going to use that anyway. It's just to keep your stuff organized. :)

We'll now fill in the folder with slides from the first section of the animation. For this case, we want the animation to run the first section (part0) only once, then move to the second one (part1) and keep that in a continuous loop until Android starts.

The image format, for as far as I know, can be any common format, but I only worked with .png so I would recommend using this format.

The image titles can also be anything you want BUT remember to put the slides in an organized fashion, starting with 0.

For example: if you want to name your images "img000.png", "img001.png", "img002.png" etc, that's fine, but start the counting with 0 and name them all in a similar way, meaning no "ImG000.png", "image001,png", "imag002.png" and so on so forth. Stick to a single way of naming them.

I would personally recommend the easiest way: "000.png", "001.png", "002.png" etc.

Ok, now we'll create a second folder at the same location, and we'll call this one part1. In this folder we'll put the rest of the slides we want it to animate until Android starts.

Now that we have all the images in place, let's move to the next step.

Creating the animation's "control panel"

The "desc.txt" is one of the most important parts of the bootanimation.zip file. It controls basically everything related to that animation.

So make sure to use Notepad++ (if you're using Windows) for editing that file and set it up for UNIX systems (this is important!).

If you're using Linux, you can just edit it with no worries using the built-in gEdit editor.

Now let's open it up in Notepad++/ gEdit and set it up to animate our images the way we want.

But first, let's understand a little bit what exactly can be set up in the desc.txt file.

[animation width; in px] [animation height; in px] [fps]
480 102 24
[part descriptor*] [nr of loops; 0 = infinite loop] [pause - in seconds] [destination folder]
p 1 0 part0
[part descriptor**] [nr of loops; 0 = infinite loop] [pause - in seconds] [destination folder]
c 0 0 part1

*The "p" descriptor tells the system to stop playing the animation if the boot-up process has finished.

**The "c" descriptor tells the system to continue playing the animation until the boot-up process has finished. This method helps on porting the same animation across multiple platforms because the boot-up time differs from one device to another.

So, in English, what this tells to the system is that it wants it to play an animation having width=480px and height=102px at a rate of 24 fps, in two parts:

1st part needs to be played once, with no pause before the next part or loop (if it's set to continue in an endless loop).

2nd part needs to be played in an endless loop, with no pause between loops, until Android starts.

The width and height of the animation have to be the ones of the images you're going to use.

For example: If you've got 480x102px images, the desc.txt file should also contain 480(width) 102(height) in it.

Note: If you've got images bigger than your physical screen resolution, it will play only the visible part.

So, your finished content of the desc.txt file, should look somewhat similar to this:

480 102 24
p 1 0 part0
c 0 0 part1

Now that we've got everything set up and ready to use we can proceed to the last step.

Creating the zip file

Now, if you had enough patience to read this whole tutorial, I will ask you to have some more because this part is really important.

When creating the bootanimation.zip file, make sure you set the compression level/method to Store. Both WinRAR and 7-zip support this. This is very important! Without it, your animation won't play and you'll most likely see a black screen during boot time.

You need to select the folders (part0, part1 etc) and the desc.txt file inside your working folder and create a zip archive of that. DO NOT ARCHIVE THE WHOLE WORKING FOLDER!

Ok, now that we've got the animation content zipped in a single bootanimation.zip file, all we need to do is to copy-paste it into /system/media folder on our phone and replace the current bootanimation.zip file from there.

After that, we need to set permissions 644 for the zip file (as described below) and reboot the phone.

That's all folks. Now you know how to create/edit a bootanimation.zip.

Examples

Without Google logo

Link 1: resolution 480x102px

Link 2: resolution 800x170px

Link 3: resolution 1080x230px

With Google logo (original version)

Link 1: resolution 480x102px

Link 2: resolution 800x170px

Link 3: resolution 1080x230px

DO NOT FLASH THESE ZIP FILES IN CWM!

1. Download the bootanimation.zip file somewhere on your phone

2. Copy-paste it into /system/media, replacing the current file

3. Set permissions to 644 for the zip file

4. Reboot and enjoy.

If you're planning on going back to your previous boot animation, make a backup of the current zip file somewhere on your phone before replacing it with some of the ones above.

N-Joy. :)