Learn Android with a simple understanding of Android OS Internals (29)

Source: Internet
Author: User

For the Android operating system boot process, relatively complex, here is just a look at the principle.


Have done hardware development know that when our device is plugged in, there will be a "boot loader" to initialize, we call it bootloader, that


When the Android device is plugged in, it will also load the program, so what is the use of loading bootloader? The main feature is to check the hardware features and


The first part is loaded into the device's memory, of course, different device boot loader is not the same.


After powering on the Android device, the boot loader takes two steps, mainly using a master bootloader and a secondary boot loader.


Order. For the master bootstrapper, most Android devices cannot be replaced because the master boot loader is hard-coded in the ASIC chip in the device


, these hard-coded instructions load the secondary boot loader into memory and tell it where the memory, CPU, and operating system are located and how to access it


Children


The secondary boot loader can be customized, and we call it a custom bootloader, which has the advantage of getting more permissions and customizing the bootloader to


To use custom files to replace the original operating system files, the benefits of doing so can be replaced by a new user interface or a feature-enhanced kernel.


Is the Android device boot loader specific steps:



1. Specific code located in the boot ROM (read only memory) will find the first level boot loader (the master boot loader) and load it into the storage


The device. The boot ROM is an ASIC chip and is loaded into a permanent programming code.


2. After initializing the memory and waiting for the hardware to be ready, the first level boot loader will load the second level bootloader (secondary boot loader) . .


The bootloader checks if the security token is on (s-on), and if it is turned on, the bootloader will only load the tagged kernel. If Ann


The full tag is off (S-off), then the bootloader does not check for markup. Set the security token to S-off to unlock other security locks so


The entire file system is writable and can do other things, such as customizing the recovery program.


3. The bootloader loads the Linux kernel and custom content into memory. The bootloader then transfers control of the hardware to the Linux


Nuclear.


4. Initialize (init) process. The init process is a precondition for all other processes running on the device. The primary role is to initialize basic hardware access and device functionality


All the required processes also start the process of Dalvik virtual machines that are used to perform most applications.


Reprint Please specify source:http://blog.csdn.net/hai_qing_xu_kong/article/details/44728245 Emotional Control _

Learn Android with a simple understanding of Android OS Internals (29)

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.