[HOW TO]Adding and changing sounds on boot animations

Search This thread

Infantry667

Senior Member
Nov 2, 2011
113
59
Intro:
Another boot animation fix comin at ya. A TON of people want to know how to add and change sounds on custom boot animations on the Droid X2 and like all of them I could not find enough info on the world wide web that I could send a link to them to help out. SO after a little bit of messing around and some help from WugFresh I have the answer.

The apps:
First you will need a couple apps. You will need absolute system, root explorer and file converter. You can get them from the android market, just do a search for them. They're not free but if you know anything about root you probably already have root explorer and maybe even absolute system, but you will need file converter by ice cold apps.

The programs:
Again if you know anything or a decent amount about root you probably already have these programs but if not then download them. You will need 7Zip (preferably 7Zip) because as far as I know it is one of the only if not the only program that can zip files correctly WITHOUT compression which is mandatory because if there is any compression applied to the bootanimatiom.zip file OT WILL NOT WORK! You will also need either GVIM or Editor++ in order to properly edit the desc.txt file in the bootanimation.zip which we all know is what makes the boot animation work and if that is not configured correctly then, well, you're gonna be throwing things.

The method:

1.
Find the boot animation you want and download it using absolute system or from whatever source, whether it be from a forum thread or whatever. If you download it from a source other than absolute system you have to make sure before applying it you have to place it on the root of your sd card and make sure it is not named bootanimation.zip if there are other boot animations on your sd card because if they are named the same, obviously, they will overwrite eachother so name them however you want.

2.
Find the sound you want to use, it can be any sound file as long as it's short enough (or not) to play completely on boot. Download it, place it in your sd card and open the file converter app. Use file converter to find the file and once you've found and selected it select to convert it to .ogg. It MUST be converted to .ogg or it WILL NOT work. Once it is converted find the converted version ("sound".ogg or "whatever you named it".ogg) and use root explorer to move it to /sytem/media and leave it there for now.

3.
Plug your phone in to your computer, make sure USB debugging is enabled, and put your phone into USB mass storage mode once your phone is connected. Open up the files from your sd card on your computer and find the boot animation .zip you are going to change and move it to your computer. Next open up 7Zip and find the boot animation .zip file you just moved. Select the file and extract it to wherever you want to on your computer. Once you have extracted the .zip files with 7Zip go to the extracted files on your computer.

Note: (This next part will save the edited version as the orginal version so if you want to make a backup before you edit it just rename however you want or copy it into a separate folder named desc backup.) :)

4.
Right click on the extracted desc.txt file from the boot animation amd right click on it. Once you right click you will see an option that says either "edit with Editor++" or "edit with VIM" depending on which program you decided on (I prefer Editor++). Select the option and it will open up the desc.txt in your editor of choice. There may be a lost of guidelines in the desc.txt file for editing parts of the desc.txt but this is usually only in stock boot animations. Decide where you want the sound file to play and comment in the sound file you want to use by adding a line under the part you choose it to play at by typing "s 'sound'.ogg" DO NOT type what I wrote verbatim, the name 'sound' is just to give an example. Here is an example of a desc.txt file that has been edited to have sound:
(The red part is the sound line)

# 540 wide, 960 tall 10 frames per second
540 960 10

# p means we're defining a part
# first number is repeat count, 0 means infinite
# second number is delay in frames before performing the next part
# so if you are playing 15 frames a second 15 would be... one second
# string defines the directory to load files from
# files will be loaded in order but names don't matter

# s defines a sound for a part
# sounds will be loaded from /system/media
# oggs with loop points will loop automatically
# only one sound will play at a time
# timing is driven by the part, not the sounds
# if you want no sound, leave blank


# droid
p 1 0 01_droid
s Fusion.ogg

# fusion
p 1 0 02_fusion

# mobility
p 1 0 03_mobility

# loop
p 0 0 04_loop
[/SIZE]

Notice the name of the sound in the desc.txt file is the same as the one I want to use. I hate to sound like I'm trying to make you feel stupid, which I am most definitely not, I just want to make sure this is detailed enough for anyone to follow.

4. Continued:
Once you have commented in the sound line, and you can add as many as you want just make sure you read the guidelines in the example desc.txt file above, save the file and exit your editor.

