How Android Boots Up
The bootloader detects certain key presses which can be used to load a recovery image or put the phone into a mode where the developer can perform development tasks (‘fastboot’ mode) such as re-writing flash images, directly downloading and executing an alternate kernel image, etc.