Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim3:configurations:change-boot-animation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Previous revision
products:sbc:vim3:configurations:change-boot-animation [2023/03/23 04:44]
products:sbc:vim3:configurations:change-boot-animation [2024/08/06 05:34] (current)
nick ↷ Page moved from products:sbc:vim3:development:android:change-boot-animation to products:sbc:vim3:configurations:change-boot-animation
Line 1: Line 1:
-====== Change Boot Animation ======+{{indexmenu_n>30}}
  
-===== Android ===== 
  
-<WRAP info > +====== VIM3/3L Android change boot animation ======
-  *Where is original Animation file +
-Animation file is stored in the device/khadas/common/products/mbox/bootanimation.zip in android code.+
  
-  *Where is the Animation file on vim3 device 
-The Animation zip is stored on system/media/bootanimation.zip directory 
-</WRAP> 
  
-===== 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 +{{page>products:sbc:common:configurations:change-boot-animation&noheader}}
- +
-```shell +
-root@lxx-NUC10i7FNH:/home/lxx/Downloads/android_pie/vim3/device/khadas/common/products/mbox/bootanimation# ls -l +
-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,Other part folder is similar +
- +
-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,Other lines are similar +
- +
-===== 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 --X -Z store bootanimation part*/* desc.txt  +
-``` +
-push bootanimation.zip to system/media ,restart device to confirm +
-```shell +
-adb push bootanimation.zip system/media/bootanimation.zip +
-```+
  
Last modified: 2023/03/23 04:44 (external edit)