History log of /frameworks/base/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityModel.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4b267dfe12c79c7b67bac57111a6a83c3b4ba9d0 12-Oct-2017 Pengquan Meng <mpq@google.com> MSIM: Fix to show PUK view when two sims locked on PIN.

Currently when both sims are locked on PIN, upon exhausting
PIN attempts for SIM1 PIN, SIM1 PUK view is not displayed
and the user is not able to unlock the PUK.

This is due to while fetching the getSecurityMode in Key
-GuardSecurityModel, the ordering of checking the security
mode is PIN first and PUK later.So when one sim is locked
on PUK and the other is locked on PIN the ordering of checking
the PIN first is causing to return PIN as security mode in place
of PUK. This will lead to PUK lock screen not been shown to user.

Fix: In KeyGuardSecurityModel.java, while querying the security Mode
modify the order to check for security mode i.e PUK locked state first
and then PIN locked state.

In KeyGuardSimPinView and KeyGuardSimPukView, check for sim locked on
PIN and reset the flags to show the default message.

Test: manually test
Bug: 34796244

Change-Id: I157959d9eb313b9d3af84f86e1429448a0f7f065
/frameworks/base/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityModel.java
23f85ec14dab49b2c525dc266d2a1f74f7f9d07c 31-Jan-2017 Jason Monk <jmonk@google.com> Move Keyguard to SystemUI

Test: make
Change-Id: I3abb67e2b022737d2aa0226bb07f3966ad68fff7
/frameworks/base/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityModel.java