Android animation boot animation Optimization

Source: Internet
Author: User

Use bootanimationProgramThe boot screen is displayed. If you need to modify the boot screen, you need to modify the source code.

B) Code

Frameworks/base/cmds/bootanimation /*

Frameworks/base/CORE/RES/assets/images/Android-logo *

2) Android 2.0 and later
A) Description

Use the bootanimationprogram to display the on-premises image. If you need to modify the on-premises image, you only need to create a bootanimation.zip package based on the format.
/System/media directory or/data/local directory. If both directories exist

B) Code

Frameworks/base/cmds/bootanimation /*

Frameworks/base/CORE/RES/assets/images *

/system/bin/bootanimation, which should be the third-screen animation control, has been tested in several steps:
1. restart the instance properly. After the instance is started, the System
is generally around S, and the c8600 is slow; [Here I have replaced the typical boot
animation, file
In/system/media I only put two images
go in]
2. Delete
/system/media ZIP file; restart; time
about seconds. [after the android text is displayed on the second screen, the android letters are highlighted in sequence, until boot]
3. modify/init. RC file, shield the following code; restart, time 95 s; [No obvious interface changes, however, the boot time is short.]
# service bootanim/system/bin/bootanimation
# user graphics
# group graphics
# disabled
# oneshot
4. delete/system/bin/bootanimation, restart, time 92 S; [black screen after the second screen; this score is good, it is 18 s less; keep this configuration]

the above execution shows the source code of the boot part posted on the Internet, which is correct.
the approximate logic of the source code is:
1. after the android text is displayed on the second screen, the zip file under/system/Media/is checked and an animation is displayed.
2. if not, the android text animation will be displayed. The text consumes less resources, so there is time to decrease
3. after I delete the bootanimation file, there is no service to start this android text animation; speed
is getting faster;
recommended
; in fact, my original intention is to display the earliest interface that displays text output at Linux Startup; the result is that the startup time is optimized;
if you are interested, you can use the Program
monitor the startup time for the test.

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.