[MOD] Enable Custom Boot Sounds MT4G/Glacier CM/AOSP - myTouch 4G Android Development

This is the same implementation as the g2 boot sound enabler with a few improvements.
i'm not responsible if you blah blah blah. don't be stupid, and don't flash things to your phone without realizing the possible risk. i haven't bricked a phone yet and don't plan on it.
DOWNLOAD:
View attachment bootsound-glacier-CM-signed.zip
MIRROR - Mediafire
This enables custom boot sounds. After flashing and rebooting you should be greeted with the all to famous "DROID" bootsound.
you will also have some new useful commands in terminal:
newbootsound - copies /sdcard/android_audio.mp3 as new bootsound
newbootanim - copies /sdcard/bootanimation.zip as new boot animation
bootsoundoff - turns boot sound off
bootsoundon - turns boot sound back on
Just files named accordingly on your sdcard's root i.e. 'bootanimation.zip' and 'android_audio.mp3'
Flash. Reboot. Enjoy.
Rom developers - feel free to include this in your builds if you so desire, please make sure credit is given accordingly to spiicytuna, mrdaviso, and myself.
if you're running a sense rom there's a totally different way of doing it so, should you be running sense... don't flash. or flash at your own risk, i can't guarantee the outcome.
untested... let me know if things go smoothly, the same process works for the evo g2 etc.. so shouldnt be an issue. make sure your media volume is up, some report if it's muted you wont hear it. (not sure about this, i guess it would be easy to test...)

Thanks this worked GREAT.

thanks worked great on cm7 rc2! so basically i can rename any sound file i want then overwrite the original? or does it have to be done through terminal? sorry for the ?? i am just learning
thanks again!

Terminal isn't required, but the sound you need to replace resides in /system/media so a file explorer with root access would be necessary.

not working?
i have tried this through root explorer and terminal. the outcome is correct in terminal... says that the new boot sound is there. I also was sure to check the volume. and still nothing? please help?

ya doesnt work on cm7 rc4 either

worked great for me ... except that the boot sound plays regardless of whether I have the volume down / muted / etc. before I reboot.
i'm on royalginger v1.5 which is based on cm7 nightly #31

ckisgen said:
worked great for me ... except that the boot sound plays regardless of whether I have the volume down / muted / etc. before I reboot.
i'm on royalginger v1.5 which is based on cm7 nightly #31
Click to expand...
Click to collapse
Why is it based off of #31? Just curious...

DADDYDC650 said:
Why is it based off of #31? Just curious...
Click to expand...
Click to collapse
why didn't you just IM me? el oh el
cos in my researching on the boards and also the other test builds I made - #31 was the most stable overall.

Ya can't seem to get it to work. The script seem to work fine but i think im applying the Audio file wrong can someone post an example? System/media. Running cm rc4

guys here is a manual method of unlocking boot audio...I got this from an older thread that was deleted for some odd reason..
anyway I did not make this script and I do not intend to take credit, but here is a manual way if all else fails.
1. download and rename the bootsnd.txt to bootsnd.sh and NOT bootsnd.sh.sh
2. place the file in the root of your sd card
3. use root explorer to set /system to r/w
4. open terminal type: su and hit enter to gain root priv,
5. type "cd /sdcard" with out the quotes to mount the sdcard root
6. type "sh bootsnd.sh" with out quotes and hit enter wait about 10 seconds then close terminal NOTE* YOU WILL NOT SEE ANY OUTPUT or confirmation! hit enter ONLY once unless you want to eat BOOTLOOPS for breakfast
7. with root explorer push android_audio.mp3 to /system/media
8. reboot and BOOM!
this does NOT work on sense roms, only works with AOSP (any cm builds) as far as I have tested.
I have included my own boot audio its a god of war 3 overture theme portion
now that is my work as I had to chop it up
unzip and rename it to android_audio.mp3 first before pushing it

Related

Disable boot sound

