AndroidSystem in -of global market share .81.6%, and has been growing in recent years, walking on the streets, everywhere the Android phone, no doubt, Android has become the current smartphone operating system boss. When we want to figure outAndroiddriving development, in fact, is learningLinuxdrive the development process, but Android adds aHAL, this isAndroidpeculiar to. GoogleThere are many reasons for this design, for example, becauseLinuxkernel based onCPLOpen Source protocol, and many drivers do not want to open their sources, so increaseHALlayer, you can alreadyLinuxThe driving business logic is placed inHALlayer.
Android 's system architecture is divided into 4 layers. This 4 -tier includes the following:
Layer 1 :linux kernel
Since Android is based on the linux kernel,android and other Linux The core parts of the system vary very little. This layer mainly includes Linux drivers and memory management, process management, power management and other programs.
Layer 2 : code library
Layer 3 :Android SDK API due to android SDK The API is written in the Java language, and this layer can also be called the Java API layer.
Layer 4 : Applications
Android migration is divided into application porting and system porting, in which the Android operating system is used to run on a particular hardware platform. to make android work on a different hardware platform and only support the CPU structure, you have to let android A variety of hardware that can identify the platform , which is mainly done by the Linux kernel, the protagonist of which is the linux driver.
There are two ways to view Linux system kernel versions:1 uname-a
2 cat/proc/version
Of course, the first chapter also has a lot of knowledge points are not described.
http://home.cnblogs.com/u/zivjeli/
Android Deep Exploration (Vol. 1) HAL and Driver Development Chapter I Summary