From b8b7bd3185d5cf6c266ee40e74b515f526e18761 Mon Sep 17 00:00:00 2001 From: Rakesh Pallerla Date: Wed, 8 Jan 2014 15:49:34 +0530 Subject: Telephony: Modify code to check that PUK code length is always 8. As per 3GPP TS 31.101 Release 11 section 9.6, the number of digits for UNBLOCK PIN (PUK) is always 8. Change-Id: I4ea69fd8e2e8e96330d10a67b2d1f5a1859c1016 --- packages/Keyguard/src/com/android/keyguard/KeyguardSimPukView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/Keyguard') diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardSimPukView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardSimPukView.java index 6e9e83e..d882eca 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardSimPukView.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardSimPukView.java @@ -274,7 +274,7 @@ public class KeyguardSimPukView extends KeyguardAbsKeyInputView private boolean checkPuk() { // make sure the puk is at least 8 digits long. - if (mPasswordEntry.getText().length() >= 8) { + if (mPasswordEntry.getText().length() == 8) { mPukText = mPasswordEntry.getText().toString(); return true; } -- cgit v1.1