Android's system architecture

Source: Internet
Author: User

1, the Android system is divided into four layers, namely, Linux kernel layer, libraries layer, framework layer, and applications layer;

The Linux kernel layer contains the Linux kernel and various drivers;

The libraries layer contains various class libraries (dynamic libraries (also called shared libraries), Android runtime libraries, Dalvik virtual machines), and the programming language is mainly C or C + +

Most of the framework layer is written in the Java language and is the cornerstone of the Java world on the Android platform

The applications layer is the application layer, which we develop on this layer, using Java speech writing

2. The difference between a Dalvik vm and a traditional JVM:

Traditional JVM: Write a. java file à compile to a. class file à package into a. jar file

Dalvik VM: Write a. java file à compile the. class file into a. dex file à package into an. apk file (via the DX tool)

It improves efficiency by consolidating all classes into one file. More suitable to run on the phone

1. Linux kernel layer [Linux KERNEL]:

Contains the Linux kernel and driver modules (such as USB, Camera, Bluetooth, etc.).

Android2.2 (code Froyo) is based on the Linux kernel version 2.6.

2. LIBRARIES layer [LIBRARIES]:

This layer provides a dynamic library (also called a shared library), an Android runtime library, a Dalvik virtual machine, and so on.

The programming language is mainly C or C + +, so it can be simply regarded as native layer.

3. Framework layer [application framework]:

Most of this layer is written in the Java language, which is the cornerstone of the Java world on the Android platform.

4. Applications layer [application]: Application layer

:

The whole diagram of the system hierarchy is simplified to the following diagram, corresponding to the following:

Framework Layer--------Àjava World

Libraries Layer--------Ànative World

Linux kernel layer--------àlinux OS

Communication between the Java world and the native world is through the JNI layer

The JNI layer and the native world can directly invoke the system's underlying

Android's system architecture

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.