Boot-up Sound on DROID X...info in build.prop

Discussion in 'Android Hacks and Help' started by carlz28, Jul 13, 2010.

  1. carlz28
    Offline

    carlz28 Premium Member Theme Developer Premium Member

    Joined:
    Feb 28, 2010
    Messages:
    820
    Likes Received:
    1
    Trophy Points:
    0
    So I was looking at the system dump for the DROID X and came across something that tells the phone to do something with the boot-up sound.

    Can anybody else figure out what is needed to do this with our Droids?


    Source:
    /system/build.prop DROID X



    # BEGIN Motorola, a22976, 12-Mar-2010, IKSHADOW-1784, Power Up Tone
    # Motorola, a22976, 12-Apr-2010, IKSHADOW-3298, Remove temporary power up tone
    # BEGIN Motorola, wbdq68, 21-May-2010, IKSHADOW-3372, Turn ON Power Up Tone
    # Motorola, a22976, 26-May-2010, IKSHADOW-6164, Remove power up tone to keep the same as Droid
    #persist.mot.powerup.tone=/system/media/bootup.ogg
    # END IKSHADOW-3372
    # END IKSHADOW-1784
  2. kicker22004
    Offline

    kicker22004 New Member

    Joined:
    Aug 20, 2010
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    here is what i found so far.

    # BEGIN Motorola, a22976, 12-Mar-2010, IKSHADOW-1784, Power Up Tone
    # Motorola, a22976, 12-Apr-2010, IKSHADOW-3298, Remove temporary power up tone
    # BEGIN Motorola, wbdq68, 21-May-2010, IKSHADOW-3372, Turn ON Power Up Tone
    # Motorola, a22976, 26-May-2010, IKSHADOW-6164, Remove power up tone to keep the same as Droid
    #persist.mot.powerup.tone=/system/media/bootup.ogg
    # END IKSHADOW-3372
    # END IKSHADOW-1784




    Remove the # on #persist.mot.powerup.tone=/system/media/bootup.ogg

    and you can change it to file dir...just change the file type to .ogg or .mp3
  3. elektronikbadger
    Offline

    elektronikbadger New Member

    Joined:
    Apr 8, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Virginia Beach, VA
    *edited to credit OP for desc.txt*

    The problem with the X build.prop is that it does not enable stagefright at boot:

    media.stagefright.enable-player=false
    media.stagefright.enable-meta=false
    media.stagefright.enable-scan=false
    media.stagefright.enable-http=false

    The Droid build.prop enables stagefright:

    media.stagefright.enable-player=true
    media.stagefright.enable-meta=true
    media.stagefright.enable-scan=true
    media.stagefright.enable-http=true

    but the Droid does not contain the part that was found in the X build.prop:

    # BEGIN Motorola, a22976, 12-Mar-2010, IKSHADOW-1784, Power Up Tone
    # Motorola, a22976, 12-Apr-2010, IKSHADOW-3298, Remove temporary power up tone
    # BEGIN Motorola, wbdq68, 21-May-2010, IKSHADOW-3372, Turn ON Power Up Tone
    # Motorola, a22976, 26-May-2010, IKSHADOW-6164, Remove power up tone to keep the same as Droid
    #persist.mot.powerup.tone=/system/media/bootup.ogg
    # END IKSHADOW-3372
    # END IKSHADOW-1784

    I've been looking into this as well (since the R2D2 boot animation leaked) and have found no way yet to get the droid to access the boot sound. The bootanimation.zip tells the phone to call for a file (d2_r2d2_pu.ogg) and it says its supposed to be in /system/media. I put the file there and still get no sound.

    Here's what the desc.txt says in bootanimation.zip:

    # 480 wide, 854 high, 15 frames a second

    480 854 15
    # 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 /data/local
    # 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, declare 'none'

    # stars for 30 frames
    p 1 30 part0
    s none
    # R2D2 rises
    p 1 0 part1
    s none
    # Looping R2D2
    p 0 0 part2
    s d2_r2d2_pu.ogg
    # must have newline after each part


    I'm sure there's something we're missing (other than the X and D2 have different hardware and software builds which may not allow us to utilize sound upon boot).

    I'm looking for the "thing" we're missing, but just not finding. Anyone else find something?

    ***I'm not the one who first looked at the desc.txt in the bootanimation.zip, credit to doomedromance for the desc.txt find***
  4. elektronikbadger
    Offline

    elektronikbadger New Member

    Joined:
    Apr 8, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Virginia Beach, VA
    So I cut this code from the Droid X build.prop and inserted it into the Droids build.prop and no sound. I did make sure the sound was in the proper folder... anyone with some ideas? Am I going the wrong way???


    Sent from my Droid using Tapatalk
  5. kiki123
    Offline

    kiki123 New Member

    Joined:
    Sep 16, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
  6. elektronikbadger
    Offline

    elektronikbadger New Member

    Joined:
    Apr 8, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Virginia Beach, VA
    So...

    I was trying to figure out what's going on with the code in the build.prop and noticed that the line:

    # Motorola, a22976, 26-May-2010, IKSHADOW-6164, Remove power up tone to keep the same as Droid

    Does not have a closing comment. I'd guess that means it's still an active script or something, but haven't found where the IKSHADOW-6164 script or whatever is.

    Has anyone run across that while doing some mods?
  7. Se7enLC
    Offline

    Se7enLC New Member

    Joined:
    Nov 16, 2009
    Messages:
    1,263
    Likes Received:
    0
    Trophy Points:
    0
    Comments in scripts like that are generally line-based. What I mean by that is that any line that starts with a # is a comment, and there is no closing tag needed. That whole line is the comment. IKSHADOW-6164 is probably an internal name for a software release version or something.
  8. elektronikbadger
    Offline

    elektronikbadger New Member

    Joined:
    Apr 8, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Virginia Beach, VA
    I agree, but I can't find a reference to the sound or to the software build... anyone?

    Sent from my Droid using Tapatalk
  9. kevdog
    Offline

    kevdog New Member

    Joined:
    Nov 14, 2009
    Messages:
    722
    Likes Received:
    0
    Trophy Points:
    0
  10. chewybang
    Offline

    chewybang New Member

    Joined:
    Sep 24, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    I'm on the same boat. I love this boot up animation on my Droid X froyo 2.2 rooted but cannot get the sound to work. Have done the exact same steps but there has to be something we're missing.

    I have even copied the d2_r2d2_pu.ogg file into the /data/local folder and still nothing. Anyone willing to give us a hand? It would be greatly appreciated. Thanks!
  11. jrummy16
    Offline

    jrummy16 Premium Member Theme Developer Premium Member Developer

    Joined:
    Jan 25, 2010
    Messages:
    1,212
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Orange County, CA
    I haven't looked into this at all but you're probably going to want to compare .rc files in the root directory. Probably some service that runs at boot.
  12. chewybang
    Offline

    chewybang New Member

    Joined:
    Sep 24, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    I have no idea what that means but I'll look into it dancedroid
  13. chewybang
    Offline

    chewybang New Member

    Joined:
    Sep 24, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    So THIS is what I was missing to get the sound to come out (take the # out). The problem is that the sound comes out way too late in the animation. Now on to the quest to make it come out earlier...
  14. oldschool71
    Offline

    oldschool71 New Member

    Joined:
    Sep 30, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    Not in build.prop

    Modifying the build.prop will only give you a sound at the end of the bootanimation.


    I have been able to get bootanimations to play on my droid x with sound. I took the following steps to enable this. I used root explorer to move the files.

    1. Download the attached file. This file is one that I removed from a R2D2 D2.
    2. Unzip the file and save the file to your sdcard. The file is labeled bootanimation.
    3. Use root explorer and go to the folder /system/bin.
    4. In that folder locate the file named bootanimation and save it as bootanimation2
    5. move the file that you just renamed to your sdcard
    6. move the new file that you downloaded and placed on your sdcard to the folder /system/bin
    7. simple as that.

    You will need to make sure that what ever audio file that is assigned to your bootanimation is saved in the folder /system/media

    Have to give squidlymandingo a thanks for supplying the files from the R2D2 D2. Thanks

    Attached Files:

  15. elektronikbadger
    Offline

    elektronikbadger New Member

    Joined:
    Apr 8, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Virginia Beach, VA
    oldschool71... you're my hero! I was thinking that the bootanimation file you provided would help things, but hadn't got to it yet. This works great on my D1!

    Hopefully the rest of the community will see this and get it as well!
  16. czerdrill
    Offline

    czerdrill New Member

    Joined:
    Jan 2, 2010
    Messages:
    4,828
    Likes Received:
    12
    Trophy Points:
    0
    so you're saying the bootanimation sound works on the d1? and not just after the animation is done?
  17. elektronikbadger
    Offline

    elektronikbadger New Member

    Joined:
    Apr 8, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Virginia Beach, VA
    Exactly! I updated the desc.txt in the bootanimation.zip to see if the sound started at different times during bootup... and it does. I was testing with the R2D2 boot animation and I can start the sound at all 3 parts listed in the desc.txt file.

    I had to add a loop to the .ogg file that came with the animation to get the sound to play a little longer (approx 8 seconds), but it works great.

    If you decide to use a sound, make sure the filename matches the one in desc.txt in the bootanimation. It can be a .ogg or .mp3 as long as the file is also placed in /system/media/ with the bootanimation.zip.

    I tested on BB 0.5, but the file structure seems to be very close to the same as the rest of the ROMs I've used, so I can bet it'll work on any ROM.

    THX again oldschool71!!!
  18. oldschool71
    Offline

    oldschool71 New Member

    Joined:
    Sep 30, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    not yet

    I have not tried d1 yet. Still working with dx
  19. czerdrill
    Offline

    czerdrill New Member

    Joined:
    Jan 2, 2010
    Messages:
    4,828
    Likes Received:
    12
    Trophy Points:
    0
    Can you paste that bootani and the sound here?
  20. elektronikbadger
    Offline

    elektronikbadger New Member

    Joined:
    Apr 8, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Virginia Beach, VA
Search tags for this page
blue droid dna boot animation w/sound for pc
,
build.prop boot sound
,
build.prop power up tone
,
build.prop sound android
,
cant find stagefright for bootsound
,
d2 r2d2 pu.ogg
,
disable boot sound build.prop
,
download all powerup.ogg boot sound
,

droid x boot sound

,
enable android boot sound
,
how to get the droid sound at start up on my droid x
,
removing droid sound from droid x at start up