Change Android splash Screen

Source: Internet
Author: User
Tags constant definition

I. Android boot step 1. Start Linux

2. Loading Android

3. Show Android Desktop

Two. Analysis

The source code files for Android-loaded boot animations are:
/opt/android4.3/frameworks/base/cmds/bootanimation.cpp
A constant definition of concern:

#include "BootAnimation.h"#define USER"/data/local/bootanimation.zip"#define SYSTEM"/system/media/bootanimation.zip"#define SYSTEM"/system/media/bootanimation-encrypted.zip"#define EXIT"service.bootanim.exit"

They are used in status_t bootanimation::readytorun ():

Infer from Threadloop that different animations are loaded in different situations. Of

    • Android (); Is the Android font flashing, it is called:
      "./frameworks/base/core/res/assets/images/android-logo-mask.png" and
      "./frameworks/base/core/res/assets/images/android-logo-shine.png"
      A hollow figure, a luminous effect.

    • Movie () is Bootanimation.zip
      Bootanimation.zip includes:

Catalogue Part1
Catalogue Part2
... There may be very many directories
Desc.txt
The table of contents is made up of PNG animations.
Desc.txt format:

480 250 15
The width of the picture Picture of the High Number of frames displayed per second
P 1 0 Part0
Identifier Number of Cycles Phase Switch interval time The directory of the corresponding picture
P 0 10 Part1
Identifier Number of Cycles Phase Switch interval time The directory of the corresponding picture

I downloaded an animation from someone else directly.
http://download.csdn.net/downlaod/zhoucong50/3480737

Put it in the catalogue,/opt/android4.3/out/target/product/generic/system/media/.

Go back to the root directory, run

Make Snod

To start the virtual machine again:
Emulator

Effect:

Change Android splash Screen

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.