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
Est-ce que vous finissez par voir ce travail d'approche ? –