Android 开机动画

本文介绍了如何更改Android设备的开机动画。原始的Android开机动画由两张图片组成,但可以使用bootanimation.zip替换。这个zip文件包含两个部分和一个desc.txt,描述了图像的尺寸、帧率和显示方式。创建bootanimation.zip后,通过ADB推送到设备指定路径,重启设备即可看到新的开机动画。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.原始的android的开机动画,貌似是android的字体然后晃动晃动。

其实这不是动画,只是两张图片。一张mask在上面,下面一张图片在不停的动。

他们在如下目录下  

./frameworks/base/core/res/assets/images/android-logo-mask.png

./frameworks/base/core/res/assets/images/android-logo-shine.png。

2.

I suggest that we should use bootanimation.zip instead of default image android-logo-mask.png
in the subsequent product.

I will introduce the bootanimation.zip below, and you can find the two examples in the attachment.
All of you need to do is just to execute a command:
  adb push ./bootanimation.zip /data/local/bootanimation.zip

2.1. location of bootanimation.zip

   1) /data/local/bootanimation.zip, or
   2) /system/media/bootanimation.zip

 While power on, handset will retrieve the bootanimation.zip from the location one by one;
 If it can not get any of the bootanimation.zip,  it will read
   android-logo-mask.png,
   android-logo-shine.png

2.2. content of bootanimation.zip
   It includes two directory and a file.
    -rw-r--r-- 1 xwang act     38 2010-08-10 16:55 desc.txt
  drwxr-xr-x 2 xwang act   2048 2010-08-10 16:57 part0
  drwxr-xr-x 2 xwang act   2048 2010-08-10 16:57 part1

  The png images is placed in the directory "part0", "part1".
 
  format of desc.txt, for example
   480 800 15
    p 1 0 part0
    p 0 0 part1

  480--width of the image, 800--height of the image, 15--frames of second
  p 1, display one time
  p 0, display recycling till handset power on finished

  The images can be larger than the screen, and the handset will scale them automatically

2.3. how to create the bootanimation.zip
   cd ./bootanimation
   zip -r -0 bootanimation.zip part0 part1 desc.txt
   adb push ./bootanimation.zip /data/local/bootanimation.zip

   The -0 parameter is mandotary. It means zip with "store only" mode.

2.4. reboot the handset, you will see the new animation images .

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值