The phone was too loud when booting up (too loud to reboot when in school ) so I created an update.zip which disables the sounds at boot time - when the little android pops-up and later at the HTC logo (boot sound).
You should be able to install these whit the cyanogen's recovery image (copy the file to the /sdcard as update.zip, boot the recovery image, apply update.zip and you are done).
* file disable_boot_sound_update-signed.zip disables the boot sounds
* file enable_boot_sound_update-signed.zip reverts it to the stock (re-enables)
The process is done by replacing the /system/media/boot_animation.xml so if you have any custom boot animations/sounds this will possibly override/discard them. You have been warned
If anyone would contribute a new (better/different) boot sound, I can package it into an update.
WARNING: To disable boot sounds on a MoDaCo custom ROM versions 1.2-2.0 use the 1.5.1_bootscreens* files
To disable boot sounds on the 1.79.482.3 firmware or prior please use the disable_boot_sound_update-signed.zip.
Enjoy
Changelog
1.1
MoDaCo custom ROM ver. 1.2-1.5.1 support
1.0
Initial release
Nice... Maybe you can also change it to get and install bootsounds from the SD card? If no sound exist there, then it will be quiet..
If these files exist in /sdcard, use them:
/sdcard/popup.wav
/sdcard/htclogo.wav
Hmmm... must check how to do that with the update script... I know it could be done by a bash/shell script within the system (booted up/no recovery)...
It's actually only one file (boot.mp3) and there are also .gif files for screen animation.
Thnx for this i was so annoying to start the phone in quite places.
very good! it works! thanks dude!
felikz said:
very good! it works! thanks dude!
Click to expand...
Click to collapse
No problem. I am also planing to do it also for the 1.2-1.5 MoDaCo ROM and later for the 2.x branch update.
Sweet! You made my day! I've been trying to solve this and here's the solution. Thx!
I made this change for some weeks ago on my HTC Hero too, but what I made was to split the MP3 file and only keep the Android "blip" sounds when starting up, but removing the LOAD HTC sound. I love my change, it's great
If anyone wants it I've now attached it.
Hi there,
Im using the Sprint CDMA Hero and just put the newly released 'Fresh' Rom on it.
Is there any way you could either make a flash/zip file to disable its sounds or explain how I can create one?
Really appreciate it.

[Q] change boot animation?

