How to change boot logo animation orientation?

3,516 views
Skip to first unread message

Mohan

unread,
Nov 24, 2011, 8:41:51 AM11/24/11
to android-platform
Hi,

Is it possible to change the default android boot logo animation
orientation angle? .Currently in tablets , its showing in landscape
mode by default. Is there any way to show the boot logo animation in
portrait mode?
Because at that time windowmanager not in enable state during booting
sequence. Have searched in forums & codebase, not getting enough info.

Any help is highly appreciated.

Thanks in advance
Mohan

Chinmay V S

unread,
Nov 24, 2011, 9:06:07 AM11/24/11
to android-...@googlegroups.com
AFAIK, the android "bootanimantion" is a series of images displayed in quick succession.

So to rotate the animation, you might want to extract the images from your bootanimation.zip and replace them with modified versions of the images.

As the display aspect-ratios are usually NOT 1:1, hence rotating the images by 180 degrees is a trivial thing. Open all the images and rotate by 180 and save.

Rotation by 90/270 degrees is slightly harder as it will require you to rotate the image content and then resize them back to the original resolution.

1. (240x320image)
        |
        |  rotate by 90deg
       V
2. (320x240image with rotated content)
        |
        |  resize/crop
       V
3. (240x320image with rotated content)

Replace the bootanimation.zip with these new images obtained in step3 and your device should now show a orientation-switched version of the boot animation

GoodLUCK
-CVS

Mohan

unread,
Nov 24, 2011, 10:57:33 PM11/24/11
to android-platform
Hi Chinmay,

Thanks a lot for your response !!

This is one way to change the orientation by rotating the picture
content.

But is there any way to set the orientation angle to 90 degree or
whatever, so that the device will automatically play its boot logo
animation based on that orientation value.

searched in the bootanimation service, but no info about setting
orientation angle.

Thanks
Mohan

mastan rao visarapu

unread,
Apr 2, 2014, 2:12:57 AM4/2/14
to android-...@googlegroups.com

Hi Mohan,

I am also looking for the same.Did you find any solution for this.I am searching about this from a very long time.Please help me.

shridutt kothari

unread,
Apr 7, 2014, 9:44:41 AM4/7/14
to android-...@googlegroups.com
Hi Mohan,

as you know one way is to rotate the content of image before creating bootnimation, lets talk about the another way, Which would be to rotate the bootanimation at the time of run, And for that you need to make changes in the source code which plays the bootanimation.zip

precisely you can write a method to rotate your bootanimation in BootAnimation.cpp (http://androidxref.com/4.2.2_r1/xref/frameworks/base/cmds/bootanimation/BootAnimation.cpp)

I hope you have pointers to solve your need.

Thanks,
Shridutt Kothari,
Impetus Infotech India Ltd.

On Friday, November 25, 2011 9:27:33 AM UTC+5:30, Mohan wrote:
Reply all
Reply to author
Forward
0 new messages