Platform: Rockchip
OS: Android 6.0
Kernel: 3.10.92
onCreate -> SystemUIService.java
getApplication().startServicesIfNeeded -> //SystemUIApplication
SystemUIApplication -> SystemUIApplication.java
mServices[i].start() -> //SERVICES数组定义了运行的子服务列表,将会被依次启动
start -> SystemBars.java //这里只关注statusbar
new ServiceMonitor //mCallbacks是systemBars类,下面要用到
mServiceMonitor.start
mHandler.sendEmptyMessage -> ServiceMonitor.java //MSG_START_SERVICE
handleMessage ->
startService ->
OS: Android 6.0
Kernel: 3.10.92
startSystemUi -> SystemServer.java
context.startServiceAsUser -> //ComponentName: com.android.systemuionCreate -> SystemUIService.java
getApplication().startServicesIfNeeded -> //SystemUIApplication
SystemUIApplication -> SystemUIApplication.java
mServices[i].start() -> //SERVICES数组定义了运行的子服务列表,将会被依次启动
start -> SystemBars.java //这里只关注statusbar
new ServiceMonitor //mCallbacks是systemBars类,下面要用到
mServiceMonitor.start
mHandler.sendEmptyMessage -> ServiceMonitor.java //MSG_START_SERVICE
handleMessage ->
startService ->