Happening now! New Honor Phone Launch
FORUMS
Remove All Ads from XDA

[Mod][Flash] Universal Bootanimation Flash Update.zip - Sense|AOSP|Sprint|HTC|Verizon

6,282 posts
Thanks Meter: 6,839
 
By tommytomatoe, Recognized Developer on 8th January 2012, 07:15 PM
Post Reply Email Thread
Hello World.

Tommy here. This time I have a nifty little trick for you guys.

This took a little creative thinking but I think I got it pretty good. I was chatting with some Team Ramen Noodles guys and someone asked how an AOSP botanimaiton zip can be flashed on a Sense ROM. This was the lightbulb moment :)

Instructions for dev:
  • Download from link below.
  • Place the file "bootanimation.zip" inside the update.zip. I put a placeholder so you would know where to replace it.
  • Optionally, you can put a sound "android_audio.mp3". If you don't want it, then just leave it out. Not necessary.
  • When you open it up, you will see two place holder files, "bootanimaion.zip__HERE" and "android_audo.mp3__HERE". You can delete them if you want, but they don't do anything. Just for reference.
  • Files must be named "bootanimation.zip" and "android_audio.zip", otherwise won't work.
  • The script "tt_uni_boot" looks for the animation and sound in the rom, and replaces it depending on what it finds.
  • This works on AOSP, Sense, Sprint, HTC, and Verizion :)
The update.zip below is what you should use as your base if you want to make your bootanimation universal for all roms.

Also, if anyone wants to flash it as is, it contains this lovely animation:


Original Thread Here

Universal Bootanimation update.zip v0.0.1 - January 08, 2012

Enjoy!

Please report feedback. I and dean_fx tested it before I posted, but if you want different feature or something like that let me know.

Tommy

edit1.

And in case anyone wants to adapt my script, I am more than happy to share. Just give a little credit :)

Sharing means caring. And collaborative efforts yield better results.

Code:
#!/system/bin/bash

#tommytomatoe
#universal animation flasher 

# creating logfile "lockscreen" on sdcard
log=sdcard/bootanimation.log
touch $log

# mounting system as R/W
busybox mount -o remount,rw /system
echo "/system mounted as R/W" > $log
echo "" >> $log

# doing some checks

# bootanimation locatioon

if busybox [ -e /system/customize/resource/bootanimation.zip ]; then
	BOOT_ANI=/system/customize/resource/bootanimation.zip
elif busybox [ -e /data/local/bootanimation.zip ]; then
	BOOT_ANI=/data/local/bootanimation.zip
elif busybox [ -e /system/media/bootanimation.zip ]; then
	BOOT_ANI=/system/media/bootanimation.zip
elif busybox [ -e /system/customize/resource/spc_bootanimation.zip ]; then
	BOOT_ANI=/system/customize/resource/spc_bootanimation.zip
elif busybox [ -e /data/local/spc_bootanimation.zip ]; then
	BOOT_ANI=/data/local/spc_bootanimation.zip
elif busybox [ -e /system/media/spc_bootanimation.zip ]; then
	BOOT_ANI=/system/media/spc_bootanimation.zip
elif busybox [ -e /system/customize/resource/VZW_bootanimation.zip ]; then
	BOOT_ANI=/system/customize/resource/VZW_bootanimation.zip
elif busybox [ -e /data/local/VZW_bootanimation.zip ]; then
	BOOT_ANI=/data/local/VZW_bootanimation.zip
elif busybox [ -e /system/media/VZW_bootanimation.zip ]; then
	BOOT_ANI=/system/media/VZW_bootanimation.zip
elif busybox [ -e /system/customize/resource/hTC_bootanimation.zip ]; then
	BOOT_ANI=/system/customize/resource/hTC_bootanimation.zip
elif busybox [ -e /data/local/hTC_bootanimation.zip ]; then
	BOOT_ANI=/data/local/hTC_bootanimation.zip
elif busybox [ -e /system/media/hTC_bootanimation.zip ]; then
	BOOT_ANI=/system/media/hTC_bootanimation.zip
else
	echo "Bootanimation does not exist" >> $log
	exit 1
fi	

# bootanimation sound location

if busybox [ -e /system/customize/resource/android_media.mp3 ]; then
	BOOT_SOUND=/system/customize/resource/android_media.mp3
elif busybox [ -e /data/local/android_media.mp3 ]; then
	BOOT_SOUND=/data/local/android_media.mp3
elif busybox [ -e /system/media/android_media.mp3 ]; then
	BOOT_SOUND=/system/media/android_media.mp3
