Use the image tool to edit the desired PNG, save it as logo.png
Run the following command in the command where logo.png is located:
# Use the convert command provided by ImageMagick to convert the raw format
02 convert-depth 32 logo.png RGB: logo. Raw
03
04 rgb2565 tool that comes with Android to convert raw files into rle565 format
05 $ (src_home)/out/host/linux-x86/bin/rgb2565-RLE <logo. Raw> initlogo. RLE
06
07 then copy initlogo. RLE to the root directory of the Android system, that is, under the root directory
08 CP initlogo. RLE root/
09
10. Delete intermediate files
11
Rm-F logo. Raw
After creating the initlogo. after RLE, it is put into the terminal for use and found that it can be displayed for the first time. After the second restart, it becomes the android character again. view the code system/CORE/init. c [load_565rle_image] --> logo. in C, the source code is displayed as initlogo. after RLE, The unlink operation is performed, while the android default is initlogo. the system where RLE is located. IMG is read-only, so there is no problem if the partitions and their attributes are made in the standard form of Android, but there is a problem with the read/write rootfs in the custom form of ya or ubi, so comment out the unlink code.