Android5.1 boot logo and boot animation "turn"

Source: Internet
Author: User

This article was reproduced from: http://blog.csdn.net/u014770862/article/details/52624627

android5.1, the boot logo section is not the same as the previous version, the main difference is the Android logo display section. If there is any mistake in this blog, please forgive me, thank you!
Boot logo generally have two kinds: static and dynamic, Android boot a total of three kinds of logo (5.1 may be considered 4 kinds of bar).
1. Uboot Display
2. Kernel Display
3. Android Boot animation
In general, the first two pictures made the same, the third is the boot animation part. (uboot display logo can generally not do, speed up the android boot speed).

First, kernel display

1. Kernel Support
First configure the Support boot logo display in the kernel:

Graphics support  ------>       [*] Bootup logo ----->           --- Bootup logo               [*] Standard black and white Linux logo               [*] Standard 16-color Linux logo               [*] Standard 224-color Linux logo
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6

2.LOGO Production
1). Use PNG format picture

pngtopnm linuxlogo.png > linuxlogo.pnm  //linuxlogo.png为原始图片pnmquant 224 linuxlogo.pnm > linuxlogo224.pnmpnmtoplainpnm linuxlogo224.pnm > logo_linux_clut224.ppm
    • 1
    • 2
    • 3
    • 1
    • 2
    • 3

2). Use BMP format Picture

convert logo.bmp linuxlogo.png     //logo.bmp为原始图片pngtopnm linuxlogo.png > linuxlogo.pnmpnmquant 224 linuxlogo.pnm > linuxlogo224.pnmpnmtoplainpnm linuxlogo224.pnm > logo_linux_clut224.ppm
    • 1
    • 2
    • 3
    • 4
    • 1
    • 2
    • 3
    • 4

Pictures in other formats can also be saved as PNG images using the picture tool, and then follow the above code. You can also write the above code as a script, which makes it easier to use. Copy the crafted logo_linux_clut224.ppm to the kernel drivers/video/logo/directory and delete the LOGO_LINUX_CLUT224.O and logo_linux_clut224.c under the folder ( If you have two files to delete), then compile and burn.

Second, Android boot animation

Android5.1 's Android words seem to be unable to change independently, can be replaced with the boot animation, and the version before 5.1 in the INIT.C code to make some changes:

The focus function of the splash screen display console_init_action () does not call load_565rle_image (init_image_file), that is, after the call to the Console_init_action () function , the specified splash screen is the Android typeface.
The Load_565rle_image () function also does not exist. This is the Android 5.1 and the previous differences, this also shows that after the android5.1, "Android Boot logo" can not be replaced, only by replacing the boot animation to achieve the effect. After the boot animation is replaced, the Android typeface also changes, so you can change the boot animation directly to achieve the purpose.
The production of the Boot animation: bootanimation.zip
Place the file in the/system/media/directory, and the system will automatically load the Bootanimation.zip under that directory when it starts. The Bootanimation.zip compression package consists mainly of these parts:

One of the Desc.txt's role is to instruct the system how to perform the boot animation, desc.txt writing specifications: For example, the boot needs to use two folders Part1 and Part2, in the system startup, will first part1 the contents of the content to play again, and then loop the contents of part2 inside, Stop until you want to enter the launch interface. Example Desc.txt content is as follows:

1080 1920 represents the resolution of the screen, 22 means 22 frames per second
P 1 0 part1:p is play. 1 is played once, 0 is unlimited. 0 represents the stage interval frame number of 0, which is the frame animation to play the picture. PART1 Specifies that the first folder to play is Part1 (you can also take a different name and modify it accordingly)
P 0 0 Part2: The first 0 indicates loop playback. The second 0 indicates the number of frames per picture is 0 (as in the above Directive). Part2 represents the folder to be looped back

Package the prepared files into Bootanimation.zip, note : Must be in the ZIP format, and the size of the package should not exceed 3 m. Then put it in the/system/media/directory.

Recently in the production boot animation process found after the addition of the boot animation has been unable to display, after arduous search for the final conclusion as follows:
Boot animation zip compression as far as possible in the Linux environment, in the Windows or Ubuntu UI interface compression Bootanimation.zip may cause the boot animation can not display, under Linux, into the material directory, to perform the compression command:

zip -Z store bootanimation.zip part0/*.png part1/*.png desc.txt

Android5.1 boot logo and boot animation "turn"

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.