elif busybox [ -e /system/customize/resource/android_audio.mp3 ]; then
	BOOT_SOUND=/system/customize/resource/android_audio.mp3
elif busybox [ -e /data/local/android_audio.mp3 ]; then
	BOOT_SOUND=/data/local/android_audio.mp3
elif busybox [ -e /system/media/android_audio.mp3 ]; then
	BOOT_SOUND=/system/media/android_audio.mp3
elif busybox [ -e /system/customize/resource/SPC_animation_final.mp3 ]; then
	BOOT_SOUND=/system/customize/resource/SPC_animation_final.mp3
elif busybox [ -e /data/local/SPC_animation_final.mp3 ]; then
	BOOT_SOUND=/data/local/SPC_animation_final.mp3
elif busybox [ -e /system/media/SPC_animation_final.mp3 ]; then
	BOOT_SOUND=/system/media/SPC_animation_final.mp3
else
	echo "Bootanimation sound does not exist" >> $log

fi	

echo "$BOOT_ANI" >> $log
echo "$BOOT_SOUND" >> $log
echo "" >> $log

# moving animation
busybox mv -f /data/local/tmp/bootanimation.zip $BOOT_ANI

if busybox [ -e /data/local/tmp/bootanimation.zip ] ; then
	buxybox rm -f /data/local/tmp/bootanimation.zip
fi

if busybox [ -e $BOOT_ANI ] ; then
	echo "SUCCESS! Bootanimation moved to $BOOT_ANI" >> $log
else
	echo "FAILURE! Bootanimation not moved to $BOOT_ANI" >> $log
fi

echo "" >> $log

# moving busybox mv -f /data/local/tmp/bootanimation.zip $BOOT_ANI
busybox mv -f /data/local/tmp/android_audio.mp3 $BOOT_SOUND

if busybox [ -e /data/local/tmp/android_audio.mp3 ] ; then
	buxybox rm -f /data/local/tmp/android_audio.mp3
fi

if busybox [ -e $BOOT_SOUND ] ; then
	echo "SUCCESS! Bootanimation sound moved to $BOOT_SOUND" >> $log
else
	echo "FAILURE! Bootanimation sound moved to $BOOT_SOUND" >> $log
fi

echo "" >> #log
echo "Universal Bootanimation Flasher Commencing" >> $log
The Following 27 Users Say Thank You to tommytomatoe For This Useful Post: [ View ]
 
 
8th January 2012, 07:39 PM |#2  
Tekn010933's Avatar
Senior Member
Flag Strong Beach
Thanks Meter: 114
 
Donate to Me
More
Nice one Tommy.

Edit. got the error tried couple ways going into, will check back soon.

Edit2. smooth sailing...
8th January 2012, 07:49 PM |#3  
tommytomatoe's Avatar
OP Recognized Developer
Flag Knoxville USA
Thanks Meter: 6,839
 
Donate to Me
More
Quote:
Originally Posted by Tekn010933

Nice one Tommy.

Edit. got the error tried couple ways going into, will check back soon.

Fixed!

I always type https instead of http out of habbit :)
The Following User Says Thank You to tommytomatoe For This Useful Post: [ View ]
9th January 2012, 01:56 AM |#4  
Mazda's Avatar
Retired Recognized Developer
Flag Milton, Florida
Thanks Meter: 12,611
 
More
Thanks Tommy, I've downloaded it and stored it in my vault..haha...NEVER know when this might come in handy!!
The Following User Says Thank You to Mazda For This Useful Post: [ View ] Gift Mazda Ad-Free
9th January 2012, 04:11 AM |#5  
Member
Flag Crestview, FL
Thanks Meter: 11
 
Donate to Me
More
Thanks for sharing with us!
The Following User Says Thank You to KIOWA69 For This Useful Post: [ View ] Gift KIOWA69 Ad-Free
10th January 2012, 03:29 AM |#6  
tommytomatoe's Avatar
OP Recognized Developer
Flag Knoxville USA
Thanks Meter: 6,839
 
Donate to Me
More
Quote:
Originally Posted by KIOWA69

Thanks for sharing with us!

My pleasure! It was a fun one to do.

Sent from my PC36100 using Tapatalk
The Following User Says Thank You to tommytomatoe For This Useful Post: [ View ]
10th January 2012, 04:14 AM |#7  
davidstjohn1's Avatar
Senior Member
Thanks Meter: 156
 
More
Quote:
Originally Posted by tommytomatoe

Hello World.

