当前位置:   article > 正文

【IVI】12. Android Automotive OS 启动详解-CarLauncher篇_android 12 carlauncher

android 12 carlauncher

1.AMS启动Home Activity

在SystemServer启动时,在进入PHASE_ACTIVITY_MANAGER_READY阶段,该阶段会告诉ActivityManager可以启动三方代码。并进行相关的初始化。

frameworks/base/services/java/com/android/server/SystemServer.java

{

…...

mActivityManagerService.systemReady(() -> {//ams调用systemReady()进行初始化

Slog.i(TAG, "Making services ready");

traceBeginAndSlog("StartActivityManagerReadyPhase");

mSystemServiceManager.startBootPhase(

SystemService.PHASE_ACTIVITY_MANAGER_READY);//设置系统启动阶段550.

traceEnd();

……

}

frameworks/base/services/core/java/com/android/server/am/ActivityManagerService.java

public void systemReady(final Runnable goingCallback, TimingsTraceLog traceLog) {

traceLog.traceBegin("PhaseActivityManagerReady");

synchronized(this) {

if (mSystemReady) {

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/770996
推荐阅读
相关标签
  

闽ICP备14008679号