* commit '94e8471a956d46f4fae3da2b1e79862e07209efa': Fix issue #5405788: Device continuously opening and closing...
This commit is contained in:
@@ -165,6 +165,11 @@ class ServerThread extends Thread {
|
||||
pm = PackageManagerService.main(context,
|
||||
factoryTest != SystemServer.FACTORY_TEST_OFF,
|
||||
onlyCore);
|
||||
boolean firstBoot = false;
|
||||
try {
|
||||
firstBoot = pm.isFirstBoot();
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
|
||||
ActivityManagerService.setSystemProcess();
|
||||
|
||||
@@ -210,7 +215,8 @@ class ServerThread extends Thread {
|
||||
|
||||
Slog.i(TAG, "Window Manager");
|
||||
wm = WindowManagerService.main(context, power,
|
||||
factoryTest != SystemServer.FACTORY_TEST_LOW_LEVEL);
|
||||
factoryTest != SystemServer.FACTORY_TEST_LOW_LEVEL,
|
||||
!firstBoot);
|
||||
ServiceManager.addService(Context.WINDOW_SERVICE, wm);
|
||||
|
||||
ActivityManagerService.self().setWindowManager(wm);
|
||||
|
||||
Reference in New Issue
Block a user