android----制作splash镜像

1、使用ImageMagick自带的convert命令,进行raw格式转换(convert -depth 8 splash.png rgb:splash.raw)
    注:imgageMagick安装包,执行sudo apt-get install imagemagick
2、编译一下android自带的rgb2565工具,其 路径在$ANDROID_HOME/build/tools/rgb2565上(gcc -O2 -Wall -Wno-unused-parameter -o rgb2565 to565.c)
3、对raw文件进行rle565格式转换(rgb2565 -rle < splash.raw > initlogo.rle)
最后将initlogo.rle文件打包到根文件系统中即可

 

$ convert -depth 8 splash.png rgb:splash.raw
# Make sure it is 460800 bytes long!
$ rgb2565 < splash.raw > splash.raw565
# Triple-check size before flashing! 307200 bytes
$ fastboot flash splash1 g1-splash.raw565
$ fastboot reboot

你可能感兴趣的:(android,framework,android,flash,gcc,工具)