Firefly Open Source Community

   Login   |   Register   |

Prolong Android Bootanimation/ Boot video

543

Credits

19

Prestige

15

Contribution

advanced

Rank: 4

Credits
543
Posted at 2/9/2015 03:55:20     

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,

Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 2/10/2015 18:14:56     

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.

Reply

Use props Report

543

Credits

19

Prestige

15

Contribution

advanced

Rank: 4

Credits
543
Posted at 2/11/2015 11:58:48     

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.

Reply

Use props Report

244

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
244
Posted at 2/13/2015 14:04:02     

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!

Reply

Use props Report

2

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
2
Posted at 2/14/2015 06:22:18     

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.

Reply

Use props Report

13

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
13
Posted at 3/5/2015 07:22:28     

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.

Reply

Use props Report

2

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
2
Posted at 3/6/2015 04:20:24     

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
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