[Android Themes] xirnibor:
more *no sound

so i did some digging into the bootanimation.zip files. the desc file usually should have something defined as sound, which this one does not....here is an example of how audio files are laid out sometimes.... the S always defines sound...

i was using an r2d2 boot animation as an example - ive also seen more success with .ogg audio files versus .mp3, but im still learning...

# 320 wide,480 high, 25 frames a second

480 800 25

#

p 1 0 part0

p 0 0 part1

# must have newline after each part 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

now here is the original desc.txt file with android screaming

# 320 wide,480 high, 25 frames a second

480 800 25

#

p 1 0 part0

p 0 0 part1

# must have newline after each part

--to me it seems like the file is missing the reference to S (sound)....--

also in the OP, there is reference to this file bootsnd.sh, which is listed correctly, however there is NO information on where to push this file to on the phone system directories. notice in the file it does reference the /system/media/android_audio.mp3 -

#!/system/bin/sh

#I just made this into a script this was from a post on XDA by spiicytuna

#http://xdaforums.com/showpost.php?p=8274824&postcount=2

#Please give the credit to him not me.

#Setting up the system for read/write access

if [ "`ls /sbin|grep -q recovery;echo $?`" = "0" ];

then

mount -a > /dev/null

recoverymode=y

else

mount -o rw,remount /system

recoverymode=n

fi

#This is to create the needed scripts in init.local.rc

echo '' >> /system/etc/init.local.rc

echo '' >> /system/etc/init.local.rc

echo '###Bootsound - Safe to Delete: Start ###' >> /system/etc/init.local.rc

echo "" >> /system/etc/init.local.rc

echo 'service bootsound /system/bin/bootsound' >> /system/etc/init.local.rc

echo ' user media' >> /system/etc/init.local.rc

echo ' group audio' >> /system/etc/init.local.rc

echo ' disabled' >> /system/etc/init.local.rc

echo ' oneshot' >> /system/etc/init.local.rc

echo '' >> /system/etc/init.local.rc

echo 'on property:init.svc.bootanim=running # to correct timin' >> /system/etc/init.local.rc

echo ' start bootsound' >> /system/etc/init.local.rc

echo '' >> /system/etc/init.local.rc

echo 'on property:dev.bootcomplete=1' >> /system/etc/init.local.rc

echo ' stop bootsound' >> /system/etc/init.local.rc

echo '### Bootsound - Safe to Delete: End ###' >> /system/etc/init.local.rc

#Now creating the bootsound script

touch /system/bin/bootsound

echo '#!/system/bin/sh' >> /system/bin/bootsound

echo '' >> /system/bin/bootsound

echo 'bprop=/system/build.prop' >> /system/bin/bootsound

echo '' >> /system/bin/bootsound

echo 'play=$(cat $bprop | egrep -c -i -o ro.config.play.bootsound=1)' >> /system/bin/bootsound

echo 'if [ "$play" = "1" ]; then' >> /system/bin/bootsound

echo ' stagefright -a -o /system/media/android_audio.mp3' >> /system/bin/bootsound

echo 'fi' >> /system/bin/bootsound

echo 'exit 0' >> /system/bin/bootsound

#Changing some permissions

chmod 777 /system/bin/bootsound

chown root:shell /system/bin/bootsound

echo '' >> /system/build.pro

echo 'ro.config.play.bootsound=1' >> /system/build.prop

mount -o ro,remount /system

exit