[G2 and Desire Z Q&A, Help & Troubleshooting] Yoshi_523:
I've been messing with creating shutdown and startup animations lately. For me I've found strangely if I create a desc.txt file and have the right contents (I've read guides on what everything in a desc.txt file does) that it will often not work causing the whole boot animation to show nothing. desc.txt can be verry temperamental for me and is often the cause of a boot animation completely not working. I've look at this for your shutdown animation first. I have found on multiple occasions that it's necessary to copy a desc.txt from a working bootanimation and then change the settings in it and I also make sure word wrap is off in note pad as a precaution before I save. Of course you probably know you always need to save your downanimation.zip and bootanimation.zip with the "store" method of zip in your zip program which means it uses no compression. I haven't had problems with shutdown animations not working only noticed however that it doesn't seem to read information from the desc file like a bootanimation. For example if I have smaller images and have the setting of 480 800 the boot animation will be stretched to full screen on my Desire HD. If I have anything smaller than 480 x 800 in the downanimation.zip it won't resize it.

I've heard some of the older phones have problems with using the animations in folders if they are over 3mb in .png. You can have quite a number of folders so long as they are named in the desc.txt. Also the heard that older phones have even more problems with .jpg and even smaller than 3mb in a folder maybe necessary for that. On my Desire HD I've found no such problems. I've pushed a 33mb bootanimation to the /data/local folder and it works but lags. Once I reduced it to 17mb it's fine. The shutdown animation seems maybe more likely to lag so I keep it smaller still.

If anyone knows what to the file name, location and type for the shutdown sound please PM me... I'm desparatly wanting to know to finish off my shutdown and startup animations I've been working on. Thanks

---UPDATE---

Ok so something important I've found. There are settings that control the startup and shutdown animations and sounds, they are located in the "/system/customize/UI" folder on the phone. For my using LeeDrOiD custom rom there are two files located here, "default.xml" and also "LeeDrOiD.xml". You'll need to copy both of those from the phone and open with a text editor like notepad. In command prompt from from the Android SDK platform-tools folder (make sure Android SDK + USB drivers are installed) you can do this:

"adb ls /system/customize/UI"

see which .xml files are listed there as well. In my case there is only default.xml and LeeDrOiD.xml

"adb pull /system/customze/UI/default.xml"

"adb pull /system/customze/UI/LeeDrOiD.xml"

Now with notepad open up default.xml. Make sure word wrap is off. Go down to the bottom and you should see something like this:

<BootConfiguration>

<BootAnimation animation="/data/local/bootanimation.zip" audio="/data/local/android_audio.mp3" />

</BootConfiguration>

<ShutdownConfiguration>

<ShutdownAnimation image_png="/system/customize/resource/downanimation.zip" image="" fps="15" />

</ShutdownConfiguration>

</customization_form>

Okay so you can see here it's obvious you can change the name and path of the startup animation and sound as well and the shutdown animation and the frame rate. I can confirm that now after changing the fps=24 (which is the speed of my shutdown animation) that it now plays faster and at the correct speed.

If there are other .xml files here check to see if they have the same info as default.xml. In my case LeeDrOiD.xml was the same so I edited it with the same settings I changed in default.xml.

When you are done remeber to copy the files back in command prompt for example:

"adb push default.xml /system/customze/UI/default.xml"