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) {
//添加开机视频功能