Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Requesting simple summary of steps required to modify boot animation

6

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
6
Posted at 3/5/2015 10:21:10      1#

Re: Requesting simple summary of steps required to modify boot animation

you can see the code in frameworks/base/cmds/bootanimation/BootAnimation.cpp
  1. bool BootAnimation::threadLoop()
  2. {
  3. bool r;
  4. if (mAndroidAnimation) {
  5. r = android();
  6. } else {
  7. r = movie();
  8. }
Copy the code

if have bootanimation.zip will run movie(),if not will run android();
  1. bool BootAnimation::android()
  2. {
  3. initTexture(&mAndroid[0], mAssets, "images/android-logo-mask.png");
  4. initTexture(&mAndroid[1], mAssets, "images/android-logo-shine.png");
Copy the code



We can see from the code,the boot animation composed of only two pictures。

you can found the pictures in frameworks/base/core/res/assets/images。
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list