i have searched but cant find the ideal guide on how to change the boot animation AND mp3 sound. i see it all on youtube but its confusing the way they do it.
someone point me in the right direction?? thanks in advanced.
also do i need to have NAND unlocked??
I would purchase Root Explorer for $1 and do it through that app.
You basically need to find the thread located on this website with a collection of boot animations. Download the zip that's included and flash through recovery. If you wish to change the .mp3 sound for let's say the Dancing Droid boot animation you would want to go through Root Explorer and overwrite/place mp3 file in the correct formatted name.
Here's the thread:
http://forum.xda-developers.com/showthread.php?t=708173
Cool thanks but root explorer is like $5 where do you get it for $1?
-On That Black Ops Status-
Oops my bad. I probably too it for another app. Try downloading ES File Explorer since it's free. I buy so many apps that I forget the price sometimes.
so it there any exact walkthrough?
im just not used to all the "experienced people should know what this means"
stuff..
like when u say recovery u mean hboot??
Recovery is when you power off your phone, hold volume down and boot on your phone while holding it down. You can then flash .zip from recovery by choosing "choose zip from sdcard" and finding the boot animation, confirming (as in yes) and installing.
if i mess up can i reflash my nand??
i already backed everything up..
Yes you can do a Nand restore.
cool thank you
gqstatus0685 said:
Recovery is when you power off your phone, hold volume down and boot on your phone while holding it down. You can then flash .zip from recovery by choosing "choose zip from sdcard" and finding the boot animation, confirming (as in yes) and installing.
Click to expand...
Click to collapse
didnt work in recovery.. i flashed and everything but no success.. same old one..
I've been trying to figure it out too?
Swyped From Eva Running Myn's RLS4.95 On The Now Network!
The boot animation is in /system/media put the file in there & replace the existing one. It must be named the exact same & be a .zip I suggest booting into recovery & wiping cache & dalvik after replacing it
Will try that hope it works
theultimatev said:
The boot animation is in /system/media put the file in there & replace the existing one. It must be named the exact same & be a .zip I suggest booting into recovery & wiping cache & dalvik after replacing it
Click to expand...
Click to collapse
Let me know if it works nuggy
-On That Black Ops Status-
Didn't let me overwrite my boot out said its read only. So my guess is I have to do it through adb?
xtrubambinoxpr said:
Let me know if it works nuggy
-On That Black Ops Status-
Click to expand...
Click to collapse
Swyped From Eva Running Myn's RLS4.95 On The Now Network!
Pushboot is the easiest way
Oh boy. Have you guys actually made a rom or flashed a boot animation? I don't think so. Here's a step-by-step tutorial.
1. NANDROID NANDROID NANDROID <--- Always do this when modifying your rom unless you like starting over.
2. Find the bootanimation that you want. Some come with the sound and some don't. I prefer ones without sound.
3. Get the Android USB drivers and ADB from the Android SDK if you haven't already and make sure the drivers are installed for your phone. If I have to explain that, then you shouldn't use technology.
4. Now, I would just do this the easy way and open up the zip file that the bootanimation comes in. If the bootanimation is named bootanimation.zip, then there's nothing to extract as that's the file we need. The sound file will be called SPC_animation_final.mp3. That's what the file names for the animation and sound must be.
5. Now, make sure that bootanimation.zip and SPC_animation_final.mp3 are in the same folder as ADB and open a command prompt. Make sure you Chdir to the same directory that ADB is and then type: adb remount
6. If you're rooted, you should see "remount succeeded" and you'll have read/write on your phone. If you don't see that message, you have to remount another way. The other way is to type: adb shell. Then, type: cat /proc/mounts. Look for the line that has an mtdblock in it and /system. You'll need that mtdblock number. The command I use is: mount -o rw,remount -t yaffs2 /dev/block/mtdblock4 /system. Yours may be different if your partition setup is different. Yours could be 3, 5, 6, etc. If you aren't rooted, then leave this thread and go do that.
7. If you are still in adb shell, type exit to go back to the normal CMD. Otherwise, just go to step #8.
8. Next, type: adb push bootanimation.zip /system/customize/resource. It should copy it over without error.
9. Then, type adb push SPC_animation_final.mp3 /system/customize/resource. Again, it should copy without error.
10. Now, to test to make sure this worked, you can type adb shell bootanimation. Watch your phone and if you see your bootanimation, then it worked. If you don't, then it didn't copy right. Not sure if this test will play the animation sound as I don't use one.
11. If you really want to make sure it worked, type adb shell reboot and that will reboot your phone.
12. ???
13. Profit!
so everything is done through adb command..
-_- thats too difficult for me.. cuz if overtime i wanna change it again..
its a hassle..
xtrubambinoxpr said:
so everything is done through adb command..
-_- thats too difficult for me.. cuz if overtime i wanna change it again..
its a hassle..
Click to expand...
Click to collapse
what exactly is it that you want to do? I might help
basically want one of the animations from this page http://forum.xda-developers.com/showthread.php?t=708173
i really want the dancing android and a song of my choice but if its too complicated i dont think its worth it..
i use boot animation changer lite on my evo and it works fine..
maybe there is an easy way??

Quick and Easy Bootanimation.zip Swap for the G2

