25

From the user's perspective when switching on the phone, I see two boot animations in my LG P500 running CM10. The first animation is from LG and the second animation is from CM10. Then it settles in with a locked screen ready for my input.

What happens behind the scene (screen) during a boot process when an Android device is switched on? It will be helpful if the answers can help a non geek to understand various process and jargon (like, fastboot, bootloader, recovery, if applicable, etc.) regarding boot sequence.

1

1 Answer 1

25

You will find a good explanation including graphics to visualize what's going on in the article The Android boot process from power on. Basically, the steps are as follows:

  1. Execute Boot ROM code. This is stored in a hardware-specific area and keeps information on where to find the first stage of the boot loader, which is then loaded into RAM. You can compare the Boot ROM with the BIOS in your desktop PC.
  2. Execute first stage of the boot loader. On desktop computers, this can be compared with the boot menu, e.g. Grub/LiLo on Linux. It sets up some basic stuff, and then turns control to the...
  3. Linux kernel, which will, together with the init process, initialize the base system, e.g. caches, file systems, etc., and then calls...
  4. Zygote, which initializes the Dalvik VM, and then starts the...
  5. System server. Now we are in the Android-system, and set up all Android-specific services, like e.g. telephony manager and bluetooth. Finally comes:
  6. Boot completed -- this event will be broadcast, so apps having registered listeners on this will be started.

To help you visualize this, here's the last image from the mentioned site:

Android Boot Process

2
  • What is fastboot in this context? Also in link2sd.info/faq a term quick boot and real boot are mentioned. I assume quick boot is about restarting UI libs which is different from fastboot though it appears analogous. Can you explain this in your own (and good) style?
    – Narayanan
    Sep 25, 2012 at 7:01
  • 4
    You are correct about quick boot: This simply kicks your system back to step 5, and re-starts the system server. The term Fastboot however is a bit misleading; simplified said, it just goes up to step 3 and then waits for commands (it's a special mode for flashing updates/new ROM images to your device).
    – Izzy
    Sep 25, 2012 at 7:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .