Firefly Open Source Community

Title: Prolong Android Bootanimation/ Boot video [Print This Page]

Author: dewet    Time: 2/9/2015 03:55
Title: Prolong Android Bootanimation/ Boot video

Hi


Is it possible to make the Android Bootanimation play longer than 3-5 seconds before booting to the homescreen?


"BootAnimation: Adding boot video capabilities, default /system/media/boot.mp4 (BOOTVIDEO_FILE change the format can be modified), supportmp4, wmv and other mainstream formats"

RK3288 devices now also support mp4 boot.mp4 video as boot video.

This also plays for 3-5 seconds before booting to Android Homescreen.


Even tried to write a script in boot.img, init.rc for sleep 10 but it only makes the screen black for 10 seconds and not bootanimation/video play longer for eg 10-15 seconds.


Even tried in init.rc

Code:
  1. service bootanim /system/bin/bootanimation
  2.     start delay
  3.     class main
  4.     user graphics
  5.     group graphics
  6.     disabled
  7.     oneshot


  8. service delay /system/bin/sh /system/bin/delay.sh
  9.     class main
  10.     user root
  11.     group root
  12.     disable
  13.     oneshot
Copy the code

and make a script in system/bin called delay.sh.
delay.sh is a script, sleep 10 for 10 seconds,


Author: busybee    Time: 2/10/2015 18:14
Title: Re: Prolong Android Bootanimation/ Boot video

Hi, Dewet,


Plz check "frameworks/native/services/surfaceflinger/SurfaceFlinger.cpp"

Function SurfaceFlinger::bootFinished()  is used to terminate boot animation.


BTW, I cannot see this commit:

"BootAnimation: Adding boot video capabilities, default /system/media/boot.mp4 (BOOTVIDEO_FILE change the format can be modified), support mp4, wmv and other mainstreamformats"


You should also check BootAnimaition source code in framework/base/cmds/bootanimation/ , to see its exit logic.


Author: dewet    Time: 2/11/2015 11:58
Title: Re: Prolong Android Bootanimation/ Boot video

Hi, Dewet,


Plz check "frameworks/native/services/surfaceflinger/SurfaceFlinger.cpp"

Function SurfaceFlinger::bootFinished()  is used to terminate boot animation.


BTW, I cannot see this commit:

"BootAnimation: Adding boot video capabilities, default /system/media/boot.mp4 (BOOTVIDEO_FILE change the format can be modified), supportmp4, wmv and other mainstreamformats"


You should also check BootAnimaition source code in framework/base/cmds/bootanimation/ , to see its exit logic.


Hi

It was actually in Nagrace NT-V6 firmware the boot.mp4 video bootanimation, here is the commit

2014-12-30   e296bf9 Android->BootAnimation:添加开机视频功能,默认为/system/media/boot.mp4(可修改BOOTVIDEO_FILE改变格式),支持mp4,wmv等主流格式

Maybe it can also be implemented in Firefly firmware and boot-time increased to 15 seconds for bootanimation/video to play longer.

Or a setting in build.prop or Android Settings menu to increase/reduce boot-time so that it plays your own bootanimation/video longer/shorter.


Author: naobsd    Time: 2/13/2015 14:04
Title: Re: Prolong Android Bootanimation/ Boot video

It was actually in Nagrace NT-V6 firmware the boot.mp4 video bootanimation, here is the commit

2014-12-30   e296bf9 Android->BootAnimation:添加开机视频功能,默认为/system/media/boot.mp4(可修改BOOTVIDEO_FILE改变格式),支持mp4,wmv等主流格式

Maybe it can also be implemented in Firefly firmware and boot-time increased to 15 seconds for bootanimation/video to play longer.

Or a setting in build.prop or Android Settings menu to increase/reduce boot-time so that it plays your own bootanimation/video longer/shorter.

interesting! when you integrate this, please share your work with us! thank you very much for your contribution to the community!


Author: TeutonJon78    Time: 2/14/2015 06:22
Title: Re: Prolong Android Bootanimation/ Boot video

You can setup the actual bootanimation zip to run for a certain amount of loops. So, if you use the frames per second with the amount of frames in the bootanimation, you can calculate the number of loops to make it last as long as you want.


Then if you change the "p" to a "c" in the desc.txt, it will complete that line of the animation even if the bootup has finished behind the scenes.


http://forum.xda-developers.com/showthread.php?t=1852621


So, you can do it pretty easily without having to change anything in the actual system code.


Edit: and if you unpack/repack the boot animation, remember that the compression method needs to be STORE (none) or it won't work. Also, make sure to delete any Thumbs.db if you're doing it from windows, as that will stop the animation from working correctly.


Author: stillgoing    Time: 3/5/2015 07:22
Title: Re: Prolong Android Bootanimation/ Boot video

Where exactly is the bootanimation.zip file located in the RK3288 SDK source tree?

I've found the code in ~frameworks/base/cmds/bootanimation, but can't find bootanimation.zip.

Apologies in advance if answer might be obvious, but I'm  new to this platform/environment.

Thank you.


Author: TeutonJon78    Time: 3/6/2015 04:20
Title: Re: Prolong Android Bootanimation/ Boot video

I'm not sure where it is in the SDK, but it will end up in /etc/media/ in the system.img





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