一、启动logo

$ convert -resize 320×640 -depth 8 a.bmp rgb:logo.raw
$ rgb2565 -rle < logo.raw > logo.rletion
$ cp logo.rle ../../out/target/product/generic/root/initlogo.rle
$ mkbootfs root | minigzip > ramdisk.img

相关代码:
/system/core/init/init.c
/system/core/init/init.h
/system/core/init/init.rc
/system/core/init/logo.c

二、启动动画

1、将视频转化为图片:ffmpeg -i video.mpg image%4d.jpg

2、准备desc.txt,格式为

Width Height Frame-rate
p Loop Pause Folder1
p Loop Pause Folder2

3、准备图片目录

4、打包

$ zip -r -0 ../bootanimation.zip *(不进行压缩)

PS:system.img的制作

mkyaffs2image -f system system.img

参考:

http://www.addictivetips.com/mobile/how-to-change-customize-create-android-boot-animation-guide/

http://forum.xda-developers.com/showthread.php?t=456071

Advertisements