The Wayback Machine - https://web.archive.org/web/20240930190717/https://www.geeksforgeeks.org/android-boot-process/
Open In App

Android Boot Process

Last Updated : 13 Aug, 2019
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Booting Process

In computing, booting is starting up a computer or computer appliance until it can be used. It can be initiated by hardware such as a button press, or by software command. After the power is switched on the computer is relatively dumb, and can read only part of its storage called Read-only memory. There a small program is stored called firmware. It does power-on self-tests, and most importantly, allows accessing other types of memory, like hard disk and main memory. The firmware loads bigger programs into the computer’s main memory and runs it. In general purpose computers, but as well in smart phones, tablets, optionally a boot manager is run.

Android Boot Process

Android Boot Process includes the following six steps:

  1. Boot ROM: This Step is known as power ON and system startup. This means that whenever we press the power button, the Boot ROM code starts executing from a pre-defined location which is hardwired in ROM. Boot ROM loads the BootLoader into RAM and starts executing.
  2. BootLoader: Bootloaders is a low-level code contains the instructions that tell a device how to start up and find the system kernel. A Bootloader is a place where manufacturers put their locks and restrictions.

    The bootloader is a code that is executed before any Operating System starts to run. The BootLoader executes in 2 Stages:
    a) In the first stage, it detects external RAM and loads a program which helps in the second stage.
    b) In the second stage, the bootloader setups the network, memory etc which requires to run Kernel.

  3. Kernel: Once kernel boots, it starts setup cache, protected memory, scheduling, loads drivers, starts kernel daemons, mounts root file system, initializing Input/Output, starts interrupts, initializes process table. A Kernel is the lowest level of easily replaceable software that interfaces with the hardware in our device. When kernel finish system setup first thing it looks for “init” in system files and launch root process or first process of a system.
  4. Init: Init is the very first process or we can say that it is the grandfather of all the processes.

    The Init process has 2 responsibilities:

    • Mounts directories like /sys, /dev or/proc
    • Runs /init.rc script. The init.rc is responsible for the initial set up of the system.

    The init process is what will set up all native services and this is similar to a regular Linux system boot.

  5. Zygote and Dalvik VM: The Zygote is a VM process that starts as the system boots. When app_process launces Zygote, it first creates the Dalvik VM and then calls Zygote’s main() method. Zygote receives a request to launch an App through/dev/socket/zygote. Once it happens, it triggers a fork() call.

    When a process is a fork, it creates a clone to itself. It replicates itself in another memory space. This is done pretty efficiently. When this happens to Zygote, it creates an exact and clean new Dalvik VM as a thread, preloaded with all necessary classes and resources that any App will need. This makes the process of creating a VM and load resources pretty efficiently.

    It enables code sharing across the Dalvik VM which helps in the achievement of minimal startup time.

  6. System Servers: After zygote preloads all necessary Java Classes and resources, it starts System Server. The System server is the core of the Android system. The first thing that happens is that the server will load a native library called android_servers that provides interfaces to native functionalities.

    Then the native init method that will setup native services called. After setting up the native services it creates the server thread. This thread will start the remaining services in the system according to the necessary start order.

    Each service is running in a separate Dalvik thread in the SystemServer.

    Once system Services up and running in memory, Android has completed boot process, At this time “ACTION_BOOT_COMPLETED” standard broadcast action will fire.


Previous Article
Next Article

Similar Reads