Tommy here. This time I have a nifty little trick for you guys.

This took a little creative thinking but I think I got it pretty good. I was chatting with some Team Ramen Noodles guys and someone asked how an AOSP botanimaiton zip can be flashed on a Sense ROM. This was the lightbulb moment :)

Instructions for dev:

  • Download from link below.
  • Place the file "bootanimation.zip" inside the update.zip. I put a placeholder so you would know where to replace it.
  • Optionally, you can put a sound "android_audio.mp3". If you don't want it, then just leave it out. Not necessary.
  • When you open it up, you will see two place holder files, "bootanimaion.zip__HERE" and "android_audo.mp3__HERE". You can delete them if you want, but they don't do anything. Just for reference.
  • Files must be named "bootanimation.zip" and "android_audio.zip", otherwise won't work.
  • The script "tt_uni_boot" looks for the animation and sound in the rom, and replaces it depending on what it finds.
  • This works on AOSP, Sense, Sprint, HTC, and Verizion :)
The update.zip below is what you should use as your base if you want to make your bootanimation universal for all roms.

Also, if anyone wants to flash it as is, it contains this lovely animation:


Original Thread Here

Universal Bootanimation update.zip v0.0.1 - January 08, 2012

Enjoy!

Please report feedback. I and dean_fx tested it before I posted, but if you want different feature or something like that let me know.

Tommy

edit1.

And in case anyone wants to adapt my script, I am more than happy to share. Just give a little credit :)

Sharing means caring. And collaborative efforts yield better results.

Code:
#!/system/bin/bash

#tommytomatoe
#universal animation flasher 

# creating logfile "lockscreen" on sdcard
log=sdcard/bootanimation.log
touch $log

# mounting system as R/W
busybox mount -o remount,rw /system
echo "/system mounted as R/W" > $log
echo "" >> $log

# doing some checks

# bootanimation locatioon

if busybox [ -e /system/customize/resource/bootanimation.zip ]; then
	BOOT_ANI=/system/customize/resource/bootanimation.zip
elif busybox [ -e /data/local/bootanimation.zip ]; then
	BOOT_ANI=/data/local/bootanimation.zip
elif busybox [ -e /system/media/bootanimation.zip ]; then
	BOOT_ANI=/system/media/bootanimation.zip
elif busybox [ -e /system/customize/resource/spc_bootanimation.zip ]; then
	BOOT_ANI=/system/customize/resource/spc_bootanimation.zip
elif busybox [ -e /data/local/spc_bootanimation.zip ]; then
	BOOT_ANI=/data/local/spc_bootanimation.zip
elif busybox [ -e /system/media/spc_bootanimation.zip ]; then
	BOOT_ANI=/system/media/spc_bootanimation.zip
elif busybox [ -e /system/customize/resource/VZW_bootanimation.zip ]; then
	BOOT_ANI=/system/customize/resource/VZW_bootanimation.zip
elif busybox [ -e /data/local/VZW_bootanimation.zip ]; then
	BOOT_ANI=/data/local/VZW_bootanimation.zip
elif busybox [ -e /system/media/VZW_bootanimation.zip ]; then
	BOOT_ANI=/system/media/VZW_bootanimation.zip
elif busybox [ -e /system/customize/resource/hTC_bootanimation.zip ]; then
	BOOT_ANI=/system/customize/resource/hTC_bootanimation.zip
elif busybox [ -e /data/local/hTC_bootanimation.zip ]; then
	BOOT_ANI=/data/local/hTC_bootanimation.zip
elif busybox [ -e /system/media/hTC_bootanimation.zip ]; then
	BOOT_ANI=/system/media/hTC_bootanimation.zip
else
	echo "Bootanimation does not exist" >> $log
	exit 1
fi	

# bootanimation sound location

if busybox [ -e /system/customize/resource/android_media.mp3 ]; then
	BOOT_SOUND=/system/customize/resource/android_media.mp3
elif busybox [ -e /data/local/android_media.mp3 ]; then
	BOOT_SOUND=/data/local/android_media.mp3
elif busybox [ -e /system/media/android_media.mp3 ]; then
	BOOT_SOUND=/system/media/android_media.mp3
elif busybox [ -e /system/customize/resource/android_audio.mp3 ]; then
	BOOT_SOUND=/system/customize/resource/android_audio.mp3
elif busybox [ -e /data/local/android_audio.mp3 ]; then
	BOOT_SOUND=/data/local/android_audio.mp3
