Skip to content

Commit 5017f23

Browse files
committed
Call systemReady on the lock settings before doing so on the window manager
At systemReady time, the window manager needs to obtain values from the lock settings service (e.g. whether the lock screen is disabled). During the initial boot of a wiped device, the window manager was getting the wrong values because LockSettingsService.systemReady/migrateOldData had not yet been called. Change-Id: I60825d0e4fad53a5b4349dabf9e5e299b863d0d0 (cherry pick of 2458abaf6676d5015af733c1010ecd67a085e9e2 from jb-aah-dev)
1 parent 86d0938 commit 5017f23

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,12 @@ public void run() {
701701
}
702702
}
703703

704+
try {
705+
lockSettings.systemReady();
706+
} catch (Throwable e) {
707+
reportWtf("making Lock Settings Service ready", e);
708+
}
709+
704710
try {
705711
wm.systemReady();
706712
} catch (Throwable e) {
@@ -726,11 +732,6 @@ public void run() {
726732
} catch (Throwable e) {
727733
reportWtf("making Package Manager Service ready", e);
728734
}
729-
try {
730-
lockSettings.systemReady();
731-
} catch (Throwable e) {
732-
reportWtf("making Lock Settings Service ready", e);
733-
}
734735

735736
// These are needed to propagate to the runnable below.
736737
final Context contextF = context;

0 commit comments

Comments
 (0)