Basic mode analysis of Android system architecture

Source: Internet
Author: User

Today, we face the market in a wide range of mobile phones must be dazzling. But in today's dominant smartphone position, the main factor in choosing a mobile phone is the choice of a high performance mobile operating system, and Android is one of the inevitable choices. The Android architecture, like its operating system, incorporates a layered architecture. Android is divided into four tiers, from the top to the lower level, the application layer, the application framework layer, the System runtime layer and the Linux core layer.

Android System Architecture Application

Android is published along with a series of core application packages, including email clients, SMS messaging programs, calendars, maps, browsers, contact management programs, and more. All applications are written in the Java language.

Application framework for the Android system architecture

Developers can also fully access the API framework used by core applications. The application's architectural design simplifies the reuse of components; Any application can publish its block of functionality and any other application can use its published block of functionality (although it follows the security constraints of the framework). Similarly, the application reuse mechanism makes it easy for users to replace program components.

Hidden behind each application is a series of services and systems, including;

* Rich and extensible view (views) that can be used to build applications, including lists (lists), grids (grids), TextBox (text boxes), buttons (buttons), and even web browsers that can be embedded.

* Content Providers enables applications to access data from another application (such as a contact database), or to share their own data

* Resource Manager (Resource Manager) provides access to non-code resources, such as local strings, graphics, and layout files (layout files).

* The Notification Manager (Notification Manager) enables applications to display custom prompts in the status bar.

* Activity Manager is used to manage the application lifecycle and provide common navigational fallback functionality.

For more details and how to write an application from scratch, refer to how to write an Android application.

System Runtime library for Android system architecture

1) Program Library

Android includes some C + + libraries that can be used by different components in the Android system. They provide services to developers through the Android application framework. Here are some of the core libraries:

* System C Library-a standard C system function library (LIBC) inherited from BSD, which is specifically tailored for embedded Linux based devices.

* Media Library-based on PacketVideo Opencore, which supports a variety of commonly used audio, video format playback and recording, while supporting static image files. Coding formats include MPEG4, H.264, MP3, AAC, AMR, JPG, PNG.

* Surface Manager-manages the display subsystem and provides seamless integration of 2D and 3D layers for multiple applications.

* Libwebcore-A new web browser engine that supports the Android browser and an embeddable Web view.

* SGL-bottom 2D graphics engine

* 3D Libraries-based on OpenGL ES 1.0 APIs, the library can use hardware 3D acceleration (if available) or use highly optimized 3D soft acceleration.

* FreeType-Bitmap (bitmap) and vector (vectors) font display.

* SQLite-A lightweight relational database engine that is powerful for all applications.

2) Android Runtime Library

Android includes a core library that provides most of the functionality of the Java programming language core library.

Each Android application runs in its own process and has a separate Dalvik virtual machine instance. Dalvik is designed as a device to efficiently run multiple virtual systems simultaneously. The Dalvik virtual machine executes (. dex) 's Dalvik executable file, which is optimized for small memory usage. The virtual machine is also based on registers, all classes are compiled by the Java compiler, and then transformed into the. dex format by the virtual machine.

Dalvik virtual machines rely on some features of the Linux kernel, such as threading mechanisms and underlying memory management mechanisms.

The Linux kernel of Android system architecture

Android's core system services rely on the Linux 2.6 kernel, such as security, memory management, process management, network protocol stacks, and drive models. The Linux kernel also serves as an abstraction layer between hardware and software stacks.

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.