Android system startup process simple record

Source: Internet
Author: User

This document documents the Android system boot process, including the process from Linux Kernerl to luancher boot completion:

1, after the Linux kernel completes the system setup, it will look for the ' init ' file in the system files, then start the root process or the first process of the system;

2, the INIT process is the Linux kernel to complete the system setup after the first process started or the root process, it is the parent process of all other processes, it has two functions, one is mount directory, such as/sys,/dev, etc., Second, run the init.rc script or the init.xxx.rc script;

3. The init.rc script is Android's own set of initialization scripts, which run the init process in the previous step. RC script to build several basic services, the most important of which is the ServiceManager and zygote processes, the zygote process is established after the establishment of real Android running space;

4, zygote process will fork out a systemserver process, in the process will start all Android services, such as pms,ams, etc.;

5. After all Android services are started in the Systemserver in the previous step, the Xxx.systemready (callback) method is called to notify each service system that it is ready. Where the Launcher app is launched in a call to Activitymanagerservice.systemready ()

Android system startup process simple record

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.