Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Prolong Android Bootanimation/ Boot video

543

Credits

19

Prestige

15

Contribution

advanced

Rank: 4

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

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

543

Credits

19

Prestige

15

Contribution

advanced

Rank: 4

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

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

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

This forum Credits Rules

Quick Reply Back to top Back to list