最終更新:2017-03-28 (火) 15:28:18 (2949d)
Android/システムサービス
https://source.android.com/devices/index.html
概要
- Functionality exposed by application framework APIs communicates with system services to access the underlying hardware.
- Services are modular, focused components such as Window Manager, Search Service, or Notification Manager.
- Android includes two groups of services: system (services such as Window Manager and Notification Manager) and media (services involved in playing and recording media).
種類
Android/システムサーバ
- Search Service
- Activity Manager
- Window Managerとかいろいろ
mediaserverとか(Android 7.0で分割)
- C++で実装
- SurfaceFlinger - これだけシステムサーバプロセス
- AudioFlinger
- カメラ
- メディアプレーヤー
Context.getSystemServiceで取得
- android.view.accessibility.AccessibilityManager?
- android.accounts.AccountManager?
- android.app.ActivityManager
- android.app.AlarmManager?
- android.media.AudioManager
- android.content.ClipboardManager?
- android.net.ConnectivityManager?
- android.app.admin.DevicePolicyManager
- android.app.DownloadManager?
- android.os.DropBoxManager?
- android.view.inputmethod.InputMethodManager
- android.hardware.input.InputManager
- android.app.KeyguardManager?
- android.view.LayoutInflater
- android.location.LocationManager
- android.media.MediaRouter
- android.nfc.NfcManager?
- android.app.NotificationManager
- android.net.nsd.NsdManager?
- android.os.PowerManager
- android.app.SearchManager?
- android.hardware.SensorManager?
- android.os.storage.StorageManager?
- android.telephony.TelephonyManager?
- android.view.textservice.TextServicesManager?
- android.app.UiModeManager?
- android.hardware.usb.UsbManager
- android.os.Vibrator?
- com.android.server.WallpaperService?
- android.net.wifi.p2p.WifiP2pManager?
- android.net.wifi.WifiManager
- android.view.WindowManager
Android/起動プロセス
- SystemServer (AOSP/frameworks/base/services/java/com/android/server/SystemServer.java)から起動される
- ServiceManagerでaddService
Android 5.0
- run
SystemServer.startBootstrapServices?();
- ActivityManagerService
- PowerManagerService?
- PackageManagerService?
- UserManagerService?
SystemServer.startCoreServices?();
SystemServer.startOtherServices();
- SchedulingPolicyService?
- TelephonyRegistry?
- EntropyMixer?
- AccountManagerService?
- ContentService?
- VibratorService?
- ConsumerIrService?
- AlarmManagerService?
- Watchdog?
- InputManagerService
- WindowManagerService
- DisplayManagerService?
- BluetoothManagerService?
- InputMethodManagerService?
- AccessibilityManagerService?
- MountService?
- LockSettingsService?
- PersistentDataBlockService?
- DevicePolicyManagerService?
- StatusBarManagerService?
- ClipboardService?
- NetworkManagementService?
- TextServicesManagerService?
- NetworkScoreService?
- NetworkStatsService?
- NetworkPolicyManagerService?
- WIFI_P2P_SERVICE_CLASS?
- WIFI_SERVICE_CLASS?
- com.android.server.wifi.WifiScanningService?
- com.android.server.wifi.RttService?
- ETHERNET_SERVICE_CLASS?
- ConnectivityService?
- NsdService?
- UpdateLockService?
- NotificationManagerService?
- DeviceStorageMonitorService?
- LocationManagerService?
- CountryDetectorService?
- SearchManagerService?
- DropBoxManagerService?
- WallpaperManagerService?
- AudioService?
- DockObserver?
- WiredAccessoryManager?
- USB_SERVICE_CLASS
- SerialService?
- TwilightService?
- UiModeManagerService?
- JobSchedulerService?
- BACKUP_MANAGER_SERVICE_CLASS?
- APPWIDGET_SERVICE_CLASS?
- VOICE_RECOGNITION_MANAGER_SERVICE_CLASS?
- DiskStatsService?
- SamplingProfilerService?
- NetworkTimeUpdateService?
- CommonTimeManagementService?
- CertBlacklister?
- DreamManagerService?
- AssetAtlasService?
- PRINT_MANAGER_SERVICE_CLASS?
- RestrictionsManagerService?
- MediaSessionService?
- HdmiControlService?
- TvInputManagerService?
- MediaRouterService?
- TrustManagerService?
- FingerprintService?
- BackgroundDexOptService?
- LauncherAppsService?
- MediaProjectionManagerService?
- MmsServiceBroker?
~Android 4.4
起動順 (ServerThread.initAndLoop())
- EntropyService?
- PowerManagerService?
- TelephonyRegistry?
- PackageManagerService?
- ActivityManagerService
- AccountManagerService?
- LightsService?
- BatteryService?
- VibratorService?
- AlarmManagerService?
- ActivityManagerService
- WindowManagerService
- BluetoothService?
- BluetoothA2dpService?
- InputMethodManagerService?
- AccessibilityManagerService?
- DevicePolicyManagerService?
- StatusBarManagerService?
- ClipboardService?
- NetworkManagementService?
- TextServicesManagerService?
- NetworkStatsService?
- NetworkPolicyManagerService?
- WifiP2pService?
- WifiService?
- EthernetService?
- ConnectivityService?
- ThrottleService?
- MountService?
- NotificationManagerService?
- DeviceStorageMonitorService?
- LocationManagerService?
- CountryDetectorService?
- SearchManagerService?
- DropBoxManagerService?
- WallpaperManagerService?
- AudioService?
- UsbService?
- UiModeManagerService?
- BackupManagerService?
- AppWidgetService?
- RecognitionManagerService?
- DiskStatsService?
- SamplingProfilerService?
- NetworkTimeUpdateService?
- SystemUIService
ソースコード
Android 5.0
- AOSP/frameworks/base/services/java/com/android/server/SystemServer.java
- AOSP/frameworks/base/services/core/java/com/android/server
- AOSP/frameworks/base/services/core/jni