Android's system architecture stack is divided into 4 tiers, from the top down to the applications, application framework, Libraries & Android Runtime, Linux Kernel. Each layer provides different service capabilities for upper-level invocation.
One: Linux Kernel (Linux kernel):
located at the bottom of the Android system architecture stack, the entire Android system is based on this layer, and the latest Android Kitkat 4.4 is built on Linux Kernel 3.8. It provides a hardware Device abstraction interface for use by other architectural layers. The main functions of the Linux kernel layer are divided into 2 categories: providing device drivers (WIFI, Bluetooth, camera, etc.), operating system management functions (memory, process management, etc.).
• Power Management (Power Management)
• Hardware abstraction (Hardware abstraction)
Process Management (Management)
• Equipment Management (device Management)
• Safety settings (security Settings)
• Hardware Drivers (Hardware Drivers)
II: Libraries & Android Runtime (Android native library and Android runtime):
On the Linux kernel layer, the basic Android native class library written by C, C + +, each responsible for the specific hardware device to bind or respond to the UI input requests, such as 2D, 3D rendering and so on. The list of features is as follows:
WebKit: Browser engine that lets Web pages browse the application.
opengl:3d Graphics
sgl:2d Graphics
Surface Manager: On-screen window manager for view rendering
SQLite: Database engine
Open SSL: Internet Security protocol, support SSL, TSL protocol
Media Framework: Provides a format for playing and recording various video and audio formats.
libc: Remote C system library.
• Network: Provides access to the network stack
• Hardware: Provides access to hardware.
• Operating system: Provides access to operating system services
• Gadget: Provides a collection of UI components (such as buttons, labels, etc.)
free Type: Font rendering
The Android runtime contains the DVM (Dalvik virtual machine) and the core Java library, and the DVM acts like a JVM (Java Virtual machine), which functions like running bytecode (byte code), memory management, thread management, etc. ; it can run the. dex file format.
The process for packaging Android apps is as follows:
core Java Libraries (Java Core Library)
The core API library, written in Java, provides powerful features such as:
Three application framework (Application framework layer)
The system services feature called by Android Development is listed below:
Core Platform Services
Activity Manager: Managing the life cycle of apps
Package Manager: Used to locate the apps package installed on the device
window Manager: Translate the user's actions into instructions and send them to the various Windows that appear on the interface
Resource Manager: Resource management with Apps
content Providers: Sharing data between multiple apps
View System: For creating a set of views in the UI
Hardware Services
Telephony Service: Phone Call Management
Location SERVICE:GPS Location Management
bluetooth Service: Bluetooth management
WiFi Service:wifi Management
• USB SERVICE:USB Management
Sensor Service: sensor management
- Locationmanager lm = (locationmanager) Context. Getsystemservice(Context. Location_service);
Quad Applicatoin (Android app)
The top level of the Android architecture stack is a system native app and third party apps. Generally, developers and users are mostly concerned about this layer, as developers write apps that run on this layer.
The native apps of the system are:
- SMS: SMS
- Dialer: Telephone
- Web Browser: Browser
- Contact Manager: Contacts
- Email: e-mail
- Games etc.: Built-in some game etc
———————————————————-
- Android System Introduction (top): Historical origins
- Android System Introduction (middle): System architecture
- Introduction to Android System (bottom): Operating principle