android12-release
SystemServer.run() - startOtherServices - startSystemUi - context.startServiceAsUser - windowManager.onSystemUiStarted()
frameworks/base/core/res/res/values/config.xml
com.android.systemui/com.android.systemui.SystemUIService
启动服务SystemUIService,运行在进程com.android.systemui
context.startServiceAsUser - SystemUIService.onCreate() - getApplication()).startServicesIfNeeded()
SystemUI服务要启动的类frameworks/base/packages/SystemUI/res/values/config.xml:config_systemUIServiceComponents
- com.android.systemui.util.NotificationChannels
- com.android.systemui.keyguard.KeyguardViewMediator
- com.android.systemui.recents.Recents
- com.android.systemui.volume.VolumeUI
- com.android.systemui.statusbar.phone.StatusBar
- com.android.systemui.usb.StorageNotification
- com.android.systemui.power.PowerUI
- com.android.systemui.media.RingtonePlayer
- com.android.systemui.keyboard.KeyboardUI
- com.android.systemui.shortcut.ShortcutKeyDispatcher
- @string/config_systemUIVendorServiceComponent
- com.android.systemui.util.leak.GarbageMonitor$Service
- com.android.systemui.LatencyTester
- com.android.systemui.globalactions.GlobalActionsComponent
- com.android.systemui.ScreenDecorations
- com.android.systemui.biometrics.AuthController
- com.android.systemui.SliceBroadcastRelayHandler
- com.android.systemui.statusbar.notification.InstantAppNotifier
- com.android.systemui.theme.ThemeOverlayController
- com.android.systemui.accessibility.WindowMagnification
- com.android.systemui.accessibility.SystemActions
- com.android.systemui.toast.ToastUI
- com.android.systemui.wmshell.WMShell
例如com.android.systemui.statusbar.phone.StatusBar
startServicesIfNeeded - new StatusBar - StatusBar.start()
start():
createAndAddWindows(result) 添加状态栏setUpPresenter() 设置初始通知状态NotificationsController.initializestartKeyguard()… … 流程图



