diff options
author | Pawit Pornkitprasan <p.pawit@gmail.com> | 2014-11-28 20:24:02 +0700 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2015-12-14 14:49:03 -0800 |
commit | 39f4239dd85cf0dc8bc222b9656c098fb3b131d9 (patch) | |
tree | 8d75cee6d8143780701204f6c05a7700cf839b4c /packages | |
parent | a938a8479067699fd948a9792860a307756aa67f (diff) | |
download | frameworks_base-39f4239dd85cf0dc8bc222b9656c098fb3b131d9.zip frameworks_base-39f4239dd85cf0dc8bc222b9656c098fb3b131d9.tar.gz frameworks_base-39f4239dd85cf0dc8bc222b9656c098fb3b131d9.tar.bz2 |
KeyguardSimPinView: don't send dummy request to get remaining pin
I'm not sure of the behavior on QCOM RILs, but on Broadcom RIL
(and probably other RILs), this will eat into the user's PIN
remaining tries. Given that the user is only given ~3 tries, this
is a very bad idea.
In addition, if onAttachedToWindow is called multiple times before
the RIL replies, this can completely delete the retry quota leading
straight to the PUK screen.
Change-Id: I339f1b6d79d543ae8930a7bb95acf823fd5ae20e
Diffstat (limited to 'packages')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java index 1d10b57..4c08bb7 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java @@ -315,6 +315,8 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView { mSecurityMessageDisplay.setMessage(getPinPasswordErrorMessage( mRemainingAttempts, true), true); return; + } else { + mSecurityMessageDisplay.setMessage(R.string.kg_sim_pin_instructions, true); } int count = TelephonyManager.getDefault().getSimCount(); @@ -334,17 +336,6 @@ public class KeyguardSimPinView extends KeyguardPinBasedInputView { mSecurityMessageDisplay.setMessage(msg, true); mSimImageView.setImageTintList(ColorStateList.valueOf(color)); - new CheckSimPin("", mSubId) { - void onSimCheckResponse(final int result, final int attemptsRemaining) { - Log.d(LOG_TAG, "onSimCheckResponse " + " dummy One result" + result + - " attemptsRemaining=" + attemptsRemaining); - if (attemptsRemaining >= 0) { - mRemainingAttempts = attemptsRemaining; - mSecurityMessageDisplay.setMessage( - getPinPasswordErrorMessage(attemptsRemaining, true), true); - } - } - }.start(); } } |