Android Startup Process

Source: Internet
Author: User
1. boot system initialization. For detailed procedures, see (System \ core \ init. c) In the main function. At this time, the screen displayed on the mobile phone or simulator is a console that displays "android" MSG.

 

2. After successful initialization, start the mounting system. For details, see the main function in (System \ core \ mountd. C.

 

3. Run ndroidruntime and start the Java Virtual Machine dalvikvm.

 

4. After the Java Virtual Machine is started successfully, system initialization starts. The first step of the system is implemented in JNI mode. The corresponding Java code is (frameworks \ base \ Services \ Java \ com \ Android \ Server \ systemserver. java) init1 (native) function, the corresponding jni c ++ code is (frameworks \ base \ core \ JNI \ Server \ com_android_server_systemserver.cpp), and the implemented C ++ code is

System_init () function in (frameworks \ base \ cmds \ system_server \ library \ system_init.cpp.

 

5. system_init calls surfaceflinger. The readytorun () function of surfaceflinger uses bootanimation to enable boot animation. At this time, the mobile phone or simulator displays a background image and a dynamic small robot.

 

6. in step 2 of system initialization, The serverthread process will be started. For details, see systemserver. init2 (). Serverthread starts various system services, such as power manager and activity manager. For details, see the run function of serverthread. serverthread is in the same systemserver. java.

 

7. After that, we should have entered the system. (This part has not been investigated ).

Related Article

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.