2010-08-09 7 views
1

J'ai essayé d'ajouter du son au démarrage pour lancer l'animation de démarrage sur un droïde équipé de la ROM Froyo 2.2.Ajout de son de démarrage à Froyo 2.2 Droid

C'est ce que j'ai essayé jusqu'ici:

Ajouté à init.rc

###Bootsound - Safe to Delete: Start ### 

service bootsound /system/bin/bootsound 
     user media 
     group audio 
     disabled 
     oneshot 

on property:init.svc.bootanim=running # to correct timing 
     start bootsound 

on property:dev.bootcomplete=1 
     stop bootsound 
### Bootsound - Safe to Delete: End ### 

bootsound créé dans/system/bin

#!/system/bin/sh 
#bootsound - plays a sound at boot 

bprop=/system/build.prop 
grepprop() { x=`grep "^$1=" $bprop | head -n 1`; echo $x | cut -d = -f 2; } 

play=`grepprop "ro.config.play.bootsound"` 

if [ "$play" = "1" ]; then 
     stagefright -a -o /system/media/android_audio.mp3 
fi 
exit 0 

Ajouté à build.prop

### Safe to Delete: Start ### 
ro.config.play.bootsound=1 
### Safe to Delete: End ### 

Et bien sûr ajouté le fichier android_audio.mp3 à/système/media

Pas de chance, quelqu'un peut-il repérer ce que j'ai peut-être manqué?

Merci

+0

Est-ce que vous finissez par voir ce travail d'approche ? –

Répondre

1

Premier traducteur anglais, je me excuse d'utiliser le seul point. Tout en essayant de voir votre message lorsqu'il est appliqué à Android 2.3 GingerBread bootsound ont constaté que le problème se produit vraiment organiquement. Pendant l'amorçage du périphérique, l'erreur suivante a été rencontrée.

bootsound: 12: Erreur de syntaxe: fin du fichier inattendu (attendre "puis")

appareil est utilisé actuellement le LG Optimus Black (Android 2.3 Gingerbread)

Questions connexes