Android bootanimation production process:
Android boot Animation: A bootanimation.zip,
Put bootanimation.zip in
/System/media directory.
Bootanimation format:
Bootanimation.zip
It contains the Part1 Part2 folder and desc.txt
User1 @ user1-desktop :~ /Downloads/boot/bootanimation $ tree
.
| --
Desc.txt
| -- Part0
| -- Tianyi_00000.png
| --
Tianyi_00001.png
| -- Tianyi_1_2.png
| -- Tianyi_00003.png
|
| -- Tianyi_00004.png
| -- Tianyi_00005.png
| -- Tianyi_00006.png
| --
Tianyi_00007.png
| -- Tianyi_00008.png
| -- Tianyi_00009.png
|
| -- Tianyi_00010.png
| -- Tianyi_00011.png
| --
Tianyi_00012.png
| -- Tianyi_00013.png
| -- Tianyi_00014.png
| --
Tianyi_00015.png
| -- Tianyi_00016.png
| -- Tianyi_00017.png
|
| -- Tianyi_00018.png
| -- Tianyi_00019.png
| --
Tianyi_00020.png
| -- Tianyi_00021.png
| -- Tianyi_00022.png
| --
Tianyi_00023.png
| -- Tianyi_00024.png
| -- Tianyi_00025.png
|
| -- Tianyi_00026.png
| '-- Tianyi_00027.png
'-- Part1
'-- Tianyi_00028.png
Part0 and Part1 are animated images in PNG format.
.
In desc.txt, the video is played.
Settings
.
Desc.txt format
:
User1 @ user1-desktop :~ /Downloads/boot/bootanimation $
Cat desc.txt
320 480 10
P 1 0 part0
P 0 0 Part1
320 480 indicates the resolution width and height of the display.
10 is the number of frames per second
The number after P indicates that the number of playbacks 0 is a loop.
The number next is generally 0.
Part0 is the folder name.
Why use two folders? Average
:
Part1 is played once.
Part2 is loop playback until startup
Packaging:
Do not compress the file during packaging (the compression ratio is 0 ).
If
In Linux, run the following command:
cd
directory/that/contains/desc.txt/and/part0/part1/
zip -r -X -Z
store ../bootanimation part*/*.png desc.txt