Two-line command from PNG creation startup interface initlogo. RLE

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.