This article is a summary of the source code. Please specify the source for the transfer. Thank you.
Welcome to your discussion. Qq: 1037701636 email: gzzaigcn2012@gmail.com
Android source code Version: 4.2.2; hardware platform A31
Step1. the previous blogs are recording the SurfaceFLinger side, that is, the so-called Server side. Next, let's take a look at how the client will transfer the image information request SF to be processed. One of the learning methods is to start with the first boo
)
1
2
3
4
5
6
7
1
2
3
4
5
6
7
Then restart the machine, you can see the animation you modified!Note: Some machines mount-o remount,rw/system This command may not work, then try Mount-o rw,remount/system. Be sure to modify the permissions of the replacement bootanimation.zip, or modify the boot animation to fail.Make Bootanimation.zip Animation PackageUnzip the Bootanimation.zip file you will find there will be a desc.tx
bit.Comparing the two methods, we can easily find that the TV platform is different from the mobile phone, especially the boot advertisement. The picture with a resolution of 1920*1080 is several hundred KB. Due to the size limit, the number of animation frames is very small, therefore, TV platforms cannot make complex and smooth animations using frame-by-frame animations. This article will mainly discuss the implementation of OpenGL.1.2 native boot animation source code analysis before making
Logo,kernel logo,bootanimation, the three screen inside a black screen, the solution is not the same.The following chart, which is the ENG version of the boot logo, explains the logo display during the boot process. View the issue,Be sure to use the ENG version, as the Eng version is powered on with a line of "normal boot" in the lower left corner, so we can know where the black screen takes place. The best use of different logo resources, some custo
Introduction to how to create and play an android boot Animation
Everyone wants to have a gorgeous and beautiful boot animation, which makes people feel comfortable. How does Android achieve it? How to Create a boot animation? Here we unveil the mystery of Android boot animation.1. Create an animation for the on/off Server 1.1
System/Media/bootanimation.zip. to modify the boot animation, modify the compression file bootanimation. If the package does n
1. When the Linux system is started, the Linux little penguin screen (reboot) appears (Android 1.5 and later versions have canceled image loading );2. The Android platform starts initialization and displays the text "a n d r I O D;3. The Graphic System of the Android platform is started, and an animated image (start) containing the flashing Android text is displayed ).
Now we are talking about the third method (based on simulators ):
The android boot animation source code is located in framework
parsing init.rc (which defines services: "Service Bootanim/system/bin/bootanimation"), Bootanim Service by Surfaceflinger.readytorun () (Property_set ("Ctl.start", "Bootanim"), perform a boot animation, bootfinished () (Property_set ("Ctl.stop", "Bootanim"), and perform a stop-start animation.The BootAnimation.h and BootAnimation.cpp files have been placed in the/frameworks/base/cmds/bootanimation director
Transferred from: http://blog.csdn.net/luoshengyang/article/details/7857163In describing the relationship between Android applications and Surfaceflinger Services, it is mentioned that every android application with a UI needs to The Surfaceflinger service establishes a connection so that the Surfaceflinger service can be requested to Create and render Surface for it through this connection . In this article, we'll take an example of the Android system's start-up animation application, deta
When describing the relationship between Android applications and the surfaceflinger service, we mentioned that every android application with a UI needs to establish a connection with the surfaceflinger service, this connection allows you to request the surfaceflinger service to create and render a surface for it. In this article, we will take the Android system boot animation application as an example to describe how the Android Application establishes a connection with the surfaceflinger serv
is displayed at the top layer, and the program code (bootanimation. android () controls the continuous scrolling of background images, and displays the background texture through the hollow-out part of foreground image text to achieve the animation effect.Related code:/Frameworks/base/libs/surfaceflinger/bootanimation. h/Frameworks/base/libs/surfaceflinger/bootanimatio
Use bootanimationProgramThe boot screen is displayed. If you need to modify the boot screen, you need to modify the source code. B)
Code
Frameworks/base/cmds/bootanimation /*
Frameworks/base/CORE/RES/assets/images/Android-logo *
2) Android 2.0 and laterA) DescriptionUse the bootanimationprogram to display the on-premises image. If you need to modify the on-premises image, you only need to create a bootanimation.zip package based on the format.
Before bootanimation starts drawing, it will do a clear screen action first, to avoid the previous diagram interference to the bootanimation display.Check Main_log first confirm which function is playing the boot animation. Delete the corresponding code for the action of clear screen in the corresponding function./frameworks/base/cmds/bootanimation/bootanimation.
(Init_image_file) to display the screen, the final call framebuffer in the interface Fb_open to open the device file/dev/graphics/fb0, opened the device file/ After dev/graphics/fb0, we can output the contents of the file/initlogo.rle to the frame buffer hardware device.A third splash screenMore complex, involving system service Surfaceflinger.By the application bootanimation to be responsible for the display. Application
fact, this part of the animation is the use of two images displayed, the specific picture file path is: frameworks/base/core/res/assets/images, we look at the know, also know how to modify.And this part of the relevant source files are mainly the following: Frameworks/base/cmds/bootanimation the following several files are, you can look at the contents of the BootAnimation.cpp file, there are the following code snippet:BOOL
, detailed picture file path is: frameworks/base/core/res/assets/images, we look at the know, also know how to change.And this part of the relevant source code files are mainly for example: Frameworks/base/cmds/bootanimation The following several files are, can look at the contents of the BootAnimation.cpp file, such as the following code snippet:BOOL Bootanimation::android (){Inittexture (mandroid[0], mass
/init.h:#define Init_image_file "/initlogo.rle"4). Copy the prepared Initlogo.rle files to the root directory of the Android system, which is out/target/product/..../rootFinally compiled into a file system image xxx.img re-burn. Ok.Third (boot animation) screenIn fact, this part of the animation is the use of two images displayed, the specific picture file path is: frameworks/base/core/res/assets/images, we look at the know, also know how to modify.And this part of the relevant source files are
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.cpp450bool
system. The specific image name is defined in the init. h file:
[Cpp] Int load_565rle_image (char * file_name);
Int load_565rle_image (char * file_name);
3. Boot Animation: in this phase, you can see the pictures displayed after the words "a n d r o I D" are displayed during system startup, similar to the progress bar, the image content is also "a n d r o I D. How can I modify it here?
In fact, this part of the animation is displayed using two images. The specific path of the image file is: f
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.