概述
Android7.1[RK3288]开机视频修改为MP4格式补丁
diff --git a/device/rockchip/common/BoardConfig.mk b/device/rockchip/common/BoardConfig.mk
index 3457a30..4482e45 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 multi thead scan
BOARD_ENABLE_PMS_MULTI_THREAD_SCAN ?= false
diff --git a/device/rockchip/common/bootvideo/bootvideo.mk b/device/rockchip/common/bootvideo/bootvideo.mk
index 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), yes)
-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
index 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";
//support boot video
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";
static const char SYSTEM_DATA_DIR_PATH[] = "/data/system";
static const char SYSTEM_TIME_DIR_NAME[] = "time";
static 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");
char value[PROPERTY_VALUE_MAX];
property_get("persist.sys.bootvideo.showtime", value, "-1");
if(mVideoFile != NULL && !strcmp(decrypt, "true") &&(atoi(value)!=0)) {
@@ -482,7 +482,7 @@ void BootAnimation::checkExit() {
property_get(EXIT_PROP_NAME, value, "0");
int exitnow = atoi(value);
//add for boot video function
-
property_get("persist.sys.bootvideo.enable",value, "false");
+
property_get("persist.sys.bootvideo.enable",value, "true");
const nsecs_t realBootanimaTime = systemTime()-mStartbootanimaTime;
if (exitnow) {
//add for boot video function
最后
以上就是谦让刺猬为你收集整理的Android7.1[RK3288]开机视频修改为MP4格式补丁的全部内容,希望文章能够帮你解决Android7.1[RK3288]开机视频修改为MP4格式补丁所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复