diff options
author | John Wang <johnwang@google.com> | 2011-07-08 12:31:08 -0700 |
---|---|---|
committer | John Wang <johnwang@google.com> | 2011-07-14 11:46:24 -0700 |
commit | 98c3fcc7afe34966c3608ec9283794a177ed902b (patch) | |
tree | 10869cf6926c1e4af1906c7654f86bc63250ca57 | |
parent | 4821d3bdf8ce35408c6a10fe45c39a5e701ea8e2 (diff) | |
download | frameworks_base-98c3fcc7afe34966c3608ec9283794a177ed902b.zip frameworks_base-98c3fcc7afe34966c3608ec9283794a177ed902b.tar.gz frameworks_base-98c3fcc7afe34966c3608ec9283794a177ed902b.tar.bz2 |
Show SIM blocked after 10 time puk wrong entries.
After user enters 10 time wrong puk in puk unlock screen,
device need show the SIM permanently disabled message
is in lock screen.
bug:4905509
Change-Id: I06242834972b3f403cfe99a2edd8bae47d7ed474
-rw-r--r-- | policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java index cfd0d4f..abc3598 100644 --- a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java +++ b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java @@ -690,13 +690,11 @@ public class KeyguardViewMediator implements KeyguardViewCallback, switch (simState) { case ABSENT: - case PERM_DISABLED: // only force lock screen in case of missing sim if user hasn't // gone through setup wizard if (!mUpdateMonitor.isDeviceProvisioned()) { if (!isShowing()) { - if (DEBUG) Log.d(TAG, "INTENT_VALUE_ICC_ABSENT " - + "or PERM_DISABLED and keygaurd isn't showing," + if (DEBUG) Log.d(TAG, "ICC_ABSENT isn't showing," + " we need to show the keyguard since the " + "device isn't provisioned yet."); doKeyguard(); @@ -714,7 +712,17 @@ public class KeyguardViewMediator implements KeyguardViewCallback, } else { resetStateLocked(); } - + break; + case PERM_DISABLED: + if (!isShowing()) { + if (DEBUG) Log.d(TAG, "PERM_DISABLED and " + + "keygaurd isn't showing."); + doKeyguard(); + } else { + if (DEBUG) Log.d(TAG, "PERM_DISABLED, resetStateLocked to" + + "show permanently disabled message in lockscreen."); + resetStateLocked(); + } break; case READY: if (isShowing()) { |