OSDN Git Service

Remove PIN/PUK keyguard when SIM is removed/ready
authorBrad Ebinger <breadley@google.com>
Mon, 21 Aug 2017 21:58:52 +0000 (14:58 -0700)
committerBrad Ebinger <breadley@google.com>
Thu, 24 Aug 2017 22:44:28 +0000 (22:44 +0000)
commit22ed1f9a3558129d1bd8b1788c9d8b374cd0a84a
tree803e190188a4e25868d47af828b39eddcd903620
parentd3428e9a3b80b6c2f7e0b866c72d15d107fe2a9b
Remove PIN/PUK keyguard when SIM is removed/ready

1) If the PIN/PUK keyguard comes up for a locked
SIM, it can not be removed by removing the
affected SIM. It can only be removed by
rebooting the device or entering a bogus PIN.

This change automatically clears the keyguard
when when the locked SIM is removed. It will
be shown again if the locked SIM is re-entered.

2) If the device is PUK locked and the code
**05*PUK*new pin* new Pin# is entered in the
emergency dialer, it will unlock the SIM.
By listening to the READY state, we can remove
the keyguard when the SIM is unlocked by
other means.

Bug: 64469515
Bug: 64044132
Test: Manual
Change-Id: I9507f80edcd4c04dfa0cc3b48a25e619aafa9eb3
packages/SystemUI/src/com/android/keyguard/KeyguardSimPinView.java
packages/SystemUI/src/com/android/keyguard/KeyguardSimPukView.java