5. Open 7Zip and find the extracted boot animation files again with the edited desc.txt file. Make sure that the only files showing up in 7Zip are the boot animation files you extracted including the original desc.txt file that was edited and only that edited one, not the backup if you made one. In the menu bar on the 7Zip program click on "edit" and click on "select all" in the drop down menu that pops up. Next click "file" in the menu bar, move your cursor to the 7Zip option and when the drop down menu pops up click on "add to archive..." Then when the window pops up just change the name to whatever you want, select "zip" in the Archive format drop down menu, select "store" in the compression level drop down menu (you must select store or the boot animation .zip file you are creating will be compressed and as I mentioned above it won't work with compression) and then click "OK" to create the .zip file. Once it is created go ahead and move it onto the root of your sd card.

6. Unplug your phone from your computer and once the sd card is mounted open up absolute system. Go to boot animations and press menu and selct "boot animation editor." Press menu again and select "import from sd card." Find the boot animation you edited and slect it. Pres menu once it brings up the window with all the .png images and select "import" and when the window pops up prompting you to name the bootanimatiom just name it however you want and select "import." In order for the boot animation you edited to show up in your list of downloaded boot animations in absolute system you must first close absolute system and reopen it, go into boot animation editor again and it should be there. Select your edited boot animation and when it opens up the window with all the .png images press menu and select "desc.txt editor" which will open up the desc.txt file in absolute systems own editor. Scroll down untill you see the "s" line you commented in and press on it, this will open up a small window prompting you to choose the file from either /data/local or /system/media. Selct to choos from /system/media and there will be a list of .ogg files to choose from (if there are more than one you put in there). Select which one you want to play for that line. This is just to make sure the bootanimation.zip is using the right .ogg file and so your phone knows where to play it from on boot. You can change these if you want but you cannot comment lines in or out using absolute system. Once you have finished making changes or confirming the sound files press menu and select "save changes." Once it's done saving the changes press back.

NOTE: THIS NEXT PART IS VERY IMPORTANT AND MUST BE DONE EXACTLY AS I HAVE WRITTEN, IN THE EXACT SAME SEQUENCE I AM GIVING YOU.

7.Sorry for yelling :) hehe. Once absolute system is done saving the desc.txt file and you have pressed back to re-enter the .png images window in absolute system press home and open up root explorer. In root explorer go to /system/media where you placed your .ogg files and move them again into /system/media/audio/notifications and press home key again. Open absolute system and install the boot animation to /data/local by selecting change install location and selecting "/data/local" and reboot your phone. If the sound does not play, which it should, install the boot animation in BOTH /data/local AND /system/media using absolute system.

You should now have sound along with your boot animation. I hope you all have fun adding crazy sounds to your boot animations. The thanks button is always happy when you press it! :)
 

CadenH

Senior Member
Sep 26, 2011
478
82
Awesome. The sound always gives me a hard time. Good job on this.

Sent from my DROID X2 using xda premium
 

Infantry667

Senior Member
Nov 2, 2011
113
59
Thanks :) I was surprised and a little aggravated that there is no other instructional thread for this.

Sent from my DROID X2 using XDA Premium App
 
Last edited:

cwalton4077

Senior Member
Jan 20, 2011
139
5
Did all the steps to the t and still no sound

Sent from my SGH-T839 using xda premium
 

mrdreamers

Senior Member
Oct 16, 2009
1,002
64
Texas
will this method work on the Galaxy S4 SGH-M919?
i only want to change the sound,
i already changed the boot animation. ;)
 
Last edited:

shmshd12

Senior Member
Nov 8, 2014
144
86
Kannur
Code:
640 400 30
c 1 30 part0
c 1 0 part1
c 0 0 part2
c 1 30 part3
c 1 0 part4
c 1 0 part5
My desc.txt file is shown like this!!
Where should i add the file name?? What if i insert my .gg file name at the last?
 

Devil Chan

Member
Jan 26, 2017
28
1
Does this method work for Huawei phones? Someone led me to this post. If so, sound isn't working for me. After every boot the 's name. ogg' tag gets removed. 'Boot animation' is 25 seconds and 'boot sound' is 19 seconds.
 

nano tech

Member
May 31, 2017
12
1
I want to play one bootsound throught the entire Bootanimation, please tell me how to do it. I have one sound that i want to play in 11 parts.
Thank you
 
Dec 18, 2017
28
7
Pls give me a link for absolute system.Cant find a place to download it?

The directories being listed are referring to SYSTEM directories (hidden from user-land view). Your phone must be rooted (root access) first. I'd suggest you use a 'root file browser' afterwards.

The "Root Browser" application (unsure if its listed on Google Play at this time) is an excellent one to use. Simple and fast interface. Minor annoyance with banner ads (free copy).

Hope that helps you (albeit a late reply). These forums are a gold mine of information!

In reference to the OP:
6. Unplug your phone from your computer and once the sd card is mounted open up absolute system. Go to boot animations and press menu and selct "boot animation editor."

