Welcome to theMikMik!

We are a friendly community of Android custom Roms developers and users. If this is your first visit, be sure to check out the forum rules. You will need to register before you can post, and as a registered user you will also see fewer advertisements. Join us now to become a part of one of the most helpful Android community online and get the max from your phone!

Results 1 to 8 of 8
  1. #1
    Senior Member
    Join Date
    Jul 2011
    Posts
    132
    Thanks
    11

    HOW TO: Add custom bootanimation sound

    Per a few member's requests, I am putting this HOW TO together. It's quite simple, and really should work for just about any Gingerbread ROM for the Thunderbolt out there right now. There may be some small variations from one ROM to another, but the basics should all be the same. Hopefully I explain it thoroughly enough that you can figure it out if there happens to be some small differences.

    First you need to be aware of where the bootanimation is to be found. I have looked through a couple different ROMs, and found them in a couple different places. Since this is in the Gingeritis 3D ROM section, I'll base this how to on that ROM.

    Look in /system/customize/resource/

    (Note: In other ROMs, you might find the bootanimation in /system/media/)

    You should find the following file in there: VZW_bootanimation.zip

    That is the bootanimation for this ROM. You can change that to whatever bootanimation you'd like, and there are several sources for custom bootanimations available to you. How you decide to go about choosing your custom bootanimation is entirely up to you.

    Next, you need to decide what sound/song/music it is that you want to play to your bootanimation. Remember that bootanimations don't last very long. You can make your audio clip as long as you'd like, but once the phone is done booting, it will simply stop playing your boot sound and go to the lock screen. So having a really long sound clip is simply going to waste space. The only time you might make it through a sound clip longer than 15 or so seconds is if you wiped your dalvic cache. The phone will rebuild the dalvic cache during the first boot, and as such, you'll be able to enjoy your sound clip for as long as it is booting (ie. the sound will play for as long as you made it last, or as long as it takes the phone to rebuild the dalvic cache and complete the boot cycle. Whichever comes first.).

    Once you have your sound clip picked out and trimmed to your liking (make sure it is saved as an mp3), you need to give it a name. For simplicity sakes, we'll name it the same as the name of what the stock boot sound would be, which is: Verizon_Thunderbolt_3sec.mp3


    After giving it its name, you need to move it to the proper folder within the phone's system. The location is: /system/customize/resource/ (that should sound familiar, as it's the same folder where the bootanimation.zip is located)

    OK. Now that you have your custom bootanimation.zip and custom boot sound file in the proper location, you will now likely need to make a small change to an XML file that is found in the following location: /system/customize/CID/

    The file you're looking for is called: default.xml

    Assuming you've used Root Explorer to access these folder and file locations on your phone, long press the "default.xml" file, and when given the option list, scroll down and select "Open in Text Editor".

    Once you've done that, scroll down to the bottom of the file and find the following line:
    <BootAnimation animation="/system/customize/resource/VZW_bootanimation.zip" audio="/system/customize/resource/Verizon_Thunderbolt_3sec.mp3" audiostart="VZW" />

    This is telling you how the system is accessing/referencing both the bootanimation and the boot sound (both by location and by name). Notice that it gives you the full string to the location, and the exact name by which it is called.

    (For those of you who might be performing this modifcation on a different ROM that might have the bootanimation located in a different folder, this is how you figure out where to go to find and where to put the custom bootanimation and boot sound. Inversely, you could also alter the string and change where and by what name the system will access/reference the bootanimation and sound clip. Then you just have to make sure to place the animation and sound clip to the location you specify in the string, and make sure the names match.)

    It is also telling you when it will start playing the audio clip where it says: audiostart="VZW" />. In this example, it is telling you it will begin the boot sound as the VZW folder within the bootanimation.zip is accessed by the system to display the images inside that folder. The stock/Verizon bootanimation has only one folder inside of it, and it is named VZW.

    Most of the custom bootanimations I've looked over consist of 2 folders within the archive. Part0 and Part1, where Part 0 contains the initial images of the bootanimation, and Part1 contains the images that will repeatedly play in a loop during a boot cycle. As such, if you do not edit the string above where it calls out VZW as the folder that activates the boot sound, you will not get any sound during your boot cycle. You need to delete VZW, and add the name of the folder that contains the images that you wish to have sound played to. You may want the sound to start just as soon as your bootanimation begins to play. If that's the case, and your bootanimation archive is configured with a Part0 and Part1 set of folders, simply change VZW to Part0. If you would prefer that the sound didn't start playing til you begin the second set of images that will play in a continuous loop, then change VZW to Part1 instead.

    Now, the default.xml should read like the following:

    <BootAnimation animation="/system/customize/resource/VZW_bootanimation.zip" audio="/system/customize/resource/Verizon_Thunderbolt_3sec.mp3" audiostart="Part0" /> (for if you want it to start playing as soon as the bootanimation begins)

    or
    <BootAnimation animation="/system/customize/resource/VZW_bootanimation.zip" audio="/system/customize/resource/Verizon_Thunderbolt_3sec.mp3" audiostart="Part1" /> (for if you want it to start playing after the initial bootanimation images, or in other words, only during the continuous loop part of the bootanimation)

    If you aren't sure how your bootanimation.zip is configured, simply view the custom bootanimation archive either on your computer or on your phone using a file explorer. Within the archive, you will see how the folders are named.

    If your custom bootanimation is similar to most of the ones I've looked at, you will find Part0 and Part1 inside of the archive. Obviously, there can be some variation out there.

    Lastly, make sure that all files associated with your bootanimation (ie. VZW_bootanimation.zip, Verizon_Thunderbolt_3sec.mp3, and default.xml) have permissions set to 644/rw-r--r--.

    Hopefully you find this HOW TO helpful. If you have any questions, or if anything wasn't explained clear enough, let me know, and I'll revise it to make it easier to understand.
    Last edited by Boostjunky; 10-25-2011 at 06:31 PM.

  2. The Following 2 Users Say Thank You to Boostjunky For This Useful Post:       Show/Hide
    nick1313 (10-25-2011), stushug (01-06-2012)
  3. #2
    Administrator nick1313's Avatar
    Join Date
    Mar 2011
    Location
    Columbia MO
    Posts
    16,515
    Thanks
    3,381
    Nice work man, going to move this to the guides and tutorials section for the tbolt.
    You like my work? Be sure to hit the thanks button or if you feel so inclined you can
    * Phone Details
    Phone: HTC One M8
    Hardware: ???
    HBoot: ???
    Baseband: ???
    PRI: ???
    Recovery: ???
    Kernel: ???
    ROM: ???
    Theme: ???
    64gb class 10


    TEAM MiK
    MikROMs Since Since 1/30/11

  4. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    3
    Thanks
    0
    Dude this is awesome and will totally use. Do know how I would add custom sound to an action that doesn't already exists. For example plugging my phone into the charger or usb connection or whatever. Say I wanted add a sound for that is there a way to do that, just curious.

  5. #4
    Senior Member
    Join Date
    Jul 2011
    Posts
    132
    Thanks
    11
    Quote Originally Posted by scoobs
    Dude this is awesome and will totally use. Do know how I would add custom sound to an action that doesn't already exists. For example plugging my phone into the charger or usb connection or whatever. Say I wanted add a sound for that is there a way to do that, just curious.
    While I'm sure it's completely possible to implement, it's way beyond my scope to be able to figure out how to do that.

    It's one thing to modify existing code. It's entirely another thing to create code that may not already exist.

  6. #5
    Junior Member
    Join Date
    Oct 2011
    Posts
    3
    Thanks
    0
    Yeah I figured it was a long shot I just thought it would be b.a. if when you plugged it in the phone would be like W.T.F. or something LOL but thanks for your help

  7. #6
    Junior Member
    Join Date
    May 2011
    Posts
    24
    Thanks
    0
    looking for the stock HTC tbolt with sound can't find it it would be a huge help if someone could
    make a zip that would work through cwr for that
    much appreciated

  8. #7
    Administrator jadeboy7's Avatar
    Join Date
    Mar 2011
    Posts
    25,362
    Thanks
    3,270
    Quote Originally Posted by jacko1 View Post
    looking for the stock HTC tbolt with sound can't find it it would be a huge help if someone could
    make a zip that would work through cwr for that
    much appreciated
    I think there's one in this thread. Not sure if it's flashable or not though.
    Have a problem? Look here first (work in progress)

    *Please press Thanks if I've helped you out*
    * Click Here for My Phone Info
    Phone: HTC Evo 4G HTC Evo 4G LTE T-Mobile HTC One (M8)
    Hardware: 0003 0003 0005
    HBoot: 0.93.0000 1.12.2222 3.16.0.0000
    Baseband: 2.15.00.11.19 1.12.11.0809 1.14.21331931.LA02_2G_20.30A.4145.01L
    ROM: MikG 3.11 NikLaTtE V3.01 Stock (1.12.531.19)
    Kernel: AnthraX Build 0004 Stock JB ElementalX-m8-0.9-Sense
    Recovery: Amon_RA 2.3 TWRP 2.3.3.0 TWRP 2.7.0.2
    SD Card: None None Samsung 32GB Class 10 MicroSDHC
    Battery: Sprint 2600 mAh Built-in 2000 mAh Built-in 2600 mAh
    My Box folder: http://www.box.com/s/7m44xjv3b8rbgpy7vzjb
    My MediaFire folder: http://www.mediafire.com/jadeboy7


    TEAM MiK
    MikROMs Since 1/7/11
    Want your own Team Mik logo for your signature? Look here!
    Have I helped you? Consider helping me:

  9. #8
    Super Moderator cmonsterf50's Avatar
    Join Date
    Apr 2011
    Location
    Hillsboro, OR
    Posts
    3,779
    Thanks
    714
    Quote Originally Posted by jadeboy7 View Post
    I think there's one in this thread. Not sure if it's flashable or not though.
    Probably can be easily made. Just need the animation to start :o

    Sent from my PC36100 using Tapatalk
    Semi-Retired Super Moderator
    Samsung Galaxy S 4
    Samsung Galaxy Note 10.1 (2012)
    Samsung Galaxy Tab 3 (T217S)
    Google ChromeCast
    TeamMik since March 2011


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •