One, application (Application layer)
Applications are programs written in the Java language that run on virtual machines
II, Application framework (Application framework layer)
This layer is the API framework used to write the core apps that Google publishes, and developers can use these frameworks to develop their own applications
View System: Can be used to build applications that include lists, grids, text boxes, Web browsers where buttons can already be embedded
Content Provider: It allows one app to access data from another app, or share their own data
Resource Manager: Provides access to non-code resources, such as local strings, graphics, and layout files
Notification Manager: Applications can display custom prompts in the status bar
Activity Manager: Used to manage Application lifecycle disease provides common navigation return functionality
Windows Manager: Manage all Windows programs
Program management within the package manager:android system
Three, libraries,android runtime (System runtime Layer)
When using the Android Application Layer framework, the Android system will support the various components we use through a number of C + + libraries, so that they can better serve us
Binoic System C Library: C language standard library, C library through the Linux system to invoke
Multimedia Library (mediaframework): Android system Multimedia library, based on Packervideo Opencore, which supports a variety of common formats for audio, video playback and recording, as well as images such as mpeg4,mp3,aac,amr,jpg, PNG, etc.
SGL:2D Graphics Engine Library
SSL: Provides support for data communication between the TCP/IP protocol and various application layer protocols
Support for OpenGL ES 1.0:3d effects
SQLite: Relational database
Webkit:web Browser engine
FreeType: Bitmap (bitmap) and vectors (vector)
In the Android operating system, each Java program runs on the Dalvik virtual machine and only executes the. Dex executable file, and when the Java program is compiled, it needs to be converted to. dex format from the DX tool in the SDK to execute on the virtual machine.
Java Virtual machine runs the Java bytecode, while the Dalvik virtual machine runs its proprietary file format dex (Dalvik exceutable) file
Dalvik virtual machines have the following key features:
1, proprietary DEX file format
2,dex optimization, the structure of Dex files is compact
3, register-based
4, one application, one virtual machine instance, one process. Every Android app runs in a single Dalvik virtual machine instance, each VM instance is a separate process space
Iv. Linux Kerner (Linux kernel layer)
Display Driver: Linux-based framebuffer (frame buffer) driver
Keyboard driver (KeyBoard Driver): Keyboard driver as input device
Flash memory drive (Flash memories Driver): MTD-based Flash driver
Camera driver (camera Driver): Common Linux-based V412 (Video for Linux) drivers
Audio Driver: Common opportunities Alsa Advanced Linux Sound System driver
Bluetooth drive (Bluetooth Driver): Wireless transmission technology based on IEEE 802.15.1 standard
Wi-Fi Driver: IEEE 802.11 standard-based driver
Binder IPC Driver: A special driver for Android with a separate device node that provides interprocess communication capabilities
Power Management: such as battery charge
Five, Android application framework
Android.app: Provides a high-level program model and basic operating environment.
Android.content: Includes access to and publication of data on a variety of devices.
Android.database: Browse and manipulate databases through content providers.
Android.graphics: The underlying graphics library, which contains canvas I, color filters, points, rectangles, can be drawn directly onto the screen.
Android.location: Classes for targeting and related services.
Android.media: Provides some classes to manage multiple audio and video media interfaces.
Android.net: A class that provides help for network access, more than the usual java.net.* interface.
Android.os: Provides system services, message transmission, and IPC mechanisms.
Android.opengl: A tool that provides OpenGL.
Android.provider: Provides classes to access Android content providers.
Android.telephony: Provides API interaction related to dialing calls.
Android.view: Provides a basic interface framework for the user interface.
Android.util: A tool-related approach, such as a time-date operation.
Android.webkit: Default browser Operation interface.
Android.widget: Contains various UI elements that are used in the layout of the application.
Android System Architecture