Android Deep Exploration--the first chapter

Source: Internet
Author: User

The first chapter is mainly about LinuxDrive andAndroidhalthe basic knowledge. First, we introduceAndroidThe system architecture is divided into four layers,LinuxKernel,C + +code Base,Android SDK API, applications. Understand that these four layers areAndroidthe premise of system transplant,Androidsystem porting refers to theAndroidthe operating system runs on a particular hardware platform. andLinuxThere is a great advantage, that isLinuxthe kernel itself supports many commonCPUarchitecture, therefore, theAndroidin a differentCPUporting between architectures without making too many changes. During the transplant, in addition to migratingCPUbeyond the framework, the most important is to transplantLinuxDrive. HALthe words are located inAndroidThe second layer of the system architecture is the normalLinuxProgram Library,Android SDKthroughHALAccessLinuxthe driver, that is, is not able to directly access. Androidthe transplant is, to a large extent,Linuxporting of the kernel. Linuxkernel porting is porting the driver. In the case of different versions, the source code needs to be re-modified, and the newLinuxthe kernel is recompiled before it can be run, even ifAndroidversions are different, as long asLinuxThe kernel version is the same,Linuxdrivers can be replaced with each other. ViewLinuxThe kernel version number can beuname-a,cat/proc/version, and other orders to produce the look. And it also requires major/procThe image of the kernel of the 20 system is not an ordinary file system, that is, the files in this directory are placed in the system memory.

Android Deep Exploration--the first chapter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.