当前位置:网站首页>在mt6735中添加新的开机logo与开\关机动画
在mt6735中添加新的开机logo与开\关机动画
2022-07-28 10:11:00 【码农xo】
一、开机logo
开机logo分为两部分,一个是:《uboot logo》,另一个是:《kernel logo》,Android开机会先显示《uboot logo》图片,然后才显示《kernel logo》图片。有些Android手机会把这两张图片做成一样的,因此,当我们开机时就没有感觉到变化。
下面我要将原来的《uboot logo》、《kernel logo》替换掉:
输入命令:
cd ~/mt6735/bootable/bootloader/lk/dev/logo/wvga
进入存放开机logo目录下,将wvga_uboot.bmp wvga_kernel.bmp 这两张图片替换掉,然后将mt6735源码编译并下载到AP7200手机开发板上,开机,查看效果。
uboot logo
kernel logo
二、开机动画
(1)制作图片
制作一组图片平时我们看到的动画以及其他视频,其实是由一张张图片循环播放而来的,每播放一张图片叫“1帧”,一般用1秒播放多少张图片来计算帧数,比如1秒钟播放12张图片,就是12帧。因此显示开机动画,那就要做一组不一样的图片不断播放。注意:制作的图组比如part0,至少一张,无上限,但是图片太多,开机会很慢,一组图片要是帧数的整数倍,比如:12帧,一组可以12、24、36张图片。
desc.txt里面的内容:
480 300 12
c 1 0 part0
c 1 0 part1
c 0 0 part2
480 300 12 分辨率为480*300 帧数是 12
c 1 0 part0 c: 显示模式 1:不无限循环part0:显示第0部分的图片
c 1 0 part1 c: 显示模式 1:不无限循环part1:显示第1部分的图片
c 0 0 part2 c: 显示模式0:无限循环part0:显示第2部分的图片
制作好图片之后要将图片打包压缩,压缩时要将part0 part1 part2… desc.txt 全选中,压缩方式选择为存储模式:
在Linux下则使用以下命令将它们一起打包:
zip -Z store raindi-bootanimation.zip part0/.png part1/.png part2/*.png desc.txt
(2)将原来的开机动画替换掉
在终端输入指令,查看复制过来的文件 raindi-bootanimation.zip
打开AllAudio文件
AllAudio文件内容:
(3)编译
source ./build/envsetup.sh
lunch 28
make 2>&1 | tee build.log
(4)下载到AP7350手机开发板并开机查看效果
开机动画效果:
三、关机动画
关机动画与开机动画的添加是类似的,简述一下步骤:
- 制作一组连续图片,用于不断播放,形成动画效果。
- 将图片打包,注意压缩类型选择为“存储”。
- 将打包好的图片拷贝到以下目录:
cp /xxx/raindi-shutanimation.zip ~/mt6735/frameworks/base/data/sounds
4. 修改AllAudio.mk里的内容,使编译之后能够生成开机动画:
vim ~/mt6735/frameworks/base/data/sounds/AllAudio.mk
注意:关机动画生成的是:system/media/shutanimation.zip 开机动画则是:system/media/bootanimation.zip,修改时注意两者的区别
cd ~/mt6735/out/target/product/p6s_65u_l1/system/media
————————————————
版权声明:本文为CSDN博主「JefferySimon」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/m0_37526672/article/details/80285882
边栏推荐
- 巧用ngx_lua做流量分组
- a different object with the same identifier value was already associated with the session
- Deadlock algorithm: banker algorithm and security algorithm
- uni-app项目目录、文件作用介绍 及 开发规范
- uni-app进阶之生命周期
- 阿里云镜像地址
- Vulnerability analysis hevd-0x8.integeroverflow[win7x86]
- uni-app进阶之创建组件/原生渲染
- 集群为什么需要root权限
- [cloud co creation] enterprise digital transformation, Huawei cloud consulting is with you
猜你喜欢

第一篇:UniAPP的小程序跨端开发-----创建uniapp项目

Multithreading and high concurrency (III) -- source code analysis AQS principle

What kind of knowledge payment system functions are more conducive to the development of the platform and lecturers?

7、二分法——寻找一组重复或者有序但是旋转的数组

MySQL架构原理

Skillfully use NGX_ Lua makes traffic grouping

Choosing a supplier service system is the first step for large health industry enterprises to move towards digital transformation

6、双指针——递增数组两数之和与目标数相等

API 网关 APISIX 在Google Cloud T2A 和 T2D 的性能测试

C语言 二级指针详解及示例代码
随机推荐
Leetcode -- minimum number of rotation array
Lucene 查询语法备忘
7. Dichotomy -- find a set of repeated or ordered but rotating arrays
Consul
11、链表反转
基于docker安装MySQL
Get to know SuperMap idesktop for the first time
Why should I take the first-class constructor examination? How high is the gold content of the first-class Constructor Certificate?
Consul
QT | some summaries of signals and slots
Prometheus operation and maintenance tool promtool (IV) TSDB function
Small knowledge in Oracle
2021-10-13arx
UEditor V1.4.3控制文件压缩
14. Double pointer - the container that holds the most water
️雄关漫道真如铁,而今迈步从头越️
Multithreading and high concurrency (III) -- source code analysis AQS principle
Status Notice ¶
Go json.Decoder Considered Harmful
中兴通讯:5nm 5G基站芯片正在技术导入!