1. Shield FallbackHome startup pop-up window
Problem scenario: After removing the lock screen KeyGuard service in the Android system customization, before the system starts up and enters the Launcher, there will be a window popping up while the phone is starting. This part mainly involves FallbackHome in Settings. The solution is as follows:
2. Extended boot animation
Code path: framework/services/core/java/com/android/server/wm/WindowManagerService.java
//注释掉关闭开机动画这段代码
/* if (!mBootAnimationStopped) {
Trace.asyncTraceBegin(TRACE_TAG_WINDOW_MANAGER, "Stop bootanim", 0);
// stop boot animation
// formerly we would just kill the process, but we now ask it to exit so it
// can choose where to stop the animation.
SystemProperties.set("service.bootanim.exit", "1");
mBootAnimationStopped = true;
}
if (!mForceDisplayEnabled && !checkBootAnimationCompleteLocked()) {
if (DEBUG_BOOT) Slog.i(TAG_WM, "performEnableScreen: Waiting for anim complete");
return;
}
try {
IBinder surfaceFlinger &