elif busybox [ -e /system/media/android_audio.mp3 ]; then
	BOOT_SOUND=/system/media/android_audio.mp3
elif busybox [ -e /system/customize/resource/SPC_animation_final.mp3 ]; then
	BOOT_SOUND=/system/customize/resource/SPC_animation_final.mp3
elif busybox [ -e /data/local/SPC_animation_final.mp3 ]; then
	BOOT_SOUND=/data/local/SPC_animation_final.mp3
elif busybox [ -e /system/media/SPC_animation_final.mp3 ]; then
	BOOT_SOUND=/system/media/SPC_animation_final.mp3
else
	echo "Bootanimation sound does not exist" >> $log

fi	

echo "$BOOT_ANI" >> $log
echo "$BOOT_SOUND" >> $log
echo "" >> $log

# moving animation
busybox mv -f /data/local/tmp/bootanimation.zip $BOOT_ANI

if busybox [ -e /data/local/tmp/bootanimation.zip ] ; then
	buxybox rm -f /data/local/tmp/bootanimation.zip
fi

if busybox [ -e $BOOT_ANI ] ; then
	echo "SUCCESS! Bootanimation moved to $BOOT_ANI" >> $log
else
	echo "FAILURE! Bootanimation not moved to $BOOT_ANI" >> $log
fi

echo "" >> $log

# moving busybox mv -f /data/local/tmp/bootanimation.zip $BOOT_ANI
busybox mv -f /data/local/tmp/android_audio.mp3 $BOOT_SOUND

if busybox [ -e /data/local/tmp/android_audio.mp3 ] ; then
	buxybox rm -f /data/local/tmp/android_audio.mp3
fi

if busybox [ -e $BOOT_SOUND ] ; then
	echo "SUCCESS! Bootanimation sound moved to $BOOT_SOUND" >> $log
else
	echo "FAILURE! Bootanimation sound moved to $BOOT_SOUND" >> $log
fi

echo "" >> #log
echo "Universal Bootanimation Flasher Commencing" >> $log

I do something a little different, I take the file.from aosp, its named bootanimation.zip, rename it to spc_bootanimation.zip and place it in system/cutomize/resource. Using root explorer. I reboot, and.it works. I use the ics animation on my on my swag rom.

Sent from my PC36100 using xda premium
10th January 2012, 06:16 AM |#8  
tommytomatoe's Avatar
OP Recognized Developer
Flag Knoxville USA
Thanks Meter: 6,839
 
Donate to Me
More
Quote:
Originally Posted by davidstjohn1

I do something a little different, I take the file.from aosp, its named bootanimation.zip, rename it to spc_bootanimation.zip and place it in system/cutomize/resource. Using root explorer. I reboot, and.it works. I use the ics animation on my on my swag rom.

Sent from my PC36100 using xda premium

Yep. That is the tradition method. But now the maker of the bootanimation just needs to post one zip that works on all roms. :) How handy :)

Sent from my PC36100 using Tapatalk
The Following 3 Users Say Thank You to tommytomatoe For This Useful Post: [ View ]
10th January 2012, 07:47 AM |#9  
jessesse's Avatar
Senior Member
Flag KC
Thanks Meter: 274
 
More
If I ever post another boot animation, you better believe I'm using this! Would save a ton of random "where does this go?" questions..

Sent from my PC36100 using xda premium
10th January 2012, 11:39 AM |#10  
KommodoreHeinz's Avatar
Senior Member
Thanks Meter: 276
 
Donate to Me
More
This looks familiar. Hmmmmm. Lol.

Great work Tommy!

Sent from my RamenizedEvo on Cricket.
11th January 2012, 07:07 PM |#11  
Senior Member
Flag Glenolden, PA
Thanks Meter: 68
 
More
Quote:
Originally Posted by tommytomatoe

Yep. That is the tradition method. But now the maker of the bootanimation just needs to post one zip that works on all roms. :) How handy :)

Sent from my PC36100 using Tapatalk

Tommy,

You are thanked x2.
You're as busy as a cat covering up sh*t.

I've been trying to quantify your knowledge and sum it up in a few words. I finally figured it out. You, my friend, are an "idea man". Your knowledge keeps expanding because of the unique ideas you formulate when you are challenged with each new endeavor. Yet, it goes beyond just that. You have the generosity to share your ideas and solutions with the community, which encourages others to participate. The kindness and respect that you show to all members of this community is refreshing and much appreciated. Thank you for all your contributions.

Mark
The Following User Says Thank You to pipefitter For This Useful Post: [ View ] Gift pipefitter Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes