Posts from August 2009

Change the animated boot screen on HTC Magic (Google builds)

NOTICE, some autosigners and sign programs do not work on Vista and Windows 7, either use Windows XP, MacOS or Linux for signing.

The other thread about changing the animated boot screen on HTC Magic, seems to only work on HTC builds, which implement the ability to have animated boot screens through a simple gif image. This does unfortunately not apply to the Google build ROMs, therefore we need to avail ourselfs of another method of changing the boot screen, which also is more complicated.

First we need to pull the framework-res.apk which resides in /system/framework/ from a update.zip for a full ROM.

Next unpack the file somewhere, inside the folder assets/images there should be two or more png images. They are called:

android-logo-mask.png

android-logo-mask

android-logo-shine.png

android-logo-shine

And can look like the images above. Those are the two files we need to edit or remake to our likings.

As you maybe can se the letters and the android in the first image are transparent, which means the shine will be shown on the phone it self as background image. This is as far as I know the only possibility of having a animated boot screen on the Google build ROMs, which is not as fancy as the animated gif images that you can make for the HTC build ROMs.

For this guide I will use the same splash image I am using for the first non animated splash screen.

As you can see it does not contain any transparent areas, I am going to turn the outline of the android and the lettering transparent and change the color of the shine. You can do that in any photo editing program such as GIMP, photoshop and Paint.net, and I will not guide you through that. The result is as follows.

transparentandroid

android-logo-shine

Now that I have to two images, I overrite the images in framework-res/assets/images, zip the file and rename it back to framework-res.apk and put it back in the update.zip, then sign it according to android developers. Now flash it to your phone and you should be seeing it next time you boot your phone.

Fixing accelerometer on HTC Magic

From time to time when you change ROM’s on your HTC Magic the accelerometer goes crazy and won’t read any values, which means no rotation of the screen and the compas will not respond either. This is fixed by deleting the file that contains previous data about the positioning. The reason for this is when you sometimes forget to wipe before applying new ROM’s old data is stored and messes up the accelerometer.

Reboot your phone in Recovery mode (home+end/power)

adb shell
mount -o rw /dev/block/mtdblock5 /data
rm /data/misc/akmd* /data/misc/rild*

Now reboot the phone and everything should be working again.