[Android General] thethiny:
[Rooted Phones Only]​

or if you have adb or acces to root!​

Hi,

so there are many threads regarding custom boot animations , but all of them are missing 1 or 2 information which others specify , so I decided to make a thread that contains all of the needed info (and of course I have a 50% chance of missing some information just as others did).

Ok so lets begin in a step by step tutorial:

Step 1

Creating Folders:

So the first thing you wanna do is make the folders where all the images are going to be located.

You can name the folders ANYTHING! and just to make it easier , don't use spaces , or else you might have to use quotation marks.

If you're creating an animation that loops , create 1 folder.

If you're creating an animation , followed by other animation that loops , then create 2 folders.

If you have multiple animations , such as : "Animation , Loop, Animation , Infinite Loop". Create as many folders as you want.

Looping doesn't mean infinite loop , you can set an animation to loop for a period of time , not necessarily forever!

Step 2

The Images:

Ok so you're gonna need to create the images in order to make them available for your device.

So you are going to decide the dimensions of your device , go to http://www.gsmarena.com/ (gsm arena , for non registered users) search for your device and under the display check your resolution , I'm gonna use 320x480 as that's my mobile's display size.

320 = width and 480 = height.

Prepare an image editing program , I'll use Photoshop , GIMP is an alternative but since I have photoshop , why not use it?

Create as many images as you want that you want them to be the animation , just like you are creating a gif , but frames are pictures , so each frame must be a different picture. Make sure you save them as .png and that they do not exceed 300 image in total.

Organize the pictures in folders , the animation into folder 1 and the looping animation into other folder , and others into other folders.

Make sure you name them in a sequence , such as : 01 02 03 , or 001 002 003 , or picture1 picture2 ...etc The devices uses Sort By Name to determine which goes first ,so the order the pictures are put in on your PC's screen ,is the same as the boot animation order.

It doesn't matter if the folders have the same or different sequence , as long as they are sequenced correctly.

Example:

Folder 1: 01 02 03 04 05

Folder 2: 06 07 08 09

This method is better because you can keep track of your image count and you can determine which folder to go first.

Now you're ready to the next step.

Step 3

Creating the DESC.TXT

Desc.txt is the file that the android reads in order to know which animation to play first.

this is how you create your Desc.txt

First make sure that you have Notepad++ installed , as notepad and wordpad can't run it correctly.

In Notepad++ go to Edit>EOL Convertion>UNIX Format , this way the android can read it perfectly , avoiding any errors.

Now this is how a Desc.txt would be :

Line 1 = Width Height FrameSpeed

Line 2 = p PlayTime FolderSwitchSpeed FolderName

Line 3 = p PlayTime FolderSwitchSpeed Folder2Name

In the first line you're going to put the resolution you chose for your device , I'll put 320 480 , then I'd put 20 Frames per second , so it plays at a normal speed , you can use anything from 10~30 , 10 = Slow , 30 = Fast. 20= Medium.

This is what my file looks like now:

Line 2 is going to have the folder's name and play duration , you must start by typing "p" without the quotation marks ( " " ). Followed by the Playtime , if you want it to play once , type 1 , play twice , type 2 , Infinite Loop , type 0 .... and so on. Next is the folder switch speed , which means how much should the animation pause between switching from folder to folder. I'll always use 0 so switching becomes instant. Then you type the folder's name , such as Main , if you have spaces (not recommended) use "Folder Name". My Desc now shows:

Now the 3rd line (if present) is the same as Line 2 , but we'll set it to loop now , so instead of p 1 0 , I'm using p 0 0. so my Desc now says:

Now , most of the Guides miss this step , YOU HAVE TO ADD AN EMPTY LINE IN THE END! because the final line is always ignored , so if you leave it as blank , the blank will be ignored , if you set an animation sequence here , the sequence would be ignored resulting of bad things :'(

Now you are done.

Step 4

Packaging:

Now you need to use winrar to pack them , because it has the features that we want.

Select all the folders that contain your animation and the Desc.txt , and right click them , click on Add to Archive.

On the left choose the format to "zip" , instead of rar , and in the compression method choose "store".

Name it as anything , but after that you have to name it bootanimation.zip

Step 5

Copying to your Mobile

Now you are ready and you have your animation , you need to copy it to your device , your phone must be rooted in order to access the System Files and be able to write on them.

Rename your zip file into bootanimation.zip , and put it on an SD Card. Then you can use your mobile and your preferred File Explorer to put it in the right destination.

You can use Root Explorer , or ES File Explorer (recommended).

Root Explorer:

Make sure the memory is set to R/W by click on the button that says "mount r/w"

ES File Explorer:

Go to the settings , Scroll to the bottom and open Root Settings , make sure ReMount as Root is selected so you have root Write Access.

Now , you have to place the bootanimation.

If your mobile phone doesn't have an animation , or if it uses the Default "Android animation" which is the blue Android Text Shining , then you have to put the bootanimation.zip into /Data/Local/ , from there it will be automatically read.

If you own Samsung , If you're lucky you can find it in /System/Media/ , Or you can find animation files that are NOT EDITABLE! sorry about that , just search in your mobile's section here on the XDA forums.

If you Own hTC , then you'll probably find it in /system/custom/resources .

If you couldn't find it anywhere , use the search and search for bootanimation.zip

I believe that you can use the /Data/Local/ method with any mobile except for hTC....because /Data/Local/ has higher priority.

If you find bootanimation without any extensions , do not edit it , you might loose your boot animation and crash your mobile , but don't worry , you'll only loose the ability to boot an animation , and you'll just have black screen

After you place your bootanimation.zip open its properties and make sure the following is checked:

Read

Write

Execute

in ES File Explorer you'll have three checkboxes under each one , and in the properties it should then say rwx rwx rwx (Read Write eXecute). This step is also forgotten by some guides.

Now just reboot your phone and you're good to go!

If I missed anything just let me know.

Check out some of these animations that I made , I won't give download links to them , just a gif that you may copy.

Regarding the Sound on Bootanimation

It Won't work , because there are 2 methods , :

1-playing an mp3/ogg on starting init.rc which startes soundboot.

2-mp3 can't be read on boot , soundboot corrupts the OGGs it is associated with.

there's one method which is using Java to build a file for the soundboot which I'm not sure yet about , which is using the media player , but it won't probably work because the media player hasn't been launched yet , will give you a heads up.

(for how to make your own media player for that purpose , check out thenewboston on youtube , he has 200 episodes of JAVA Android.)

Update...these methods work with any mobile except for mobiles Running Android on SD via Haret or BADA. it should work fine on android phones.

To try it out on your phone , your phone must be rooted and follow this post:

http://xdaforums.com/showpost.php?p=8274824&postcount=2

new animations by me

Links:

WinRar

Notepad++

Photoshop

List of Some Boot Animations