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

Author: davidad526    Time: 1/10/2026 21:13
Thank you for your amazing article, it’s truly thought-provoking! The 312-85 new exam collection sheet test was the secret to my promotion and pay raise—today, I’m giving it to you for free!
Author: gracemo623    Time: 1/12/2026 09:13
This article is truly remarkable, thank you so much for sharing! I’m giving you access to the GH-200 reliable dumps ppt test that helped me achieve a promotion and salary raise. It's free today—wishing you success!
Author: johnfis997    Time: 1/12/2026 09:14
The content is deep, and I’ve gained a lot of useful knowledge from it. Get the Test XK0-005 quiz test that contributed to my promotion and salary raise, available for free today. Best wishes for your career!
Author: sidwhit395    Time: 1/23/2026 04:26
Die C_SIGPM_2403 Prüfung ist ein neuer Wendepunkt in der IT-Branche. Sie werden der fachlich qualifizierte IT-Fachmann werden. Mit der Verbreitung und dem Fortschritt der Informationstechnik werden Sie Hunderte Online-Ressourcen sehen, die Fragen und Antworten zur SAP C_SIGPM_2403 Zertifizierungsprüfung bieten. Aber ExamFragen ist der Vorläufer. Viele Leute wählen ExamFragen, weil die Schulungsunterlagen zur SAP C_SIGPM_2403 Zertifizierungsprüfung von ExamFragenI hnen Vorteile bringen und Ihren Traum verwirklichen können.
Author: davidta523    Time: 2/1/2026 14:19
PDFExamDumps是個很好的為CompTIA CAS-005 認證考試提供方便的網站。根據過去的考試練習題和答案的研究,PDFExamDumps能有效的捕捉CompTIA CAS-005 認證考試試題內容。PDFExamDumps提供的CompTIA CAS-005考試練習題真實的考試練習題有緊密的相似性。
Author: gusston689    Time: 2/9/2026 07:16
Pass4TestはSalesforceのMCAE-Con-201認定試験について開発された問題集がとても歓迎されるのはここで知識を得るだけでなく多くの先輩の経験も得ます。試験に良いの準備と自信がとても必要だと思います。使用して私たちPass4Testが提供した対応性練習問題が君にとってはなかなかよいサイトだと思います。
Author: seansto335    Time: 2/15/2026 09:03
Thank you for your article, it truly caught my attention. Upgrade your IT skills with free Authorized PSM-III exam dumps. Wishing you good luck in your exams!
Author: loushaw959    Time: 2/18/2026 10:27
I’m all in on this content, hitting like right away. Free Manufacturing-Cloud-Professional new study notes resources available. Best of luck to all!
Author: harrybe620    Time: 3/5/2026 12:52
I’m thoroughly impressed, this deserves an instant like. The Reliable study questions NSE7_SSE_AD-25 free content is incredibly helpful, and it’s available to you for free.




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