[SOLVED!!!!] Cannot get bootsound to work on Harmonia

Re: Cannot get bootsound to work on Harmonia

The "usage mount:" message means that the command syntax is not correct.

Sent from my VM670 using Tapatalk

yes and if you read the code that the script uses it is attempting to use proper coding syntax. However something is causing it to fail and not process the commands properly. Which given the nature of the previous command failures superuser is not authorizing the terminal app and if the same error pops up with adb, proper permissions.
 
Re: Cannot get bootsound to work on Harmonia

Ok so I installed harmonia and Im getting the same error panda is getting. However I did notice some residual stuff from IHO was still present. Weird.

GOing to wipe and reinstall again .

The mount error is because the chown command is before the chmod command. atleast that is what I was just told via twitter.
Now I can get the script to create the files and edit the build.prop but it wont play the sound on boot up. Ill mess with this some more in a bit.

Im also thinking it isnt changing the build.prop permission properly and that is the hang up.
 
Last edited:
Re: Cannot get bootsound to work on Harmonia

froyo based roms don't always integrate busybox as thoroughly as cm7 roms do, I'm not sure about harmonia specifically.
you might need to preface your commands in the script with a busybox alias...
near the beginning of the script,
Code:
alias a=busybox
and each line that doesn't work right, like this;
Code:
a chmod blah blah blah
a chown blah blah blah
I could be totally off base here, but toolbox and busybox definitely handle commands differently, and if busybox isn't specifically linked to the commands you want to use it'll default to toolbox, which is not only picky, it's deliberately neutered to dodge rooting methods.
 
Re: Cannot get bootsound to work on Harmonia

Im not sure where the problem is coming from.

I edited the bootsnd.sh file to reflect having chown and chmod in the proper order and it still give the error.
But the files are created and the code echo'ed to the proper places. The only thing I can think thats not working is the setting permissions. So I manually change them and still nothing. The sound just wont play.

Bigsupersquid is correct as I seen a post somewhere that said sometimes you have to make busybox do the mods. But everything is copying over it just wont play.

Im at a loss not even sure where the problem is. Ive seen a couple places where people so the exact same thing manually as the script does and they cant get it to work. This is on several different phones using Froyo roms. So I guess its safe to assume it just wont work??!??
 
Re: Cannot get bootsound to work on Harmonia

since it's froyo instead of GB, are you putting your bootsound named as PowerOn.mp3 in /system/sounds/poweron
?
it's all I can think of.
Maybe attach the current bootsound.sh script, I can look at it too.
 
Re: Cannot get bootsound to work on Harmonia

since it's froyo instead of GB, are you putting your bootsound named as PowerOn.mp3 in /system/sounds/poweron
?
it's all I can think of.
Maybe attach the current bootsound.sh script, I can look at it too.

well the script calls the bootsound as android_audio.mp3, not sure if the script would have to be modified for froyo is so that is easy enough to do.

http://dl.dropbox.com/u/10373328/bootsnd.sh
 
Re: Cannot get bootsound to work on Harmonia

Keep us updated! I didnt even think of any of this. Thanks for working on this.
 
Re: Cannot get bootsound to work on Harmonia

from stock froyo init.rc:
Code:
# LGE_CHANGE_S [soocheol.heo@lge.com] 2010-07-08, merge from MS690 for enable boot sound
# 20100708 [email]hyeongwoo.seo@lge.com[/email] MS690: Change.. media -> root
# LGE_CHANGE [dojip.kim@lge.com] 2010-06-28
service bootsound /system/bin/playmp3
    user root
    group root
    oneshot

so instead of stagefright, maybe try using the built-in?
this is still in the harmonia init.rc
maybe try the default location and filename for the boot sound (/system/sounds/poweron/PowerOn.mp3) ?
I'll test it here shortly.

edit:
the /system/sounds directory exists, but not the poweron subdirectory.
so, mkdir /system/sounds/poweron
and put the sound in that folder, named PowerOn.mp3.

still testing.

edit yet again:
yeah, that works.
just create the /system/sounds/poweron subdirectory, and put an mp3 named PowerOn.mp3 in it.

final edit: your script , eollie, probably isn't working in froyo roms because unless it's specifically added by the dev, init.local.rc isn't run by init.rc on startup.
 
Last edited:
Re: Cannot get bootsound to work on Harmonia

So what do I need to do to get this working? Do I need to rename the mp3? And then what? Im confused.
 
Re: Cannot get bootsound to work on Harmonia

in terminal, or adb shell;
Code:
su
mount -o remount,rw /system /system
mkdir /system/sounds/poweron
cp /system/media/android_audio.mp3 /system/sounds/poweron/PowerOn.mp3
mount -o remount,ro /system /system
assuming you already have the /system/media/android_audio.mp3 on the phone from trying to make this work the other way.

then reboot, and watch people jump from the self destruct notification.
 
Re: Cannot get bootsound to work on Harmonia

in terminal, or adb shell;
Code:
su
mount -o remount,rw /system /system
mkdir /system/sounds/poweron
cp /system/media/android_audio.mp3 /system/sounds/poweron/PowerOn.mp3
mount -o remount,ro /system /system
assuming you already have the /system/media/android_audio.mp3 on the phone from trying to make this work the other way.

then reboot, and watch people jump from the self destruct notification.

I must have done something wrong. It still doesn't play.I typed the commands. That's all I did,
 
Re: Cannot get bootsound to work on Harmonia

Is there anything more I should do besides type in the commands? Is there a script I need to use?
 
Re: Cannot get bootsound to work on Harmonia

you could make it a script if you want, but that should do it.
just type it in.
or copy and paste it in adb shell on your pc.
did it give you any errors?
 
Re: Cannot get bootsound to work on Harmonia

you could make it a script if you want, but that should do it.
just type it in.
or copy and paste it in adb shell on your pc.
did it give you any errors?

No. No errors at all. Just wouldn't play.

I was thinking; should I maybe delete the stuff from the other method? Like the stuff from init.local.rc, or the bootsound file, etc?
 
Re: Cannot get bootsound to work on Harmonia

does your .mp3 file play ok in the media player?
does it show up with
Code:
ls /system/sounds/poweron/
init.local.rc is inert, it won't do anything.
i dunno, worked on harmonia on my ov. used the stock PowerOn.mp3 to test it. it plays before the harmonia animation comes on.
 
Re: Cannot get bootsound to work on Harmonia

does your .mp3 file play ok in the media player?
does it show up with
Code:
ls /system/sounds/poweron/
init.local.rc is inert, it won't do anything.
i dunno, worked on harmonia on my ov. used the stock PowerOn.mp3 to test it. it plays before the harmonia animation comes on.

Plays okay in Winamp. Shows up with the command.

Maybe I should just wipe and reinstall Harmonia. When I first installed it it had residual stuff from BACKside, like the bootanimation and a couple other things. I thought it got straightened out when I updated Harmonia recently, but I dunno. Maybe something got screwed up somewhere....
 
Re: Cannot get bootsound to work on Harmonia

I like to wipe everything before installing roms.
do a fresh install and then put your mp3 in the right place with the right name and it should hopefully work.
 
Re: Cannot get bootsound to work on Harmonia

Thing is, is that I DID wipe everything with this install. I thought I did, anyway. Maybe I fouled up somewhere...I will do a fresh install and get back to you on this.
 

Trending Posts

Forum statistics

Threads
957,049
Messages
6,971,192
Members
3,163,690
Latest member
AS1890