This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
products:sbc:vim3:configurations:change-boot-animation [2023/03/23 04:44] xiong created |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Change Boot Animation ====== | ||
- | |||
- | ===== Android ===== | ||
- | |||
- | <WRAP info > | ||
- | *Where is original Animation file | ||
- | Animation file is stored in the device/ | ||
- | |||
- | *Where is the Animation file on vim3 device | ||
- | The Animation zip is stored on system/ | ||
- | </ | ||
- | |||
- | ===== Explanation of bootanization content ===== | ||
- | |||
- | Android boot animation is composed of a series of continuous PNG pictures as a frame of animation, and each frame of PNG picture is saved in a compressed way. The saved file name is bootanimation.zip , compression mode must be storage compression. It generally includes one desc.txt file and some part directories | ||
- | |||
- | ```shell | ||
- | root@lxx-NUC10i7FNH:/ | ||
- | total 24 | ||
- | -rw-rw-rw- 1 lxx lxx 74 Aug 17 2015 desc.txt | ||
- | drwxrwxrwx 2 lxx lxx 4096 Mar 18 11:10 part0 | ||
- | drwxrwxrwx 2 lxx lxx 4096 Mar 18 11:11 part1 | ||
- | drwxrwxrwx 2 lxx lxx 4096 Mar 18 11:11 part2 | ||
- | drwxrwxrwx 2 lxx lxx 4096 Mar 18 13:41 part3 | ||
- | drwxrwxrwx 2 lxx lxx 4096 Mar 18 13:42 part4 | ||
- | ``` | ||
- | |||
- | 1) desc.txt : animation property description file. Used to set the animation pixel (size), number of frames, number of cycles, file name, etc. The file format needs to be set to ANSI format. | ||
- | |||
- | 2) Part0: first stage animation picture catalog. Store each PNG picture folder | ||
- | |||
- | 3) Part1: second stage animation picture catalog. Store each PNG picture folder, | ||
- | |||
- | desc.txt file contents are as follows: | ||
- | |||
- | ```shell | ||
- | 543 143 60 | ||
- | c 1 30 part0 | ||
- | c 1 0 part1 | ||
- | c 0 0 part2 | ||
- | c 1 64 part3 | ||
- | c 1 15 part4 | ||
- | ``` | ||
- | 543 143 60:The first two numbers represent the pixel width and height of the picture, and 60 represents the number of frames, that is, the number of pictures played in one second | ||
- | |||
- | c 1 30 part0: c stands for the flag bit, 1 means the number of cycles is 1,0 means infinite loop, 30 is the interval time between current part0 stage and part1 stage ,the time is 30x(1/60)s, and part0 represents the corresponding folder, | ||
- | |||
- | ===== How To Generate Bootanimation.zip ===== | ||
- | After you custom part folders and desc.txt ,then you can use following linux command to generate bootanimation.zip | ||
- | ```shell | ||
- | zip -r -X -Z store bootanimation part*/* desc.txt | ||
- | ``` | ||
- | push bootanimation.zip to system/ | ||
- | ```shell | ||
- | adb push bootanimation.zip system/ | ||
- | ``` | ||