Android System Introduction (middle): System architecture

Source: Internet
Author: User

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.).
        • Memory Management
        • Power Management (Power Management)
        • Hardware abstraction (Hardware abstraction)
      Process Management (Management)
        • Equipment Management (device Management)

      • Safety settings (security Settings)
      • Network
    stack
      • 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:

        Data Structures
        Utilities
        file access
        network access
      Graphics

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

      GPS Locator Code:
    1. 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

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.