[Vibrant Android Development] Tydiz:
Hey guys,

Ran into this today as I was browsing through the Vibrant dump and thought I would share it :)

What's needed:

A T-Mobile Vibrant

SU access(root)

busybox

It is possible that this might work for other Galaxy S phones, but as of yet I am unaware of whether or not they all have a shutdown animation.

Basically, this is a quick HOW-TO on removing or changing the quick little animation that plays when you turn off your phone. I'm pretty sure most people find it annoying and would like to turn it off, while others may want to do something interesting with it so I'll break it up into 2 tutorials(though they are fairly similar).

NOTE: This only works for the shutdown sequence. The boot sequence is stored in proprietary files called .qmg and doesn't apply to this simple hack.

Quick Structure Overview: (Just jibber jabber...read if you want)

Alright, so basically the animation is simply a bunch of PNG's that represent frames in the movie/animation. They are found in the folder '/system/media/video/shutdown' and are named under a framed convention "shutdown_x.png" where 'x' represents the frame number in the animation. There are 14 frames in the initial batch, and from what I've tested(which isn't a ton) that's the max frames, but you are more than welcome to try; it won't hurt anything if you do.

Also, based off my tests, the system will do any subset range as long as it starts at 1(so like 1-5 or 1-12 instead of 1-14). It also may be important to note that I have not tried any other files besides .png. It may be a good experiment to try other files. Post your results here; I'm sure someone will find them useful.

FOR BOTH:

If you want to back up the animation(terminal or adb shell):

//Name the directory whatever you want...this is just an example
$ mkdir /sdcard/animationbackup
$ busybox cp /system/media/video/shutdown /sdcard/animationbackup

REMOVE:

Simply remove the shutdown folder that holds all the frames.

Open terminal(or adb shell):

$ su
$ mount -o rw,remount -t rfs /dev/block/stl9 /system
$ rm -R /system/media/video/shutdown
$ mount -o ro,remount -t rfs /dev/block/stl9 /system

You should now be able to shut off your phone and enjoy the nice shutdown progress spindle instead of the animation.

CHANGE:

Load up your list of PNG's that you want for your animation and throw them in a folder called "shutdown" (no quotes). Be sure they are named in this format:

shutdown_x.png
//where x is the frame of this image

Throw it onto your 15GB internal memory(Not the 2GB sdcard but the big one that the system references as /sdcard)

Then run this command(terminal or adb shell):

$ su
$ mount -o rw,remount -t rfs /dev/block/stl9 /system
$ rm -R /system/media/video/shutdown
$ busybox cp /sdcard/shutdown /system/media/video/
$ mount -o ro,remount -t rfs /dev/block/stl9 /system

Lastly, there is some programs that will take a video file and convert it into frames(decompile them, in other words). I found Blaze Media Pro, yesterday and worked fine for this if you are interested.

UPDATE:

Batistian has figured out how to remove the 14 frame limit that seemed to be a requirement for the shutdown sequence. It requires a config file inside the shutdown folder. Attached I have the i9000's shutdown folder with the config file inside it. Also attached is the config file that you can just throw into your shutdown folder if you want it to progress more frames.

Also, bubonik has posted the directory locations of the audio sounds. You should be able to change these if you want, if you hate the T-Mobile branded sounds.

Last attachment is the shutdown and power on sounds from the i9000. You can use these to replace those sounds using similar tactics that was mentioned in the tutorial.

UPDATE 2:

Replace your Bootup with the i9000 boot up

1) Download the attached Bootup.zip and unzip it. Contained is the bootsamsung.qmg.

2) Copy to your SD Card(the one that shows up as 15 gb)

3) Run this command in adb shell, terminal, or use Root Explorer:

$ su
$ mount -o rw,remount -t rfs /dev/block/stl9 /system
$ rm -R /system/media/bootsamsung.qmg
$ busybox cp /sdcard/bootsamsung.qmg /system/media/
$ mount -o ro,remount -t rfs /dev/block/stl9 /system

This should replace your boot up sequence

Thanks to Batistian, bubonik, jroid, and everyone else who worked on advancing the progress of this tutorial. I know a lot of you were digging through both the Vibrant dump and the i9000 dump, all for good reason :)

Lastly, I need to point out that I'm not responsible for any destructo-proceedings that may develop after following this tutorial. Know what you are getting into before doing anything that involves your system files.