****Disclaimer!!! I am not responsible for any errors or issues that may come from using these directions. This method has been tested and used by me on the T-Mobile G2 ONLY.****
Ok, I like playing with boot animations on my device. And I have this quirk for running everything I can on the device, rather than through ADB, unless I have to. While digging through assorted threads, here and abroad, I ran across a nifty app called GScript lite, free on the Market, and amazingly useful. On another thread, someone pointed out that if you copy a boot animation to /data/local, it will take precedence over any boot animations that your favorite ROM may install. So, I decided to simplify changing boot ani's, so I can swap them around whenever I feel like it. I now have it down to about 30 sec, and decided to post this for everyone interested to try it. Ok, so, here's the details;
Requirements: GScript lite, file manager, new boot animations
1) Download the animation you want to try to your SDcard
2) Copy the zip to /mnt/sdcard
3) Rename animation file "bootanimation.zip"
4) Open GScript and hit menu
a) Type in whatever you want to call the script in the top
box
b) Make sure "Needs SU?" is checked
c) Type cp /mnt/sdcard/bootanimation.zip /data/local
<enter>
reboot
d) Now hit "save"
5) Just press your scriptname in the list and enjoy!
From here on out, to change boot animations, all you need to do is copy the renamed file to SD root, and click on that script, phone will reboot showing your brand new animation. "Share and Enjoy!"
I'd like to thank the GScript devs for a very useful tool, and Kaanha for the commands
Click the Thanks button if this helps you.
Nice...definitely makes switching them pretty simple. Thanks!
Sent from my HTC Vision using XDA Premium App
Works like a charm!!!!
Thanks Much!!!
There are a few apps on the Market that can do this as well, no Terminal knowledge required (or scripts)
Simply search for your bootanimation from the GUI and it should do the job for you...
Boot Animation Changer Lite comes to mind, it's free.
There are a few other ones if you search for bootanimation on the Market.
Hope this helps. Good luck
perfect, worked like a charm, enjoying my honeycomb animation now. thank you.
neophyte8 said:
perfect, worked like a charm, enjoying my honeycomb animation now. thank you.
Click to expand...
Click to collapse
Link me to your honeycomb animation?
*Edit nevermind i just used the boot animation from the honeycomb port 18 thanks.

[MOD] Enable custom Boot Sounds in CyanogenMod 07/15/2011

