完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
Android7.1][引导修改视频为MP4格式更新
--git a/device/rockchip/common/BoardConfig.m b/device/rockchip/common/BoardConfig.mk index3457a30..448245 100755 --- a/device/rockchip/common/BoardConfig.mk +++ b/device/rockchip/common/BoardConfig.mk @@ -300,7 +300,7 @@ BOARD_HAVE_DONGLE ?= true BOOT_SHUTDOWN_ANIMATION_RINGING ?= true #for boot video enable -BOOT_VIDEO_ENABLE ?= false +BOOT_VIDEO_ENABLE ?= true #for pms 多线程扫描 BOARD_ENABLE_PMS_MULTI_THREAD_SCAN ?= false diff --git a/device/rockchip/common/bootvideo/bootvideo.mk b/device/rockchip/common/bootvideo/bootvideo.mk 索引 9b9c8d3..afac264 100755 --- a/device/rockchip/common/bootvideo/bootvideo.mk +++ b/device/rockchip/common/bootvideo/bootvideo.mk @@ -1,11 +1,11 @@ CUR_PATH := device/rockchip /common/bootvideo -HAVE_BOOT_VIDEO := $(shell test -f $(CUR_PATH)/bootanimation.ts && echo yes) +HAVE_BOOT_VIDEO := $(shell test -f $(CUR_PATH)/bootanimation.mp4 && echo yes) ifeq ( $(HAVE_BOOT_VIDEO), 是的) -PRODUCT_COPY_FILES += $(CUR_PATH)/bootanimation.ts:system/media/bootanimation.ts +PRODUCT_COPY_FILES += $(CUR_PATH)/bootanimation.mp4:system/media/bootanimation.mp4 endif PRODUCT_PROPERTY_OVERRIDES + = - persist.sys.bootvideo.enable=true + ## persist.sys.bootvideo.enable=true persist.sys.bootvideo.showtime=-2 diff --git a/frameworks/base/cmds/bootanimation/BootAnimation.cpp b/frameworks/base/cmds/bootanimation/BootAnimation.cpp 索引 24c8fa4..18220e7 100755 --- a /frameworks/base/cmds/bootanimation/BootAnimation.cpp +++ b/frameworks/base/cmds/bootanimation/BootAnimation.cpp @@ -70,7 +70,7 @@ static const char SYSTEM_SHUTDOWNANIMATION_FILE[] = "/system /media/shutdownanima static const char SYSTEM_ENCRYPTED_BOOTANIMATION_FILE[] = "/system/media/bootanimation-encrypted.zip"; //支持开机视频 static const char DATA_BOOTVIDEO_FILE[] = "/data/local/bootanimation.ts"; -static const char SYSTEM_BOOTVIDEO_FILE[] = "/system/media/bootanimation.ts"; +static const char SYSTEM_BOOTVIDEO_FILE[] = "/system/media/bootanimation.mp4"; 静态 const char SYSTEM_DATA_DIR_PATH[] = "/data/system"; 静态 const char SYSTEM_TIME_DIR_NAME[] = "时间"; 静态 const char SYSTEM_TIME_DIR_PATH[] = "/data/system/time"; @@ -366,7 +366,7 @@ status_t BootAnimation::readyToRun() { } else if (access(DATA_BOOTVIDEO_FILE, R_OK) == 0){ mVideoFile = (char*)DATA_BOOTVIDEO_FILE; } - property_get("persist.sys.bootvideo.enable",decrypt, "false"); + property_get("persist.sys.bootvideo.enable",decrypt, "true"); 字符值[PROPERTY_VALUE_MAX]; property_get("坚持。 if(mVideoFile != NULL && !strcmp(decrypt, "true") &&(atoi(value)!=0)) { @@ -482,7 +482,7 @@ void BootAnimation::checkExit() { property_get( EXIT_PROP_NAME,值,“0”); int exitnow = atoi(值); //添加开机视频功能 -property_get("persist.sys.bootvideo.enable",value, "false"); + property_get("persist.sys.bootvideo.enable",value, "true"); const nsecs_t realBootanimaTime = systemTime()-mStartbootanimaTime; if (exitnow) { //添加开机视频功能 |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
基于米尔瑞芯微RK3576核心板/开发板的人脸疲劳检测应用方案
1009 浏览 0 评论
1194 浏览 1 评论
956 浏览 1 评论
2212 浏览 1 评论
3533 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-28 11:50 , Processed in 0.656603 second(s), Total 72, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (威廉希尔官方网站 图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号