Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Requesting simple summary of steps required to modify boot animation

13

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
13
Posted at 3/5/2015 08:48:03        Only Author  1#

Requesting simple summary of steps required to modify boot animation

Hello:


This post is somewhat related to the "Prolong Android boot animation / boot video" posting, am hoping to get some more basic information lissing from that post.


I am attempting to modify the boot animation for the RK3288.

More specifically, modify the boot animation in the RK3288 source tree for inclusion in the subsequent build / flash process.

To the best of my understanding this minimally would involve a modification of bootanimation.zip.

I've found the bootanimation files in ~project/firefly-rk3288/frameworks/base/cmds/bootanimation, and various info on google on how to modify a boot animation file.

But I can not find bootanimation.zip anywhere.

Would it be possible to get a simple, bullet-item list of the steps, files, and file locations required to modify the (Android) boot image in a freshly-downloaded RK3288SDK? I expect this would only take a few lines of text, and it would be extremely helpful.

Thank you.

Reply

Use props Report

6

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
6
Posted at 3/5/2015 10:21:10        Only Author  2#

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

13

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
13
Posted at 3/7/2015 09:31:44        Only Author  3#

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

vegeta:


Thank you for the reply, this was helpful.


One more question on this topic: is the bootanimation.zip file to be placed in

frameworks/base/cmds/bootanimation/

...or some other folder?

Reply

Use props Report

543

Credits

19

Prestige

15

Contribution

advanced

Rank: 4

Credits
543
Posted at 3/7/2015 13:04:45        Only Author  4#

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

No, you put it in /system/media after compiling the firmware.

Use Bootanimation Factory to create a bootanimation.zip from a set of pictures or use a video to gif/jpg converter program to convert a video to pictures that you can use for a bootanimation.zip.


http://forum.xda-developers.com/showthr ... ?t=2756198

Reply

Use props Report

13

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
13
Posted at 3/10/2015 08:12:05        Only Author  5#

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

dewet:


Thanks for the response, the link you provided contained a lot of very useful information.

I understand what you mean regarding placement of the bootanimation.zip in the file system after the firmware is built.

But where would the bootanimation.zip file reside in the AOSP source tree if I wanted to include it in the firmware build, as opposed to placing it in system/media after the firmware has been built?

Reply

Use props Report

417

Credits

15

Prestige

16

Contribution

intermediate

Rank: 3Rank: 3

Credits
417
Posted at 12/14/2015 05:39:58        Only Author  6#
stillgoing Posted at 3/10/2015 08:12
dewet:
Thanks for the response, the link you provided contained a lot of very useful information.I  ...

Hi,
I do not remember exactly where the system image was creating when compiling the Android as I have done that couple of months ago, but I think it was somewhere in "<source_code>\out\images", I think... (It's mentioned in 'Build Android' in WiKi anyway)

Find the "system.img" which Android compile gives you to flash to your device.
Modify that image by mounting it and put your "bootanimation.zip" file in the '/system/media' folder.
Unmount your 'system.img' and do the normal process to pack and make the update image or directly use 'rkflashkit' tool to only flash the 'system.img' file to your device.

In case you want to load only the 'system.img' file into your device, the command to use 'rkflashkit' is this:
  1. rkflashkit flash @system system.img
Copy the code

It means flash 'system.img" file at 'system' partition address.
You need to know more about partitions and how to adjust their sizes, you can use my tool to set your partition sizes properly before loading your Android images.
Have a look at this post:  http://bbs.t-firefly.com/forum.php?mod=viewthread&tid=637
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