AMS for Android Core Analytics

Source: Internet
Author: User

Activitymanagerservice, called AMS, is one of the core features of the Android kernel and starts the service when the system starts systemserver.

Android Frame:

The composition of Activity manager is divided into the following sections:

1. Service agent: Implemented by Activitymanagerproxy for interprocess communication with system services provided by the server side

2. Service hub: Activitymanagernative inherits from Binder and implements Iactivitymanager, which provides the mutual transformation function of the service interface and binder interface, and the internal storage service proxy to the image, and provides the Getdefault method to return the service proxy

3.Client: A portion of the service interface is encapsulated by the Activitymanager for Client invocation. Activitymanager internal by calling Activitymanagernative's Getdefault method, you can get a activitymanagerproxy reference to the image, and then through the proxy to the method of invoking the remote service

4.Server: Implemented by Activitymanagerservice, providing Server-side system Services

Frame diagram:

The functions provided by AMS mainly include the following aspects:

1. Management of Android four components (activity service broadcast content provider), including startup, life cycle management, etc.

2. Process Oom adj with level LRU weight management


The AMS main code is located at:

Frameworks\base\core\java\android\app

Frameworks\base\services\java\com\android\server\am

The main directory structure is as follows:



AMS for Android Core Analytics

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.