开机以后,设备会有一个android is starting 的弹框,该界面就是FallbackHome。
FallbackHome机制是为了在系统还没有解锁前 先进入Setting中的android正在启动弹窗 的页面等系统完全解锁后 然后进入默认Launcher 但是弹窗也会影响产品效果 所以最后去掉这个弹窗 不显示在桌面壁纸,直接进入Launcher。
- 延长开机动画 在解锁后直接进去Launcher
在WindowManagerService.java中,注释掉退出开机动画的逻辑,延时开机动画 路径:frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java private void performEnableScreen() { synchronized (mGlobalLock) { if (DEBUG_BOOT) Slog.i(TAG_WM, "performEnableScreen: mDisplayEnabled=" + mDisplayEnabled + " mForceDisplayEnabled=" + mForceDisplayEnabled + " mShowingBootMessages=" + mShowingBootMessages + " mSystemBooted=" + mSystemBooted + " mOnlyCore=" + mOnlyCore, new RuntimeException("here").fillInStackTrace()); if (mDisplayEnabled) { return; } if (!mSystemBooted && !mShowingBootMessages) { return; } if (!mShowingBootMessages && !mPolicy.canDismissBootAnimation()) { return; } // Don't enable the screen until all existing windows have been drawn. if (!mForceDisplayEnabled // TODO(multidisplay): Expand to all displays? && getDefau