1. Android Architecture Visual Map
Shows the main components of the Android system:
Overall, the Android system structure consists of 5 parts, from top to bottom, others are applications (Android application layer), Applicationframework (Android application framework layer), Libraries, Android Runtime (anroid runtime), Linux Kernel (Linux kernel). Of these, libraries and Android runtime are on the same layer of the Android frame. The following is a brief introduction to these 5 sections.
2. Applications Layer
A collection of core applications for Android assembly, including email clients, SMS applications, calendars, maps, browsers, contacts, and other settings. All applications, whether user-developed or system-built applications, are in that layer.
3. Application Framework Layer
Android application framework layer, all the applications are developed on the basis of the framework. The framework enables developers to produce extremely rich and innovative applications by providing an open development platform. For example, developers are free to take advantage of device hardware, access location information, run background services, set alarms, add notifications to the status bar, and more. At the same time, developers can take advantage of the framework APIs used by the core applications. In addition, because the architecture of an application is designed to simplify the reuse of components, any application can publish its functionality and any other application can use these features, and this mechanism also allows users to replace Android components.
In fact, all applications are a set of services and systems that include:
View: A rich, extensible collection of views for building an application, including lists, networks, text boxes, buttons, and inline web browsers.
Content provider (contentproviders): Enables applications to access data from other applications, or to share their own data.
Resource Manager (Resource Manager): Enables applications to access non-code resources. such as localized strings, graphic images, and interface layout files.
Notification Manager (Notification Manager): Enables all applications to display a custom warning in the status bar.
Activity Manager: Manages the lifecycle of an application and provides a common navigation fallback feature.
4. Libraries Layer
Android consists of a collection of C + + libraries that are used by various components of the Android system. These features are exposed to developers through the Android application framework (application framework). Some of the core libraries are listed below:
System C Library: BSD derivative of standard C system library (LIBC), tuned to embedded Linux based devices
Media Library: PacketVideo-based Opencore. These libraries support the playback and recording of many popular audio and video formats, as well as still image files, including MPEG4, H, MP3, AAC, AMR, JPG, PNG
Interface Management: Manage access to display subsystems and seamlessly combine two-and three-dimensional graphics layers across multiple applications
Libwebcore: A modern web browser engine that drives Android browsers and embedded web views
SGL: basic 2D Graphics engine
3D Library: Based on the implementation of OpenGL ES 1.0 APIs. Library uses hardware 3D acceleration or contains highly optimized 3D software gratings
FreeType: bitmap and vector font rendering
SQLite: A powerful and lightweight relational database engine that can be used by all applications
5. Android Runtime Layer
Android contains a collection of core libraries that provide most of the functionality available in the core class library of the Java programming language. Each Android application is an instance of a Dalvik virtual machine that runs in their own process. The Dalvik virtual machine is designed to efficiently run multiple virtual machines in one device. The Dalvik virtual machine executable file format is. The Dex,dex format is a compression format designed for Dalvik and is suitable for systems with limited memory and processor speed.
Most virtual machines, including JVMs, are stack-based, while Dalvik virtual machines are register-based. Both architectures have pros and cons, and generally, stack-based machines require more instructions, and register-based machine instructions are larger. DX is a set of tools that convert Java.class to. dex format. A DEX file typically has more than one. Class. Dalvik virtual machines rely on the Linux kernel to provide basic functionality, such as threading and underlying memory management.
6.Linux kernel Layer
Android based Linux 2.6 provides core system services such as security, memory management, process management, network stacks, and drive models. Linux kernel also acts as an abstraction layer between hardware and software, which hides specific hardware details and provides a unified service for the upper layer.
If you learn the computer network know OSI/RM, you will know that the benefits of layering is to use the services provided below to provide a unified service for the upper layer, shielding the differences between the layers and the following layers, when the layer and the following layers have changed will not affect the upper level. In other words, each layer provides a fixed sap (Service Access point), which can be said to be high cohesion and low-coupling.
Android Framework Brief Introduction