Pass the value from child process to parent process
Prerequisite: Pipe() and Fork() Basic Write a C program in which the child process takes an input array and send it to the parent process using pipe() and fork() and then print it in the parent process. Examples: Suppose we have an array a[]={1, 2, 3, 4, 5} in child process, then output should be 1 2 3 4 5. Input: 1 2 3 4 5 Output: 1 2 3 4 5 // C p
2 min read
Spring Boot - Customize the Jackson ObjectMapper
When using JSON format, Spring Boot will use an ObjectMapper instance to serialize responses and deserialize requests. In this article, we will take a look at the most common ways to configure the serialization and deserialization options. Let us do go through the default configuration. So by default, the Spring Boot configuration will be as follow
4 min read
Communication between two process using signals in C
Prerequisite : C signal handling In this post, the communication between child and parent processes is done using kill() and signal(), fork() system call. fork() creates the child process from the parent. The pid can be checked to decide whether it is the child (if pid == 0) or the parent (pid = child process id).The parent can then send messages t
3 min read
Ulo Hotels Recruitment Process
About Ulo Hotels : Founded in 2016, Ulo Hotels is a Nex Generation Quality Budget Hotel Chain offering budget-friendly accommodations for guests without compromising Quality and Services. We are building repetitive guests with our quality 5 Bs service like Best in Guest Service & Care, Bed Clean & Comfortable, Budget Friendly & Value, B
2 min read
Sleeping Barber problem in Process Synchronization
The Sleeping Barber problem is a classic problem in process synchronization that is used to illustrate synchronization issues that can arise in a concurrent system. The problem is as follows: There is a barber shop with one barber and a number of chairs for waiting customers. Customers arrive at random times and if there is an available chair, they
9 min read
Cerner Interview Process
Position Software Engineer(1-3 years) 1. HireVue Round 2. Versant Round 3. Technical Round 4. Technical & Managerial Round Hirevue is online video round of 60 minutes. 1. Your introduction. you have to record your answer in 3 minutes. 2. what you do to learn new technology? 3. write a code to print second last word of input string. after code s
1 min read
CGI Recruitment Process (On-Campus 2018)
About Company : CGI Group Inc. (Consultants to Government and Industries), more commonly known as CGI, is a Canadian global information technology (IT) consulting, systems integration, outsourcing, and solutions company founded in 1976 by Serge Godin and André Imbeau headquartered in Montreal, Quebec, Canada. In 2017, CGI ranked #177 in Forbes Top
4 min read
Process API Updates in Java
By Process API, we can perform any operation related to a process.Suppose if we want the process id of current running process, or we want to create a new process, or want to destroy already running process, or want to find the child and parent processes of current running process, or if we want to get any information regarding a process, then we c
3 min read
How to execute zombie and orphan process in a single program?
Prerequisite: Zombie and Orphan Processes in C Zombie Process: A zombie process is a process that has completed execution but still has an entry in the process table. This entry is still needed to allow the parent process to read its child's exit status. A process that terminates cannot leave the system until its parent accepts its return code. If
2 min read
Inter-process Communication using a shared stack
Inter Process Communication through shared memory is a concept where two or more process can access the common memory.the communication is done via this shared memory where changes made by one process can be viewed by another process. So, we can use one stack as a shared memory, where users(processes) sharing the stack (stacks) can push or pop elem
8 min read
Process Of JPEG Data compression
JPEG stands for Joint Photographic Experts Group. We perform such type of compression to reduce the size of the file without damaging its quality. By reducing the size we can store it in a huge amount which was not possible earlier. Reducing the size of images will also improve the efficiency of the system as it will give less load on it. Process O
3 min read
Microsoft Azure - Create Project in Azure Devops using Basic Process
Microsoft Azure DevOps currently has three types of processes: AgileScrumCMMI But the problem with these processes is that they are very process or methodology-heavy. Suppose you are a new engineer, and you are working with Github and you want to use Azure DevOps, then you will need to deal with product backlog items, user storage, and all the tech
3 min read
Microsoft Azure – Create Project in Azure Devops using Agile Process
Agile Process is used when a team uses Agile planning methods, including Scrum, and used to track development and test activities separately. Agile provides different work items using these work items you can track different types of work [ features, user stories, and tasks] based on Agile principles and values. Step 1: Go to Azure DevOps Portal an
3 min read
Bidding Process in E-Commerce
Bidding Process : Many small businesses seek to expand their market by bidding on larger or a higher number of long-term projects. Contracts might include Governmental Requests for Proposals or companies seeking to be the primary provider of a particular product or service for a large gathered deal. When bidding for a contract, follow five basic st
5 min read
Amazon Recruitment Process
This article will give you information about the company, its recruitment process, sample questions that have been asked previously, lots of experiences shared by other aspirants, and the portal where you can apply. Table of Content About Company:Recruitment Process:Written Round:Online Coding Round:Telephonic Round:Technical Round 1:Technical Roun
3 min read
Fiberlink Recruitment Process
This article will give you information about the company, its recruitment process, sample questions that have been asked previously, lots of experiences shared by other aspirants, and the portal where you can apply. Table of Content About Company :Recruitment Process :Academic Criteria :Online Round :Technical Rounds :HR RoundAbout Company : Fiberl
3 min read
Dell Recruitment Process
This article will give you information about the company, its recruitment process, sample questions that have been asked previously, lots of experiences shared by other aspirants, and the portal where you can apply. Table of Content About Company :Recruitment Process :Academic Criteria :Written Round :Technical Round and HR Round :HR Round:About Co
3 min read
OYO Rooms Recruitment Process
This article will give you information about the company, its recruitment process, sample questions that have been asked previously, lots of experiences shared by other aspirants, and the portal where you can apply. Table of Content About Company :Recruitment Process :Academic Criteria :Written Round :Technical Round and HR Round :HR RoundAbout Com
3 min read
Flipkart Recruitment Process
This article will give you information about the company, its recruitment process, sample questions that have been asked previously, lots of experiences shared by other aspirants, and the portal where you can apply. Table of Content About Company:Recruitment Process:Online Coding Round/ Telephonic Roundthe :Technical Round 1:Technical Round 2:Hirin
3 min read
Maximum number of Zombie process a system can handle
Zombie Process or Defunct Process are those Process which has completed their execution by exit() system call but still has an entry in Process Table. It is a process in terminated state. When child process is created in UNIX using fork() system call, then if somehow parent process were not available to reap child process from Process Table, then t
2 min read
Maximum number of threads that can be created within a process in C
Thread of execution is the smallest sequence of programmed instructions that can be managed independently by scheduler. Thread is a component of process and so multiple threads can be associated in a process. Linux doesn't have a separate threads per process limit, but has a limit on the total number of processes on the system (as threads just proc
2 min read
Double forking to prevent Zombie process
We have discussed Three methods of Zombie Prevention. This article is about one more method of zombie prevention. Zombie Process: A process which has finished the execution but still has entry in the process table to report to its parent process is known as a zombie process. A child process always first becomes a zombie before being removed from th
2 min read
Lottery Process Scheduling in Operating System
Prerequisite - CPU Scheduling, Process Management Lottery Scheduling is a type of process scheduling, somewhat different from other Scheduling. Processes are scheduled in a random manner. Lottery scheduling can be preemptive or non-preemptive. It also solves the problem of starvation. Giving each process at least one lottery ticket guarantees that
4 min read
CouponDunia Recruitment Process
This article will give you information about the company, its recruitment process, sample questions that have been asked previously, lots of experiences shared by other aspirants, and the portal where you can apply. Table of Content About Company Recruitment Process Academic Criteria Online Coding Round Technical Round and HR Round Application Deve
3 min read
Swiggy Recruitment Process
This article will give you information about the company, its recruitment process, sample questions that have been asked previously, lots of experiences shared by other aspirants, and the portal where you can apply. Table of Content About Company :Recruitment Process :Academic Criteria :Written Round :Technical Round :Design Round :HR Round :About
3 min read
FactSet Recruitment Process
This article will give you information about the company, its recruitment process, sample questions that have been asked previously, lots of experiences shared by other aspirants, and the portal where you can apply. Table of Content About Company:Recruitment Process:Academic Criteria:Written Round:Technical Round:HR Round:About Company: FactSet Res
3 min read
Fab.com Recruitment Process
This article will give you information about the company, its recruitment process, sample questions that have been asked previously, lots of experiences shared by other aspirants, and the portal where you can apply. Table of Content About Company :Recruitment Process :Academic Criteria :Telephonic Rounds :Technical Rounds :HR RoundCTO RoundAbout Co
3 min read
BARC Recruitment Process
About CompanyRecruitment ProcessQuestions Asked in BARCInterview ExperiencesWhere to Apply ?About Company :The Bhabha Atomic Research Centre (BARC) is India's premier nuclear research facility headquartered in Trombay, Mumbai, Maharashtra. BARC is a multi-disciplinary research centre with extensive infrastructure for advanced research and developme
2 min read
NHAI Recruitment Process
About CompanyRecruitment ProcessQuestions Asked in NHAIWhere to Apply ?About Company : The National Highways Authority of India (NHAI) is an autonomous agency of the Government of India, responsible for management of a network of over 50, 000 km of National Highways out of 1, 15, 000 km in India. It is a nodal agency of the Ministry of Road Transpo
2 min read
MoonFrog Recruitment Process
About CompanyRecruitment ProcessQuestions Asked in Moonfrog LabsInterview ExperiencesWhere to Apply ?About Company :Moonfrog Labs, is a mobile games based startup headquartered in Banglore, India. MoongFrog labs have developed games like Mafia Wars, CastleVille, Bubble Safari, Cafe World, Yoville, Hidden Chronicles, Empires & Allies. Their flag
2 min read
Article Tags :
Practice Tags :