Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

PowerOn Sound on Firefly RK3288

417

Credits

15

Prestige

16

Contribution

intermediate

Rank: 3Rank: 3

Credits
417

PowerOn Sound on Firefly RK3288

Posted at 8/12/2015 17:50:26      View:2899 | Replies:3        Print      Only Author   [Copy Link] 1#
Hi all,
Anyone knows how to have PowerOn sound enabled on FireFly RK3288?
I have copied the "PowerOn.ogg" file on "/system/media/audio/ui" but this doesn't work and have no sound at boot time?! Set the full permission and still no sound!

For Your Info, I have made my own "bootanimation.zip" and placed in "system/media" folder and now have my own boot animation but the sound doesn't work!!!

Any idea?
Reply

Use props Report

543

Credits

19

Prestige

15

Contribution

advanced

Rank: 4

Credits
543
Posted at 8/13/2015 11:44:13        Only Author  2#
Put boot.ogg in /system/media/audio
Reply

Use props Report

417

Credits

15

Prestige

16

Contribution

intermediate

Rank: 3Rank: 3

Credits
417
Posted at 8/13/2015 13:59:46        Only Author  3#
That works mate, many thanks...  

By any chance, do you know what the name of the 'shutdown' file should be and where I should place it?

I appreciate your help again...
Reply

Use props Report

417

Credits

15

Prestige

16

Contribution

intermediate

Rank: 3Rank: 3

Credits
417
Posted at 8/13/2015 19:04:06        Only Author  4#
Last edited by sghazagh In 8/13/2015 19:07 Editor

Here is answer to my above question:

I have searched through the Android SDK files for Firefly RK3288 and have found that the main C++ file defining the Bootanimation is :
./frameworks/base/cmds/bootanimation/BootAnimation.cpp

In there, the boot music is defined as well and that's why the name should be "boot.ogg" to work.

I also have found that we can have "shutdownanimation.zip" similar to "bootanimation.zip" file but there is no function for shutdown and FireFly does nothing at the time of shutdown unless you manually define whatever you need to have:
  1. void BootAnimation::checkExit() {
  2. // Allow surface flinger to gracefully request shutdown
  3.     if(mShutdown)//shutdown animation
  4.         {
  5.         return;
  6.         }
Copy the code
As you see, it simply exits the routine and further on the code it calls the power off java routine to turn the system off.

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