Android system service details

Source: Internet
Author: User
System_server Process

Many services run in the system server process, which is the basis of the entire android framework.

 

Native service

Surfaceflinger

 

This is a service for framebuffer synthesis. It combines the logical window image data (surface) of various applications and applications into a physical window and displays the service program of framebuffer.

 

Java service:

Most of these services have a manager class for processes. This is an RPC call. You can call the xxxmanager method, in fact, it is sent by the binder to the method corresponding to xxxmanagerservice in the system_server process, and the result is taken back through the binder.

 

 

1. entropyservice

Entropy service, periodic loading and storage of random information. It is mainly because after Linux is started, the/dev/random status may be predictable, so some applications that require random information may have problems. No application interface is required.

 

2. powermanagerservice-> powermanager

Android power management is also an important part. For example, you can turn off unnecessary devices in the standby mode, the screen and keyboard Backlight in the standby mode, and the number of devices to be turned on during user operations.

 

3. activitymanagerservice-> activitymanager

This is the most core service in the entire android Framework framework. It manages the core implementation of tasks, process management, and intent parsing in the entire framework. Although the Manager service is called activity, it is not only subject to activity, but also has three other components and processes. That is to say, the user is responsible for application lifecycle management.

 

4. telephonyregistry-> telephonymanager

The telephone registration and management service module can obtain the telephone connection status, signal strength, and so on. <You can delete it, but you can see it clearly.>

 

5. packagemanagerservice-> packagemanager

This includes unpacking, verification, installation, and upgrade of the software package. To solve the problem that we cannot install the. So file, we should first analyze the cause from this.

 

6. accountmanagerservice-> accountmanager

A system service that provides account, password, and authtoken management for all

Accounts on the device.

 

7. contentservice-> contentresolver

Content services are mainly services that provide solutions such as databases.

 

8. batteryservice

Monitors battery charging and status services. Intent is broadcast when the status changes.

 

9. hardwareservice

Generally, it is the service program of ring and vibrate.

 

10. sensorservice-> sensormanager

Manages the services of the sensor device, registers the client device, and activates the sensor when the client needs to use the sensor.

 

11. windowmanagerservice-> windowmanager-> phonewindowmanager

Highly bonded with activitymanagerservice

Window Management, the core here is the distribution and management of input events.

 

12. alarmmanagerservice-> alarmmanager

Alarm service program

 

13. Define thservice-> define thdevice

Bluetooth background management and service programs

 

14. statusbarservice-> statusbarmanager

It is responsible for the statusbar Standard update, animation, and other services with little service.

 

15. clipboardservice-> clipboardmanager

Similar to the clipboard service of other systems, it provides copy and paste capabilities.

 

16. inputmethodmanagerservice-> inputmethodmanager

The Management Service Program of the input method, including when to enable the input method, and switching the input method.

 

17. netstatservice

Mobile Network Service

 

18. connectivityservice-> connectivitymanager

The network connection status service can be queried by other applications. When the network status changes, it can also be broadcast and changed.

 

19. accessibilitymanagerservice-> accessibilitymanager

This may take a closer look. It mainly involves the distribution and management of click, focus, text changes, and other events, debugging and problem locating of the entire system, you also need to carefully view this service.

 

20. icationicationmanagerservice-> icationicationmanager

Responsible for managing and notifying the occurrence of background events. This is glued together with statusbar, and the response icon is usually added to statusbar. You can use this to know what happened in the system background.

 

21. mountservice

A service program for disk loading usually works with a Linux daemon program, such as vold/mountd, to listen for and broadcast device Mount/unmount/bad removal events.

 

22. devicestoragemonitorservice

Monitors disk space services. If the disk space is less than 10%, a warning is given to the user.

 

23. locationmanagerservice-> locationmanager

To join the GPS service, take a closer look at this part. Now the navigation in the application does not respond. You can start to look at it.

 

24. searchmanagerservice-> searchmanager

The search Manager Service handles the search UI, and maintains a registry of searchable activities.

 

25. checkin Service (fallbackcheckinservice)

It seems that checkin service is a package provided by Google, with no source code. The source code is fallbackcheckinservice.

 

26. wallpapermanagerservice-> wallpapermanager
Services that manage the desktop background and deeply customize the Desktop System, which need to be understood and expanded <compatibility at the same time>

 

27. audioservice-> audiomanager

The upper-Layer Management encapsulation of audioflinger mainly manages volume, sound effects, sound channels, and ringtones.

 

28. headsetobserver

Monitoring cycle of earphone plugging events

 

29. dockobserver

If there is a license in the system, when the mobile phone is installed or pulled out, it will have to be managed by him.

 

30. backupmanagerservice-> backupmanager

Backup Service

 

31. appwidgetservice-> appwidgetmanager

Android allows users to write programs on the desktop as Widgets. This is the interface for this process and service.

 

32. statusbarpolicy

Specifies the icon to display on the status bar.

 

 

Mediaserver service process

Mediaserver services are basically native services, and the mediaserver process is started in init. Rc. It is not a daemon process, which is easy to confuse. It is also a system service process similar to the systemserver process. It provides the location where the real service code of the RPC call of the application process runs. Its services are related to media recording and playback. There are three main services:

 

Audioflinger

Audio Recording and playback services, including sound mixing

 

Mediaplayerservice

The media playback service is provided. opencore is the core module of this module.

 

Cameraservice

Supports recording and preview functions of camera.

 

Audiopolicyservice

The main functions include checking the connection status of the input and output devices and switching the system's audio policy.

 

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.