Go Back   Android Forums > Android Phones > Samsung Admire > Admire - All Things Root

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old October 8th, 2012, 01:36 AM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Sep 2012
Posts: 56
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Default kernel help for syncing boot audio needed!

OLD * read a couple posts down for current issues *


I am using an open android rom but Ive changed the boot animation and would like to add a corresponding audio track - then moving on to the same for the shutdown as well.

To start, where is the boot audio file located and what is it called?

Is there a line in build.prop that needs modified as well, and if so, how?

Thanks

godfeast is offline  
Last edited by godfeast; October 9th, 2012 at 10:43 PM.
Reply With Quote
sponsored links
Old October 8th, 2012, 04:35 AM   #2 (permalink)
Senior Member
 
qandres12's Avatar
 
Join Date: Jun 2012
Gender: Male
Posts: 1,352
 
Device(s): Samsung Admire (Retired), LG Motion 4G
Carrier: MetroPCS

Thanks: 14
Thanked 219 Times in 170 Posts
Default

Quote:
Originally Posted by godfeast View Post
I am using an open android rom but Ive changed the boot animation and would like to add a corresponding audio track - then moving on to the same for the shutdown as well.

To start, where is the boot audio file located and what is it called?

Is there a line in build.prop that needs modified as well, and if so, how?

Thanks
make sure the audio file you plan on using is a .wav file. The pathname for the file is system/etc and you have to name the the file poweron.wav
you dont need to change the build prop, dont mess with the build prop unless you know what you are doing my friend. in the system/bin there is a file called samsungboot. open it with a text editor such as notepad++ and to make animation run longer just open samsungloop with text editer and change the 15 to a 30

as for a shutdown sound location, system/media/audio/ui it will be an .ogg file named shutdown.ogg
__________________
http://www.instagc.com/users/join/40865
Dont just click, JOIN!! No need to be active, but it'd be a lot cooler if you did
qandres12 is offline  
Last edited by qandres12; October 8th, 2012 at 04:52 AM.
Reply With Quote
Old October 9th, 2012, 05:16 PM   #3 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Sep 2012
Posts: 56
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Default

Ive gotten pretty far on this, but I cannot get my boot sound to sync up with the bootanimation or play for as long as the animation goes.

Changes so far (resulting in some sound) taken from various guides and such on other samsung models ( basically shooting in the dark and hoping for a score):

1. installed the dr who boot animation going around the web that has tardis falling through the vortex - plays fine.

2. edited build.prop to include a line: ro.config.play.bootsound=1 (by accident I found that having more than one of these lines in build.prop caused sound to not play)

3. added a snippet of the dr who theme song as .wav file to /system/etc and renamed it poweron.wav

(Discovered that lengths of over 15 seconds get cut short - not sure if I canwork around this, but at this point, that seems to mean that if I want audio on my entire bootimage, then bootimage must be =< 15 seconds in length)

4. edited/created /system/etc/init.local.rc to have lines (think I dont have this right or isnt being called correctly):

service bootsound /system/etc/poweron.wav
user media
group audio
disabled
oneshot

on property:init.svc.bootanim=running
start bootsound

on property:dev.bootcomplete=1
stop bootsound


The bootanimation is fine. The sound starts a bit early ( on the model number splash) then plays and stops about 2/3 way through the bootanimation.

Can someone tell me what I am likely doing wrong or how I can sync this together?

I think I am not calling the script in init.local.rc correctly or the script is wrong somehow, as it should make the sound file play only during bootanimation and stop when it stops.

Links to files I am stripping things from (didnt record where on web they came from, so unable to give props to real creators - sorry)

1.Bootanimation file installed with cwm from sdcard http://www.sendspace.com/file/wosw2v

2.Sound file http://www.sendspace.com/file/u909no
godfeast is offline  
Last edited by godfeast; October 9th, 2012 at 10:45 PM.
Reply With Quote
Old October 9th, 2012, 05:40 PM   #4 (permalink)
Senior Member
 
qandres12's Avatar
 
Join Date: Jun 2012
Gender: Male
Posts: 1,352
 
Device(s): Samsung Admire (Retired), LG Motion 4G
Carrier: MetroPCS

Thanks: 14
Thanked 219 Times in 170 Posts
Default

umm i know im not 100% sure on this but i think the boot.img is responsible for syncing the sound and the boot animation. damn i actaully read what syncs these two up the other day but i cant remember where and what file does it. you would need to look that up though
qandres12 is offline  
Reply With Quote
Old October 9th, 2012, 10:34 PM   #5 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Sep 2012
Posts: 56
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Default

Im learning anyways, so I dont suppose editing the kernel is something easily done?

lol



RE: after just a few minutes of reading, it seems that the boot.img accesses init.rc during the boot process - is this the reason why theres a script that on other devices (htc I think) that makes and uses the above init.local.rc? I can tell obviously that this is attempting to control the sound placement and length.

Does this become another init file on the admire kernel by chance, or do I just have the script inside the init.local.rc written wrong for my device?

I could use someone with experience to LMK.

Thanks again


****

rereading some faqs on the droid seems to indicate that I failed in init.local.rc when I changed this value "service bootsound /system/etc/poweron.wav" from service bootsound/system/bin/bootsound.

Theres a script in there that sets a value too and I thought it was just a directory for the wav file ( dont ask why i ignored the service value - ughhh).

Working on this again tomorrow, but still open to help if anyone has gotten this right before!
godfeast is offline  
Last edited by godfeast; October 9th, 2012 at 11:23 PM. Reason: update
Reply With Quote
Old October 10th, 2012, 01:46 PM   #6 (permalink)
Senior Member
 
qandres12's Avatar
 
Join Date: Jun 2012
Gender: Male
Posts: 1,352
 
Device(s): Samsung Admire (Retired), LG Motion 4G
Carrier: MetroPCS

Thanks: 14
Thanked 219 Times in 170 Posts
Default

yeah messing with the boot.img is hard. i think thats why most roms dont have boot sound either, its just a pain trying to sync it up with the animation.
qandres12 is offline  
Reply With Quote
Old October 10th, 2012, 02:52 PM   #7 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Sep 2012
Posts: 56
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by qandres12 View Post
yeah messing with the boot.img is hard. i think thats why most roms dont have boot sound either, its just a pain trying to sync it up with the animation.

Been working my way slowly through this site all day - no success yet, but trying.

HOWTO: Unpack, Edit, and Re-Pack Boot Images - Android Wiki
godfeast is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > Samsung Admire > Admire - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:31 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.