android - 如何在bootanimation中添加声音,我想在android启动时播放一些声音效果
问题描述
我在自定义 aosp 构建中创建了带有 PNG 文件的自定义 bootanimation.zip 文件,工作正常。所以现在我想为设备启动时间添加开机声音。这意味着当开机动画同时出现在屏幕上时需要播放开机声音。我已将 poweron.ogg 文件路径添加为 /system/media/audio/ui/poweron.ogg。bootanimation.zip 我也已在 /system/media/ 位置替换。
解决方案
系统从动画压缩文件 (bootanimation.zip) 中选择音频文件。
这是对 bootanimation 格式有完整解释的链接:
推荐阅读
- javascript - 使用 Requests 和 Bs4(不是 Selenium)抓取 javascript 动态网站
- java - InOrder 在通用二叉树 Java 中遍历
- amazon-web-services - 如何使用安装了 Session Manager 的 CloudFormation 创建 EC2 实例?
- ruby - Ruby hash.each 行为
- python - 用 replace_regex 替换 pyspark 中的括号
- postgresql - 使用灵活的下限为 DataRange 创建检查约束。Postgres
- svelte - 如何从组件中复制或克隆元素
- javascript - 如何在axios中制作动态baseURL
- python - 要删除的熊猫数据透视表列名称和值列名称
- flutter - 使用 Firebase 实时数据库 Flutter 进行实时更新