• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Root Only] Boot Sounds - Solution and Help

jntdroid

Android Enthusiast
Aug 18, 2010
254
35
I'm by no means trying to trump this thread, and greatly appreciate all the work danthemanohyea put into that. However, the problem still remains as to why we even have to do a workaround like that. Why, even if we rename/remove those audio files, do they still play?

I haven't solved the "why", I'm not a coder or xml (I think?) guy. But I have figured out what's controlling that and causing them to play. If you look in /system/bin, there is a "bootanimation" file. I opened it up in a text editor, and most of it is garbled (need a hex editor?), but I found this text near the end of it (sorry it's not organized, simply copying from notepad):

debug.sf.nobootanimation 0 %0 80 persist.sys.playBootSnd 1 BootAnimation Get property persist.sys.playBootSnd as %s. /hidden/data/Power-on sound/ Open DIR %s OK. Find file %s. .. %s%s Open file %s OK. Open file %s failed. Open DIR %s failed. Set boot sound %s. /system/media/audio/notifications/DearDeer.ogg Get boot animation from path /data/local/bootanimation.zip Get boot animation from path /system/media/bootanimation.zip Get boot animation from path /hidden/data/Power-on animation/bootanimation.zip Get boot animation from path /hidden/data/PowerOnAnimation/bootanimation.zip Use default Android boot animation. desc.txt descMap is null %d %d %d p %d %d %s images/android-logo-mask.png images/android-logo-shine.png​
There is also a reference to /system/bin/linker near the top of that file, but I could find nothing inside the "linker" file.

What's odd is there are a couple of directory references that just flat out don't exist - as well as a couple of image file references. Unless they're somehow hidden...

Long story short, if you remove the bootanimation file from /system/bin (move to sd or rename, I wouldn't delete it), all sounds and bootanimations are gone - you get a blank screen for a few seconds between the "M" Logo and the main lockscreen.

I have seen no ill effects from removing that file - which makes sense.

Now, that's not an ultimate solution. When that file is removed, there seems to be no way to get any sort of boot animation between the M and lockscreen. I kind of like at least having the simple Android logo - but for now, I prefer blank with no sound.

I would imagine some tweaks to that file could fix the problem ultimately, and hopefully someone on here knows how to do it! :)
 
You can easily replace the bootanimation.

just download any number of android boot screens, and replace the "/hidden/data/Power-on animation/bootanimation.zip" file with the one you download.

I'm personally using an aperture science one. You can also make your own using an image editor, then just package them the same as the bootanimation.zip is packaged.

Similarly, you can replace the shutdown animation by editing the files in "/hidden/data/shutdown/"

I am using a custom animation of the old school NES Mario death, for example

As for the sounds, just replace the files with the provided silent mp3 files. Don't rename or backup the originals.
 
Upvote 0
You can easily replace the bootanimation.

just download any number of android boot screens, and replace the "/hidden/data/Power-on animation/bootanimation.zip" file with the one you download.

I'm personally using an aperture science one. You can also make your own using an image editor, then just package them the same as the bootanimation.zip is packaged.

Similarly, you can replace the shutdown animation by editing the files in "/hidden/data/shutdown/"

I am using a custom animation of the old school NES Mario death, for example

As for the sounds, just replace the files with the provided silent mp3 files. Don't rename or backup the originals.

You're 100% right - except when you remove that bootanimation file from /system/bin. It doesn't work when that file is gone - that's all I was saying.

And yes, as I referenced at the beginning, danthemanohyeah's thread and files are extremely helpful and a good solution. I just wanted to get to the root of the problem and not have to do a workaround of sorts... though, I guess it's all a "workaround" in some way shape or form. ;)
 
Upvote 0
I thought this was a bit strange. I removed the start up animation by moving the bootanimation.zip from system/bin to the root of my sd card. I then wanted to see if I could move it back but doing so didnt make the bootanimation come back. Not really a big deal, but why isn't this working? Thanks
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones