Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,786,868 Members 42,759 Now Online
XDA Developers Android and Mobile Development Forum

[TUTORIAL] Bootanimation creation & tools!

Tip us?
 
Skullmonkey
Old
#1  
Skullmonkey's Avatar
Senior Member - OP
Thanks Meter 308
Posts: 877
Join Date: Jul 2010

 
DONATE TO ME
Default [TUTORIAL] Bootanimation creation & tools!

DISCLAIMER:
I am not responsible if you break your phone. You should always do a nandroid backup befor flashing any files. Remember to wipe your dalvik before making a nandroid to save a lot of time and space


Intro
So. Boot animations. Hard to make? At first yes. But I will explain in great detail each step in making a boot animation.

Requirements
-A photo Editing program (GIMP and Photoshop are the best.)
-A text editor besides notepad or wordpad. (Notepad++)
-An archive manager (7-Zip or WinRAR)

My setup:
Photoshop CS5
WinRAR
Notpad++

The Tutorial

Step 1: Folders
So in this step, we need to make folders. The number of folders depends on what type of animation you want. You can name the folders anything you want as long as they are reflected in your desc.txt (we will get more into that later).

If you have a video that you want to repeat, you will need only 1 folder. (Name it anything you want)

If you want an intro (only shown once) and then a repeated set, You will need 2 folders. Most common names: (part0, part1) (intro, repeat)

If you have more then 2 sections of images, then I have no clue what you are doing but good for you for being awesome!

Step 2: Images
So this section will be a generilization of the images. I say this because every video is going to be different.

Each image in the video is called a frame. They usually vary slightly from image to image which sped through makes the illusion of a video.

-Each frame must be 480*800 px (thats 480 pixels wide by 800 pixels tall).
-Each frame must be saved in a .png format. (If you are using Photoshop, File > Save for Web & Devices to reduce the file size drastically.)
-Each frame needs to have some numarical value.
+Recommended would be something like frame0001.png, frame0002.png, frame0003.png, etc.
+Try to keep it under 300 images total

After all of the images are created, we now need to place them in folders.

Step 3: Placing images in folders
This step will vary from user to user. based on what type of animation you are making.

Intro to loop (2 folders):
With this one, you are going to place all of the images that is to be the intro to folder 1.
All looping images will go into folder 2.

Looping video:
All images will go into a single folder.

Step 4: desc.txt
This is the 'script' that tells android what to do.

Open up your text editing program. You have to use something other then notepad/wordpad included with Windows. They add some funky stuff for every new line you make which will ultimately break the script. It is best to use Notepad++.

This is an example of a desc.txt that has 2 folders in it:
Quote:
480 800 20
p 1 0 intro
p 0 0 repeat
Here is what it is telling android to do line by line:
480 800 20 <-- Width of the animation in pixels. This will stay 480 for Evo users Height of the animation. Keep this 800 for Evo Users Frames per second. This is basically your 'speed' of the animation. This will stay in between 10-30 (10 being slower, longer, and choppy; 30 being fast, short, and smooth.)

p 1 0 intro <-- p is telling it to play this folder. It will always be there. Folder is to be played 1 time before moving on to the next folder. Pause the movie for 0 frames after the animation is completed before moving on to the next folder. (This will normally stay 0). Name of the folder to be played. In this case, the folder named "intro" gets played once and then it moves on to the next line.

p 0 0 repeat <-- Play the animation... Folder is to be indefinately played. The 0 is telling it to play this folderover and over. Just keep it 0. Folder "repeat" gets played


And now for an example of a single folder (same thing looping over and over):
Quote:
480 800 20
p 0 0 part0
So same as before... 480px wide by 800px tall at 20 FPS
Play the folder "part0" an indefinate amount with no pause in between.


Why not go funky!:
Quote:
480 800 20
p 1 0 intro
p 5 0 cookies
p 2 0 cake
p 0 0 mynion
Same... 480px wide by 800px tall at 20 FPS
Play "intro" 1 time with no pause
Play "cookies" 5 times with no pause
Play "cake" 2 times with no pause
Play "mynion" indefinately


Ok. So now we save this file with the file name "desc.txt". It must be named that. Case sensitive.

Get it? Good. Let's move on.

Step 5: Packaging
Now we are going to package this sweetness of a custom boot animation!

(this is assuming you are using Windows with WinRAR. Steps may vary from OS and program)
1. Highlight all of your folders and desc.txt and right click > "Add to archive..."
2. On the left side, change the radio buttons from rar to zip
3. Change compression method to "store"
4. Name the file. For now, you can name it anything. Eventually, it will need to be named "bootanimation.zip"

And we are done! Now we just need to set it up on your phone!
Here are 2 methods of doing this:
Quote:
Root Explorer method:
1. Rename your boot animation to bootanimation
2. Put it on your SD card
3. Open Root Explorer and copy bootanimation.zip to /system/customize/resource. The destination folder may vary from ROM to ROM. I am using Synergy.
4. Reboot your phone

ADB method:
1. Make sure you have downloaded android sdk
2. Put android sdk in C:\
3. Set the directory of command prompt to C:\android-sdk-windows\platform-tools. Click here for a video tutorial.
4. Rename your boot animation to bootanimation and put it in C:\android-sdk-windows\platform-tools
5. Open cmd
6. Type in order:
-adb remount
-adb push bootanimation.zip /system/customize/resource/bootanimation.zip The destination folder may vary from ROM to ROM. I am using Synergy.
-adb reboot
Devices: Galazy S 3 (Temp until my Nexus 5), Nexus 10
Retired: Evo LTE, Transformer Infinity, Transformer Prime, Evo 4G, Samsung Moment, Samsung Rant, Sanyo Katana.

