Android Boot Image/text/animation Modification

Source: Internet
Author: User

Three images are displayed at the android startup:
A. When the Linux system is started, the Linux penguin screen (reboot) appears );
B. The Android platform starts initialization and displays the text "a n d r I O D;
C. The upper-layer Graphics System of the Android platform is started, and an animated image (start) containing the android flash appears ).

1/boot image (Linux penguin)

After Linux kernel boot starts, load the image.
/Kernel/trunk/Drivers/Video/fbmem. c
/Kernel/trunk/Drivers/Video/fbmem. h
/Kernel/trunk/Drivers/Video/logo. c
/Kernel/trunk/Drivers/Video/logo. h
/Kernel/trunk/Drivers/Video/logo/kconfig
/Kernel/trunk/include/Linux/linux_logo.h

2/boot text ("a n d r I O D ")

After the Android system is started, read/initlogo. RLE (A 565 RLE Compressed Bitmap). If the read is successful, the logo image is displayed in/dev/graphics/fb0. If the read fails, set/dev/tty0 to text mode, open/dev/tty0, and output the text "a n d r I O D.

RelatedCode:

/System/CORE/init. c
/System/CORE/init. h
/System/CORE/init. RC
/System/CORE/init/logo. c

* Steps for creating the RLE file:
A. Use gimp or advanced batch converter to convert the image to raw format;
B. Use the rgb2565 tool that comes with Android to convert raw files to the RLE format (for example, rgb2565-RLE <initlogo. Raw> initlogo. RLE ).

3/boot animation (animated picture with Android flash)

The Android system login animation is similar to the Windows system scroll bar, consists of foreground and background two PNG images, these two images exist in the/system/framework/framework-res.apk file. The android text section on the foreground image (android-logo-mask.png) is hollow out, and the background image (android-logo-shine.png) is a simple texture. When you log on to the system, the foreground image is displayed on the top,ProgramThe code controls the continuous scrolling of the background image. The background texture is displayed through the hollow-out part of the foreground image text to achieve the animation effect.

Related code:
/Frameworks/base/cmds/bootanimation. h
/Frameworks/base/cmds/bootanimation. cpp

// Frameworks/base/CORE/RES/assets/images/android-logo-mask.png
Default foreground image of Android, hollow out text part, size 256 × 64
// Frameworks/base/CORE/RES/assets/images/android-logo-shine.png
Default background image of Android, with a dynamic effect. The size is 512 × 64

Reference:

Image Description: Android boot screen and boot Animation
Http://www.shudoo.com/09/1030/15/13418431.html

Initlogo. RLE: display an image on boot
Http://forum.xda-developers.com/showthread.php? T = 443431

Analysis of the Startup Process of the android root file system (Analysis of the init Daemon)
Http://crazier9527.javaeye.com/blog/454635

 

Related Article

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.