Android Architecture
Android Architecture
The Android operating system is a stack of software components, which can be roughly divided into five parts and four main layers in an architecture diagram.

Linux Kernel
At the very bottom of all layers is Linux - including Linux 3.6 with about 115 patches. It provides basic system functions such as process management, memory management, and device management (such as camera, keyboard, display). At the same time, the kernel handles all the work that Linux excels at, such as networking and numerous device drivers, thus avoiding the inconvenience of being compatible with a large number of peripheral hardware interfaces.
Program Libraries
Above the Linux kernel layer is a collection of program libraries, including the open-source Webkit web browser engine, the well-known libc library, the SQLite database used for repository storage and application data sharing, libraries for playing and recording audio and video, and the SSL library for network security, among others.
Android Libraries
This category includes Java-based libraries specifically for Android development. Examples of these libraries include application framework libraries for building user interfaces, drawing graphics, and accessing databases. A summary of core Android libraries available to Android developers is as follows:
- android.app - Provides access to the application model, which is the foundation of all Android applications.
- android.content - Facilitates content access, publishing, and messaging between applications and application components.
- android.database - Used to access data published by content providers, including SQLite database management classes.
- android.opengl - The Java interface for the OpenGL ES 3D graphics rendering API.
- android.os - Provides applications with the ability to access underlying operating system services, including messages, system services, and inter-process communication.
- android.text - Renders and manipulates text on the device display.
- android.view - The fundamental building blocks for application user interfaces.
- android.widget - A rich set of pre-built UI components, including buttons, labels, lists, layout managers, radio buttons, etc.
- android.webkit - A collection of classes that allow applications to have built-in web browsing capabilities.
Having looked at the core Java-based libraries within the Android runtime layer, it is time to focus on the C/C++ based libraries in the Android software stack.
Android Runtime
This is the third part of the architecture, the second layer from the bottom. This part provides key components of the Dalvik Virtual Machine, similar to the Java Virtual Machine, but specifically designed and optimized for Android.
The Dalvik Virtual Machine allows Linux kernel features, such as memory management and multithreading, to be used in Java. The Dalvik Virtual Machine allows every Android application to run in its own independent virtual machine process.
The Android Runtime also provides a series of core libraries for Android application developers to write Android applications using the standard Java language.
Application Framework
The application framework layer provides many advanced services to the application in the form of Java classes. Application developers are allowed to use these services in the application.
- Activity Manager - controls all aspects of the application lifecycle and activity stack.
- Content Provider - allows data to be published and shared between applications.
- Resource Manager - provides access to non-code embedded resources, such as strings, color settings, and user interface layouts.
- Notification Manager - allows applications to display dialogs or notify users.
- View System - a set of extensible views used to create the application user interface.
Application
The top layer contains all Android applications. The applications you write will also be installed in this layer. These applications include contacts, browsers, games, etc.