Three images are displayed at the android startup:
A. When bootloader is started, an android robot image is displayed;
B. The Android platform starts initialization and displays the text "a n d r I O D;
C. When the Image System of the Android platform is started, an animated image (start) containing the android flash appears ).
A. Android robot image displayed by bootloader
B.
Boot text ("a n d r I O D ")
Android
After the 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,/dev/tty0 is set to text,
Open/dev/tty0 and output the text "a n d r I O D.
Related code:
/System/CORE/init. c
/System/CORE/init. h
/System/CORE/init. RC
/System/CORE/init/logo. c
* Steps for creating the RLE file:
1. Use gimp or advanced batch converter to convert the image to raw format;
2. Use the rgb2565 tool that comes with Android to convert raw files to the RLE format (for example, rgb2565-RLE <initlogo. Raw> initlogo. RLE ).
C. Launch of the Android platform Graphics System
The Android system logon animation is similar to the Windows system scroll bar and consists of two PNG images, foreground and background. The android text section on the foreground image (android-logo-mask.png) is hollowed out and the background image is displayed.
(Android-logo-shine.png) is a simple texture. When you log on to the system, the foreground image is displayed at the top layer, and the background image is continuously rolled by the program code.
Scroll the blank part to display the background texture 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