Services in Android

Source: Internet
Author: User

First of all, thank black tea seniors:

Http://my.oschina.net/youranhongcha


Nonsense only say one: Android Aosp source is huge, is a prairie, to happy, please see the direction, this article is a direction

(I do not write long text, nor too much, may introduce unclear, and then so, to understand the people to see)


Since Android is divided into the C world and the Java World, then the service is also introduced from these two aspects:

    1. The C World Service is called a local service . (Service Manager service is exceptional)

    2. The Java World Service (which is zygote, no, should say that the service initialized in Systemserver) is called a top-level service (or framework service)

Of course you can also call other names, but I think this is very good to distinguish, so called. (One of the four components of the service is actually the framework layer to binder encapsulation, also called service, but not this upper layer service, you can call it " user-Customizable service ")


One, Local Service: (Init process parsing init.rc running services) (for example, I am most familiar with the INSTALLD)

of the core type (type is recorded in the Init.rc service is marked)

Service Name Perform file location in phone Description
Ueventd /sbin/ueventd--> /init Create a run-time catalog, device node
Healthd /sbin/healthd
Console /system/bin/sh
adbd /sbin/adbd
ServiceManager /system/bin/servicemanager /system/bin There's a lot of services down there.


Vold, logd or something.


Main type Service

Service Name Executable file path Description
Netd /system/bin/netd
Debuggerd /system/bin/debuggerd
Ril-daemon /system/bin/rild
Surfaceflinger /system/bin/surfaceflinger
Zygote /system/bin/app_process Create a service for the app app process
Installd /system/bin/installd

Add one: Keystore/system/bin/keystore


Second, upper-level services (services initialized in the system server process, or services registered in Service Manager)

(especially important, core, I use the heavier logo)

This part of the introduction, organized from: http://blog.csdn.net/zhgxhuaa/article/details/24835065

1.AccountManagerService

The Android account service provides centralized management of accounts, passwords, and authorizations.

2.AccessibilityManagerService

The auxiliary management program intercepts all user input and gives the user some additional feedback based on these inputs, playing an auxiliary effect, view click, Focus and other event distribution management services.

3.Activitymanagerservice

Android Framework Core Services, managing the core implementations of tasks, process management, intent parsing, etc. throughout the framework, and managing the life cycle of the four major builds.

4.AlarmManagerService

Features such as alarms and timers are provided.

5.AppWidgetService

Management and related services for widgets in Android

6.AssetAtlasService

Responsible for assembling preloaded bitmap into texture maps, resulting in texture maps that can be used across processes to reduce memory.

7.AudioService

Audioflinger's upper management package is mainly for the management of volume, sound, channel and ringtones.

8.BackupManagerService

Backup service.

9.BatteryService

Responsible for monitoring the battery charge status, battery power, voltage, temperature and other information, when the battery information changes, there is a broadcast notification other relationships battery information processes and services.

10.BluetoothManagerService

Responsible for Bluetooth background management and service.

11.ClipboardService

The Clipboard service.

12.CommonTimeManagementService

Manage the configuration of the local common time service and reconfigure the local service when the network configuration changes.

13.ConnectivityService

Network Connection Status Service.

14.ContentService

Content services, mainly the database and other services to provide solutions.

15.ConsumerIrService

Remote control, control of peripheral devices (e.g. TV, etc.) via infrared

16.CountryDetectorService

Detect User Country

17.DevicePolicyManagerService

Provides some system-level settings and properties

18.DiskStatsService

Disk Statistics Service for Dumpsys use

19.DisplayManagerService

Used to manage the global display lifecycle, determine how logical displays are configured on connected physical devices, and notify changes to system and application state.

20.DreamManagerService

Screen saver.

21.DropBoxManagerService

Used for system runtime log storage in management.

22.IdleMaintenanceService

Used to observe device status and perform maintenance tasks when the device is idle. This ensures a user's experience by putting some more time-consuming and expensive tasks into execution when the device is idle.

23.InputManagerService

Previously in Windowmanagerservice, the user handles event distribution, now independently.

24.InputMethodManagerService

Input Method service, open and close IME.

25.LightsService

Light sensing sensor service.

26.LocationManagerService

Location services, GPS, positioning and so on.

27.LockSettingsService

and lock screen interface in the input password, gesture and other security functions. You can save the relevant lock screen information for each user.

28.WallpaperManagerService

Wallpaper Management Services.

29.MountService

Disk Loading service program, generally with a Linux daemon program such as VOLD/MOUNTD and other cooperation functions, mainly responsible for monitoring and broadcast device Mount/unmount/badremoval and so on events.

30.NetworkManagementService

Network management Services. The ANDROID system network connection and management services are serviced by four systems Connectivityservice, Networkpolicymanagerservice, Networkmanagementservice, Networkstatsservice together to complete network connectivity and management functions. Connectivityservice, Networkpolicymanagerservice, Networkstatsservice Three services access networkmanagementservice services across processes through the Inetworkmanagementservice interface, enabling interaction and information reading with network interfaces.

31.NetworkPolicyManagerService

Maintain network usage policies.

32.NetworkStatsService

Network statistics related.

33.NetworkTimeUpdateService

Monitor network time to update local time when network time changes.

34.NotificationManagerService

Notification Service.

35.NsdService

Web Service Search

Packagemanagerservice .

Android Framework Core Services for APK parsing, permission validation, installation, and more.

37.PrintManagerService

Print Service.

38.PowerManagerService

Power Management Services.

39.RecognitionManagerService

Identification related.

40.SamplingProfilerService

Used for time-consuming statistics, etc.

41.SearchManagerService

Search service.

42.SchedulingPolicyService

Scheduling policy.

43.SerialService

Operation of the serial port device

44.StatusBarManagerService

Status bar.

45.TelephonyRegistry

Provide phone registration, management services, you can get the link status of the phone, signal strength and so on.

46.TextServicesManagerService

Text services, such as text checking.

47.TwilightService

Indicates whether the user's current location is night, and is uimodemanager to adjust the night mode.

48.UiModeManagerService

Manage your current Android device's Night mode and driving mode.

49.UsbService

USB host and Device management services.

50.VibratorService

Vibrator Service.

51.wifip2pservice

Wifi Direct service.

52.WifiService

WiFi service.

Windowmanagerservice .

Android Framework Core Services, window management services.

54.WiredAccessoryManager

Monitor the headset on your phone and cradle.


Add one:

Fingerprintmanagerservice provides fingerprint-related services (authenticate Ah, enroll Ah, etc.)


I study time is, first pinch a PMS, engage in the half-dead, not, die.

Later, with AMS and WMS, recently the department has been attacking the FMS (fingerprint service) while predicting.

At the moment, once a service is taken down, the back is a lot more handy. (Just like knowing the binder mechanism and discovering that the Android system is no longer playing tricks.)

But there are exceptions, such as AMS and WMS lingering, so far I am fascinated, like FMS is OK.

F.y.i.


Merlin

2015/9/29

Services in Android

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.