Kernel logo flashes black screen between boot animations (Android 5.X)

Source: Internet
Author: User
Tags clear screen

Before bootanimation starts drawing, it will do a clear screen action first, avoiding the previous diagram interfering with the display of the bootanimation.

Check Main_log first confirm which function to play the boot animation, and delete the corresponding code for the action of clear screen in the corresponding function.
/frameworks/base/cmds/bootanimation/bootanimation.cpp
450bool bootanimation::android ()
451{
452 inittexture (&mandroid[0], massets, "images/android-logo-mask.png");
453 Inittexture (&mandroid[1], massets, "images/android-logo-shine.png");
454

/*-Delete clear screen corresponding code-*/
455//Clear screen
456 Glshademodel (Gl_flat);
457 gldisable (Gl_dither);
458 gldisable (gl_scissor_test);
459 Glclearcolor (0,0,0,1);
460 Glclear (Gl_color_buffer_bit);
461 Eglswapbuffers (Mdisplay, msurface);
/*-Delete clear screen corresponding code-*/


462
463 glenable (gl_texture_2d);
464 GLTEXENVX (gl_texture_env, Gl_texture_env_mode, gl_replace);
465
......


594bool Bootanimation::movie ()
......
/*-Delete clear screen corresponding code-*/
/Clear Screen
701 Glshademodel (Gl_flat);
702 gldisable (Gl_dither);
703 gldisable (gl_scissor_test);
704 gldisable (Gl_blend);
705 Glclearcolor (0,0,0,1);
706 Glclear (Gl_color_buffer_bit);
707
708 Eglswapbuffers (Mdisplay, msurface);
/*-Delete clear screen corresponding code-*/
709
......



1128bool Bootanimation::mtkmovie ()
......
/*-Delete clear screen corresponding code-*/
1222//Clear screen
1223 gldisable (Gl_dither);
1224 gldisable (gl_scissor_test);
1225 gldisable (gl_blend);
1226 Glclear (gl_color_buffer_bit);
1227
1228 Eglswapbuffers (Mdisplay, msurface);
/*-Delete clear screen corresponding code-*/
1229

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Kernel logo flashes black screen between boot animations (Android 5.X)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.