Firefly Open Source Community

Title: Requesting simple summary of steps required to modify boot animation [Print This Page]

Author: stillgoing    Time: 3/5/2015 08:48
Title: 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.


Author: vegeta    Time: 3/5/2015 10:21
Title: 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¡£

Author: stillgoing    Time: 3/7/2015 09:31
Title: 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?


Author: dewet    Time: 3/7/2015 13:04
Title: 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


Author: stillgoing    Time: 3/10/2015 08:12
Title: 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?


Author: sghazagh    Time: 12/14/2015 05:39
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




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1