Android 9.0 10.0 11.0 boot animation supports mp4 video playback

In the product customization development of 9.0 10.0 11.0, the startup log is played in the startup kenel part, and the
startup animation is played after entering the system after the startup of kenel is completed. Due to development needs, the startup animation is required to be replaced with mp4 video support
1. Prepare the bootvideo.mp4 video file and compile it into the /system/media directory and put the boot animation in a directory
2. Now we need to see how to complete the requirements from the boot BootAnimation.cpp

status_t BootAnimation::readyToRun() {
   
    
    
...
// 判断mp4视频是否存在
const char* bootvideofile = "/system/media/bootvideo.mp4";
if(access(bootvideofile, R_OK) == 0)
mVideo 

Guess you like

Origin blog.csdn.net/baidu_41666295/article/details/124459519