It sounds as if you're referring to an application (I will Google it after this post) named "absolute system." It piqued my curiosity. You should be able to use adb strictly to push/pull all files onto the Android phone. I understand this thread was made in 2011. I can only assume times were different back then.

However: Why would you need or be required to place the "bootanimation.zip" (stored) and "XXX.ogg" into both the ./system/media and ./data/local directories? Does Android (for some unknown reason) pull two copies for security verification (stab in the dark)?

On this rooted LG K7 (Android 5.1.1): The ./system/media directory appears to be full of all related boot animation data and the latter is void of life; To reiterate: I understand this thread was from 2011 and the Android version was more than likely significantly lower.

If anyone could shine some light on this subject: I'd heavily appreciate it. I'm attempting to add in sound (a converted *.wav into *.ogg file) to the boot animation (no loop; Simply play it once).

Thank you, future poster. :)
 
V

VIPLightning

Guest
ObliviousEnigma,

At this point, adding bootanimation zip to data/local will no longer be recognized by android 5.0+. Just /System/media.

Also, considering if you want to add sound to it, I noticed that you have an LG phone. It should be easier for you to change it if you are on a stock ROM. you must go into the directory /system/media/audio/ui. And inside you should find the file called PowerOn.ogg. That is what you want to replace if you want to have different sound along with your boot animation. My recommendation, make sure that the audio is atleast 7 seconds long. I tried to experiment past it and it didn't work for me no matter what phone I used.

For others who are still using the droid x2 but with a custom rom (other devices work too), First off, your best bet is to extract the bootanimation zip first. Secondly, if you want the sound to be played at the beginning, add the sound file to the part 0. Leave the sound file the way it is instead of converting it to .ogg, but make sure to rename it to audio.wav. There are 3 things to keep in mind before moving on:
1) the desc.txt is not required to change.
2) it seems that only a 7 second audio can be played. Any others more than 7 seconds will not play.
3) if there are other existing audio wav files inside any folder of the bootanimation (except the one you placed at), delete it.

