Initialize device locked state during boot

Bug: 28682128
Change-Id: I4d56d6935b5f122b5eb8c33cfdb6e21f9c71807e
(cherry picked from commit 91df2a912af717176f5b6238741071222d60d5c7)
This commit is contained in:
Xiaohui Chen
2016-05-19 16:39:09 -07:00
parent be90f43e2c
commit 605733b09a

View File

@@ -159,6 +159,7 @@ public class TrustManagerService extends SystemService {
} else if (phase == SystemService.PHASE_THIRD_PARTY_APPS_CAN_START) {
mTrustAgentsCanRun = true;
refreshAgentList(UserHandle.USER_ALL);
refreshDeviceLockedForUser(UserHandle.USER_ALL);
} else if (phase == SystemService.PHASE_BOOT_COMPLETED) {
maybeEnableFactoryTrustAgents(mLockPatternUtils, UserHandle.USER_SYSTEM);
}