Enable Custom Boot Sounds
First make sure you are running a cyanogenmod based rom, i have only tested on CM7, but i believe the capability exists in CM6 as well.
Flash from recovery:
http://www.mediafire.com/?4cr7aa4lg51y8pc
BUSYBOX REQUIRED - if you dont have a proper busybox install (like cm7) this can sometimes fail. if you experience issues, mount system rw before running the script.
Zip contains the default "DROID" sound, to replace with your own see below.
Instructions:
1) Flash from recovery over current rom
2) reboot phone
Once you have flashed this you will also have some new commands in terminal or adb:
enablebootsound - enables boot sound if enable from recovery was unsuccesful
bootsoundtoggle - turns bootsound on or off
newbootsound - copies /sdcard/android_audio.mp3 as new boot sound
newbootanim - copies /sdcard/bootanimation.zip as new bootanimation.
Feel free to post your custom sounds in this thread. i'll try and keep the first post updated.
Once again - to set custom sound or animation place them on root of sdcard named appropriately i.e. 'bootanimation.zip' and 'android_audio.mp3'
Enjoy.
bootsound enable script by mrdaviso modified by me for compatibility and to eliminate double runs, from a tutorial posted by spiicytuna
Very cool idea and a very nice implementation. I had a media force close as soon as the phone finished turning on, but then again I was using a 5mb mp3. Also as soon as I did "newbootsound", the selected song started playing. Other then that everything works exactly as you described . Ill post some logs up tomorrow. Thanks!
Nice work. I always thought this had to be done by fixing the links in /system/bin/bootanimation
Sent from my HTC Vision using XDA Premium App
I'm always changing my animations and will now be changing bootsounds....so I hope you don't mind, I made a small change to /system/bin/bootsound
Its now
#!/system/bin/sh
bprop=/system/build.prop
play=$(cat $bprop | egrep -c -i -o ro.config.play.bootsound=1)
if [ "$play" = "1" ]; then
stagefright -a -o /system/media/*.ogg
stagefright -a -o /system/media/*.mp3
fi
exit 0
Sent from my HTC Vision using XDA Premium App
Doesn't work on PyroMod.
----------------------------------------
Never mind. A wipe and a few reflashes later and I got it working right.
In CM7 RC2, remember to type "su" before typing enablebootsound...
It works! great add-on to cm7, u tha man!
EdWRX said:
In CM7 RC2, remember to type "su" before typing enablebootsound...
It works! great add-on to cm7, u tha man!
Click to expand...
Click to collapse
In Terminal Emulator period you need to type su (to gain root access) before typing any of the commands.
I'm running CM 6.1.1 and it worked great..only thing is the boot audio cuts out about 5 seconds before my animation ends (and it's not the audio clip..it's 30seconds long)..is there any way to increase the length of this?
In case you wanna add to the OP, this is from enablebootsound.
#I just made this into a script this was from a post on XDA by spiicytuna
#http://forum.xda-developers.com/showpost.php?p=8274824&postcount=2
#Please give the credit to him not me.
Sent from my HTC Vision using XDA Premium App
only thing is the boot audio cuts out about 5 seconds before my animation ends (and it's not the audio clip..it's 30seconds long)..is there any way to increase the length of this?[/QUOTE]
I have the same problem. Any suggestions? I might have to wipe, but I don't want to unless I have to xD
Sent from my HTC Vision using XDA Premium App
this sounds so awesome, but im a super noob when it comes to other things that isnt just flashing something and bam its there.......
Simer03 said:
this sounds so awesome, but im a super noob when it comes to other things that isnt just flashing something and bam its there.......
Click to expand...
Click to collapse
EDIT no terminal required now
Already have the perfect start sound. Android Hell wave from Portal. Other good ones would be "Hello friend" and "Amusing Fact" from Portal.
when i run enablebootsound after su and reboot...it loop....
but i get into recovery and press fix permissions ..it sound DRIOD...
well done!
I was able to get this working on my evo shift cm7 nightly rom, great work!
update:
http://www.mediafire.com/download.php?dxjcc9cyhzyalz3
if you have already flashed and used the previous version, this one is of no use to you.
The only modification is after flashing when you are rebooting you will see your splash screen for a few seconds, then your device will reboot and continue like normal. ONE REBOOT is normal. after this reboot the boot sound will automatically play. so for you self proclaimed super noobs, all you do is flash and reboot. once again after flashing your device will boot to splash screen for a few seconds then reboot and greet you with your animation and the default android sound.
see OP for changing the sound.
If you can, why not build an app that lets you change your sound? Something similar to Root Tools by Rummler. You can swap boot-animations easily with that app, granted you can only change from the ones he has. There are 24 of them.
sounds like a good idea. I would use an App to do this. Shouldn't be too hard, as right now I use gscripts to do most of my changing/testing.
This will never be released as an app by me. Script only. a few commands in terminal should be easy enough, and it isn't a customization suite, it's just to enable the boot sound, the ability to change was an after thought and is a simple few lines.
mejorguille said:
Very cool idea and a very nice implementation. I had a media force close as soon as the phone finished turning on, but then again I was using a 5mb mp3. Also as soon as I did "newbootsound", the selected song started playing. Other then that everything works exactly as you described . Ill post some logs up tomorrow. Thanks!
Click to expand...
Click to collapse
I know how to get the clip to play all the way through. I got it on mine. Not sure if there are any side effects, but perhaps you would like to test it out? If so, please send me your clip.
@ amazinglarry311
Do you think this will cause any side effects? I dont know much, but I like to tinker and learn
If you remove the line that tells it to stop playing the boot audio
this
Code:
on property:dev.bootcomplete=1
stop bootsound
from
/etc/init.local.rc
so it now looks like this
Code:
# CyanogenMod Extras
# Compcache - handle at boot
service compcache /system/bin/handle_compcache
user root
group root
oneshot
###Bootsound - Safe to Delete: Start ###
service bootsound /system/bin/bootsound
user media
group audio
disabled
oneshot
on property:init.svc.bootanim=running # to correct timin
start bootsound
### Bootsound - Safe to Delete: End ###
As long as the audio clip doesn't exceed boot time, than you should be good.
If the clip is longer, it will continue to play, until its finished...which no one probably wants.
If anyone wants to give it a shot, just backup your file, and edit it... or use the attached file. Its not zipped, just remove the .zip from the filename.
Thanks.

[TUT][CM7]How to put sound with bootanimation

This is tutorial for how to put sound with boot animation
first download attached file bootsound.zip
then extract it
you find two files
one is bootsnd.sh put this file directly in sdcard
second file is soundatboot.zip it is cwm flashable zip so in cwm mount system and sdcard then install this zip file
then reboot
now open terminal eluminator
then type following(after each command push enter)
su
cd /sdcard (there is space after cd )
sh bootsnd.sh
reboot
now when reboot there is music with bootanimation
when want to change music rename your desire sound to android_audio.mp3 and copy to system/media/
then reboot
i have this error in terminal emulator:
cd /sdcard: not found
edited: now ok!!!! (there should be space after cd )
Hold on: first, clean up the article a little more, I can't understand you very well.
Second, explain a little bit more about that script your using; what it does and whatnot.
I may know what is going on in here but what about the newbs? C'mon, do it better mate Thanks!
AlterJack said:
Hold on: first, clean up the article a little more, I can't understand you very well.
Second, explain a little bit more about that script your using; what it does and whatnot.
I may know what is going on in here but what about the newbs? C'mon, do it better mate Thanks!
Click to expand...
Click to collapse
In which part you not understand tell ill make more clear
first you installed soundatboot.zip by cwm?
And put bootsnd.sh file in sdcard?
AlterJack said:
Hold on: first, clean up the article a little more, I can't understand you very well.
Second, explain a little bit more about that script your using; what it does and whatnot.
I may know what is going on in here but what about the newbs? C'mon, do it better mate Thanks!
Click to expand...
Click to collapse
if uve done flashing ur device to CM7, more or less u have an idea how to do it
it works ! thanks...
hello, i already followed your guide without error, but i still couldn't get any sound when booting, im using cm7 kaang beta2,
i also changed my boot animation from THIS thread.
should i change the bootanimation back to the stock animation from cm7?
oh yeah, i also tested it by putting mp3 files in the /system/media where the bootanimation also exists, still,no luck so far,
don't know where it go wrong, since i didn't get any error when running the command in terminal, and when installing the soundaboot.zip, i didn't get any error message either in the cmw
uman01 said:
hello, i already followed your guide without error, but i still couldn't get any sound when booting, im using cm7 kaang beta2,
i also changed my boot animation from THIS thread.
should i change the bootanimation back to the stock animation from cm7?
oh yeah, i also tested it by putting mp3 files in the /system/media where the bootanimation also exists, still,no luck so far,
don't know where it go wrong, since i didn't get any error when running the command in terminal, and when installing the soundaboot.zip, i didn't get any error message either in the cmw
Click to expand...
Click to collapse
First in cwm mount system
then install soundatboot.zip
then reboot
then in terminal elumilator write commands
it works
It works (Cyanogenmod). Many thanks!
how about shutdown sound?
please help...thanks
It works! Much thanks for this tutorial.
shutdown sound plz...
loveablekrish said:
shutdown sound plz...
Click to expand...
Click to collapse
I tried many time but feel its not work without shutdown animation though if i get ill share
So, I tried everything you said. First time I did it, I had that bollywood boot sound. I then change it to one of my own, a .mp3 file I had converted from a .wav file; 160 kB.
But nothing happens, no sound at all. I even tried doing the whole process from scratch, including the script part. Any thoughts on this?
AlterJack said:
So, I tried everything you said. First time I did it, I had that bollywood boot sound. I then change it to one of my own, a .mp3 file I had converted from a .wav file; 160 kB.
But nothing happens, no sound at all. I even tried doing the whole process from scratch, including the script part. Any thoughts on this?
Click to expand...
Click to collapse
You tried other sounds of mp3 formate?
And changed permissions to rw-r-r ?
If doing this nothing happen just extract that zip file and put your sound in media folder then again zip and install then
nims11 said:
You tried other sounds of mp3 formate?
And changed permissions to rw-r-r ?
If doing this nothing happen just extract that zip file and put your sound in media folder then again zip and install then
Click to expand...
Click to collapse
Sorry but could you rephrase? I don't understand what you meant on your last post. Thanks nims11 for your help.
AlterJack said:
Sorry but could you rephrase? I don't understand what you meant on your last post. Thanks nims11 for your help.
Click to expand...
Click to collapse
I mean after changing new sound you changed its permission to rw-r-r?
nims11 said:
I mean after changing new sound you changed its permission to rw-r-r?
Click to expand...
Click to collapse
So, there are more steps to the ones you already mentioned?
Could I trouble you with a ste-by-step tutorial? Because I didn't know I had to do that nor your tutorial indicates so. Thanks.
worked for me ..
Hello,
I am having this error, "chown: unknown user/group root:shell".
Please help.
Thanks!

Categories

Resources