Thirdly, once you are finished, rezip the file without compression, whatever app that you use to do it (I use the RAR app by Rarlabs). Fourth, drag the bootanimation.zip back into /System/media. If permissions need to be set, make it rwxr-r-. Lastly, reboot your phone to watch the magic happen!
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 48
    Intro:
    Another boot animation fix comin at ya. A TON of people want to know how to add and change sounds on custom boot animations on the Droid X2 and like all of them I could not find enough info on the world wide web that I could send a link to them to help out. SO after a little bit of messing around and some help from WugFresh I have the answer.

    The apps:
    First you will need a couple apps. You will need absolute system, root explorer and file converter. You can get them from the android market, just do a search for them. They're not free but if you know anything about root you probably already have root explorer and maybe even absolute system, but you will need file converter by ice cold apps.

    The programs:
    Again if you know anything or a decent amount about root you probably already have these programs but if not then download them. You will need 7Zip (preferably 7Zip) because as far as I know it is one of the only if not the only program that can zip files correctly WITHOUT compression which is mandatory because if there is any compression applied to the bootanimatiom.zip file OT WILL NOT WORK! You will also need either GVIM or Editor++ in order to properly edit the desc.txt file in the bootanimation.zip which we all know is what makes the boot animation work and if that is not configured correctly then, well, you're gonna be throwing things.

    The method:

    1.
    Find the boot animation you want and download it using absolute system or from whatever source, whether it be from a forum thread or whatever. If you download it from a source other than absolute system you have to make sure before applying it you have to place it on the root of your sd card and make sure it is not named bootanimation.zip if there are other boot animations on your sd card because if they are named the same, obviously, they will overwrite eachother so name them however you want.

    2.
    Find the sound you want to use, it can be any sound file as long as it's short enough (or not) to play completely on boot. Download it, place it in your sd card and open the file converter app. Use file converter to find the file and once you've found and selected it select to convert it to .ogg. It MUST be converted to .ogg or it WILL NOT work. Once it is converted find the converted version ("sound".ogg or "whatever you named it".ogg) and use root explorer to move it to /sytem/media and leave it there for now.

    3.
    Plug your phone in to your computer, make sure USB debugging is enabled, and put your phone into USB mass storage mode once your phone is connected. Open up the files from your sd card on your computer and find the boot animation .zip you are going to change and move it to your computer. Next open up 7Zip and find the boot animation .zip file you just moved. Select the file and extract it to wherever you want to on your computer. Once you have extracted the .zip files with 7Zip go to the extracted files on your computer.

    Note: (This next part will save the edited version as the orginal version so if you want to make a backup before you edit it just rename however you want or copy it into a separate folder named desc backup.) :)

    4.
    Right click on the extracted desc.txt file from the boot animation amd right click on it. Once you right click you will see an option that says either "edit with Editor++" or "edit with VIM" depending on which program you decided on (I prefer Editor++). Select the option and it will open up the desc.txt in your editor of choice. There may be a lost of guidelines in the desc.txt file for editing parts of the desc.txt but this is usually only in stock boot animations. Decide where you want the sound file to play and comment in the sound file you want to use by adding a line under the part you choose it to play at by typing "s 'sound'.ogg" DO NOT type what I wrote verbatim, the name 'sound' is just to give an example. Here is an example of a desc.txt file that has been edited to have sound:
    (The red part is the sound line)

    # 540 wide, 960 tall 10 frames per second
    540 960 10

    # p means we're defining a part
    # first number is repeat count, 0 means infinite
    # second number is delay in frames before performing the next part
    # so if you are playing 15 frames a second 15 would be... one second
    # string defines the directory to load files from
    # files will be loaded in order but names don't matter

    # s defines a sound for a part
    # sounds will be loaded from /system/media
    # oggs with loop points will loop automatically
    # only one sound will play at a time
    # timing is driven by the part, not the sounds
    # if you want no sound, leave blank


    # droid
    p 1 0 01_droid
    s Fusion.ogg

    # fusion
    p 1 0 02_fusion

    # mobility
    p 1 0 03_mobility

    # loop
    p 0 0 04_loop
    [/SIZE]

    Notice the name of the sound in the desc.txt file is the same as the one I want to use. I hate to sound like I'm trying to make you feel stupid, which I am most definitely not, I just want to make sure this is detailed enough for anyone to follow.

    4. Continued:
    Once you have commented in the sound line, and you can add as many as you want just make sure you read the guidelines in the example desc.txt file above, save the file and exit your editor.

    5. Open 7Zip and find the extracted boot animation files again with the edited desc.txt file. Make sure that the only files showing up in 7Zip are the boot animation files you extracted including the original desc.txt file that was edited and only that edited one, not the backup if you made one. In the menu bar on the 7Zip program click on "edit" and click on "select all" in the drop down menu that pops up. Next click "file" in the menu bar, move your cursor to the 7Zip option and when the drop down menu pops up click on "add to archive..." Then when the window pops up just change the name to whatever you want, select "zip" in the Archive format drop down menu, select "store" in the compression level drop down menu (you must select store or the boot animation .zip file you are creating will be compressed and as I mentioned above it won't work with compression) and then click "OK" to create the .zip file. Once it is created go ahead and move it onto the root of your sd card.

    6. Unplug your phone from your computer and once the sd card is mounted open up absolute system. Go to boot animations and press menu and selct "boot animation editor." Press menu again and select "import from sd card." Find the boot animation you edited and slect it. Pres menu once it brings up the window with all the .png images and select "import" and when the window pops up prompting you to name the bootanimatiom just name it however you want and select "import." In order for the boot animation you edited to show up in your list of downloaded boot animations in absolute system you must first close absolute system and reopen it, go into boot animation editor again and it should be there. Select your edited boot animation and when it opens up the window with all the .png images press menu and select "desc.txt editor" which will open up the desc.txt file in absolute systems own editor. Scroll down untill you see the "s" line you commented in and press on it, this will open up a small window prompting you to choose the file from either /data/local or /system/media. Selct to choos from /system/media and there will be a list of .ogg files to choose from (if there are more than one you put in there). Select which one you want to play for that line. This is just to make sure the bootanimation.zip is using the right .ogg file and so your phone knows where to play it from on boot. You can change these if you want but you cannot comment lines in or out using absolute system. Once you have finished making changes or confirming the sound files press menu and select "save changes." Once it's done saving the changes press back.

    NOTE: THIS NEXT PART IS VERY IMPORTANT AND MUST BE DONE EXACTLY AS I HAVE WRITTEN, IN THE EXACT SAME SEQUENCE I AM GIVING YOU.

    7.Sorry for yelling :) hehe. Once absolute system is done saving the desc.txt file and you have pressed back to re-enter the .png images window in absolute system press home and open up root explorer. In root explorer go to /system/media where you placed your .ogg files and move them again into /system/media/audio/notifications and press home key again. Open absolute system and install the boot animation to /data/local by selecting change install location and selecting "/data/local" and reboot your phone. If the sound does not play, which it should, install the boot animation in BOTH /data/local AND /system/media using absolute system.

    You should now have sound along with your boot animation. I hope you all have fun adding crazy sounds to your boot animations. The thanks button is always happy when you press it! :)
    1
    Hello..... Is this method still valid? Does it work with Android 4.0.4?
    Kind regards.