1. (starting from the bottom up), Uboot boot kernel (linux Kernel) boot, put the kernel from flash into memory, boot the kernel boot. The kernel is the core of the system, which is responsible for managing the management of memory in the process Management network. After the kernel (Linux kenel) starts to start the Android system (Android OS), the boot of the Android system is divided into several tiers, the first being the HAL layer (which puts external devices such as camere providing standard interfaces to the framework C + + layer call), ANdroid OS, The second is the framework (c + + layer), the third is the third-party library file (library), the fourth is the virtual machine (Dalvik), the fifth is the framework (Java layer), the Dalvik virtual machine is a link to the upper application of the underlying services and third-party libraries, Provide automated management, especially memory management, with the Dalvik virtual machine can be used in Java to write related applications, the Framework Java layer provides activity Manager,window Manager,content Manager, Provide Manager,system Manager and package management, and provides a number of power management, WiFi management and other services, as well as activity, the communication between processes. An application camera, first from the application Java layer to the framework Java layer, the framework Java layer through the virtual machine to obtain the camera services (camera service), and then to the camera HAL layer, The HAL layer invokes the driver control hardware to capture the photo, returns it to the camera HAL layer, and returns it to the camera service, which is then returned to the upper layer via Dalvik for preview or storage on the SD card.
Android Framework 01