Android Technology 20:android initialization process

Source: Internet
Author: User

How the Android system is started, and how the application is started. The following is a brief overview of the initialization process.

Initialization of the 1.Android system

The 1.1Android system will start the Linux base system first, then boot the Linux kernel and start the initialization process init

Linux Kernel---->init (pid=1)

1.2 Start Daemon daemons

Start the USB daemon and manage the USB connection

Start Android Debug Bridge Daemon management adb connection

Start the Debuggerd Debug daemon

To start the wireless interface daemon to manage wireless communication

1.3 The zygote process starts while the daemon is started

To create an initialization Dalvik initialization instance

Load the required classes and listeners for the socket request

Create a virtual machine instance to manage the application's processes

| Daemons

init----

| Zygote

1.4 Next, initialize the runtime process

Initialize Service Manager

Registers the service manager with it as the default binder for the service context Manager

1.5 Starting the system service

Runtime sends a request to zygote, Zygote creates a Dalvik virtual machine instance for the system service, and starts the system service, the system service starts the native system service, mainly including audio Flinger and surface Flinger, These local system services are registered to Service Manager. The system service starts the Android Management service and registers the management service with the service Manager.

1.6 System loading complete, waiting for application to start

The 1.7Activity Manager manager sends a socket request to zygote, Zygote creates a Dalvik virtual machine process through the fork mechanism to run the application

All application processes are child processes of the zygote process, one for each application, and one for the virtual machine.

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.