Google Now Cards on your homescreens!

Hosting isn't cheap. If you would like direct downloads, please consider donating: Donate via PayPal
The Following 33 Users Say Thank You to Skullmonkey For This Useful Post: [ Click to Expand ]
 
Skullmonkey
Old
(Last edited by Skullmonkey; 11th August 2011 at 02:00 AM.)
#2  
Skullmonkey's Avatar
Senior Member - OP
Thanks Meter 308
Posts: 877
Join Date: Jul 2010

 
DONATE TO ME
This post will be updated with various tools and programs which will aid your awesomeness.

Image Editors
GIMP - Free
Photoshop - $700. Students and teachers can get up to 80% off.

Batch Image Editors
FotoSizer - Free - Batch resize, file name mask, convert image format.

Other Image Tools
GIF Frame Extractor - Free - Extracts frames from an animated GIF and save them as PNG

Video Downloader and Converters
Video to JPG Comverter - Free
Devices: Galazy S 3 (Temp until my Nexus 5), Nexus 10
Retired: Evo LTE, Transformer Infinity, Transformer Prime, Evo 4G, Samsung Moment, Samsung Rant, Sanyo Katana.

Google Now Cards on your homescreens!

Hosting isn't cheap. If you would like direct downloads, please consider donating: Donate via PayPal
The Following 2 Users Say Thank You to Skullmonkey For This Useful Post: [ Click to Expand ]
 
Skullmonkey
Old
(Last edited by Skullmonkey; 13th August 2011 at 03:20 AM.)
#3  
Skullmonkey's Avatar
Senior Member - OP
Thanks Meter 308
Posts: 877
Join Date: Jul 2010

 
DONATE TO ME
Bootanimations from the community:

Skullmonkey|OP|
Andy peeing on Apple
Super Mario Bros
SackBoy
Devices: Galazy S 3 (Temp until my Nexus 5), Nexus 10
Retired: Evo LTE, Transformer Infinity, Transformer Prime, Evo 4G, Samsung Moment, Samsung Rant, Sanyo Katana.

Google Now Cards on your homescreens!

Hosting isn't cheap. If you would like direct downloads, please consider donating: Donate via PayPal
 
Slatter39
Old
#4  
Slatter39's Avatar
Senior Member
Thanks Meter 69
Posts: 514
Join Date: Apr 2011
Location: Rural Maryland
Thank you Bro. Always showing your awesomeness.
Device: Samsung Galaxy S II E4GT
Rom: Stock EL29
Kernel: Stock Kernel
Recovery: Stock
 
EVOlvedAndroid
Old
#5  
EVOlvedAndroid's Avatar
Senior Member
Thanks Meter 473
Posts: 533
Join Date: Oct 2010
Location: Los Angeles
Good Info, but these tutorials can be found everywhere on xda
My Work: EVOlved Classic .:. EVOlvedROM r3chargeD .:. EVOlvedROM Directors Cut .:. EVOlvedMODZ .:. EVOlvedROM SHiFTeD .:. EVOlvedROM .:. EVOlvedAndroid

Phone: HTC EVO 4G (Retired); Samsung Galaxy Nexus
Rom: CM 10.1
 
github
Old
#6  
github's Avatar
Senior Member
Thanks Meter 183
Posts: 538
Join Date: Jul 2011
Location: T-Mobile, USA

 
DONATE TO ME
Hmm, I seem to have wandered into the Themes & Apps forum.
 
frickinjerms
Old
#7  
frickinjerms's Avatar
Senior Member
Thanks Meter 260
Posts: 537
Join Date: Sep 2008
Location: Victoria, TX

 
DONATE TO ME
github always brings the lulz
Galaxy Nexus | Cr-Droid 18 | FancyKernel r53 | TWRP 2.7.1.0 | Unlocked

Ouya | CyanogenMod 11 Unofficial | Stock CM Kernel | CWM 6.0.4.7 | MLQ Boot Menu

Galaxy SIII | My own stripped down SlimROM for media | Stock Slim Kernel | TWRP 2.7.1.0


 
Amer532
Old
#8  
Amer532's Avatar
Member
Thanks Meter 7
Posts: 53
Join Date: Apr 2011
Location: Pittsburgh
Could you use a hex editor??

Sent from my EVO: xda premium
 
selders59
Old
#9  
selders59's Avatar
Senior Member
Thanks Meter 630
Posts: 3,777
Join Date: Jul 2008
Location: Cape Coral, Florida
Thanks for the info skull.

"Hell I don't know"
 
Skullmonkey
Old
#10  
Skullmonkey's Avatar
Senior Member - OP
Thanks Meter 308
Posts: 877
Join Date: Jul 2010

 
DONATE TO ME
Quote:
Originally Posted by github View Post
Hmm, I seem to have wandered into the Themes & Apps forum.
I consider this in development because there is a little coding involved. It's not like its my collection of bootanimations in which case I would put in themes and apps.
Quote:
Originally Posted by Amer532 View Post
Could you use a hex editor??

Sent from my EVO: xda premium
You don't need a hex editor...
Devices: Galazy S 3 (Temp until my Nexus 5), Nexus 10
Retired: Evo LTE, Transformer Infinity, Transformer Prime, Evo 4G, Samsung Moment, Samsung Rant, Sanyo Katana.

Google Now Cards on your homescreens!

Hosting isn't cheap. If you would like direct downloads, please consider donating: Donate via PayPal

The Following User Says Thank You to Skullmonkey For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes