Dual-screen different display boot animation

Dual-screen different display boot animation

1. Overall design idea

Based on the original boot animation process, after the back screen boot animation is started in the bootanim service, when the main screen boot animation thread bootanimation is started, a newly added back screen boot animation thread BackBootAnimation is started at the same time, and then in the back screen boot animation thread BackBootAnimation, according to the main screen The boot animation control process is the same, in order to load the back screen boot animation resources from the preload partition, parse the animation file resources, initialize EGL, create a Surface for back screen drawing, create an EGL Surface through the Surface, create an EGLContext context, and call eglMakeCurrent binding eglSurface, context, display, and finally call the eglSwapBuffer function for drawing.

The end process of the back screen boot animation is the same as the main screen. It keeps checking whether the service.bootanim.exit property is written with a value of 1. When the value is 1, the thread stops

2. Modify the code in detail

  • diff --git a/cmds/bootanimation/BootAnimation.h b/cmds

Guess you like

Origin blog.csdn.net/Johnny2004/article/details/130088281