最近有这么个需求。android 8.0上锁屏解锁后,界面会先模糊一下,然后再清晰,如设置界面等等,需要去掉这个功能。
修改功能的地方比较难找。
具体代码路径:
\LINUX\android\frameworks\base\services\core\java\com\android\server\wm\AppWindowContainerController.java
我尝试过,只要将scheduleAddStartingWindow方法注释就能去掉这个功能。
void scheduleAddStartingWindow() {
// Note: we really want to do sendMessageAtFrontOfQueue() because we
// want to process the message ASAP, before any other queued
// messages.
if (DEBUG_STARTING_WINDOW) Slog.v(TAG_WM, "Enqueueing ADD_STARTING");
mService.mAnimationHandler.postAtFrontOfQueue(mAddStartingWindow);
}
private boolean createSnapshot(TaskSnapshot snapshot) {
if (snapshot == null) {
return false;
}
if (DEBUG_STARTING_WINDOW) Slog.v(TAG_WM, "Creating SnapshotStartingData");
mContainer.startingData = new SnapshotStartingData(mService, snapshot);
//scheduleAddStartingWindow();
return true;
}