Title: PowerOn Sound on Firefly RK3288 [Print This Page] Author: sghazagh Time: 8/12/2015 17:50 Title: PowerOn Sound on Firefly RK3288 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?Author: dewet Time: 8/13/2015 11:44
Put boot.ogg in /system/media/audioAuthor: sghazagh Time: 8/13/2015 13:59
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...Author: sghazagh Time: 8/13/2015 19:04 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:
void BootAnimation::checkExit() {
// Allow surface flinger to gracefully request shutdown
if(mShutdown)//shutdown animation
{
return;
}
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.
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)