Merge "Limit the accepted length of SIM PIN to 8 digits"
This commit is contained in:
@@ -134,7 +134,9 @@ public class KeyguardSimPinViewController
|
|||||||
protected void verifyPasswordAndUnlock() {
|
protected void verifyPasswordAndUnlock() {
|
||||||
String entry = mPasswordEntry.getText();
|
String entry = mPasswordEntry.getText();
|
||||||
|
|
||||||
if (entry.length() < 4) {
|
// A SIM PIN is 4 to 8 decimal digits according to
|
||||||
|
// GSM 02.17 version 5.0.1, Section 5.6 PIN Management
|
||||||
|
if ((entry.length() < 4) || (entry.length() > 8)) {
|
||||||
// otherwise, display a message to the user, and don't submit.
|
// otherwise, display a message to the user, and don't submit.
|
||||||
mMessageAreaController.setMessage(
|
mMessageAreaController.setMessage(
|
||||||
com.android.systemui.R.string.kg_invalid_sim_pin_hint);
|
com.android.systemui.R.string.kg_invalid_sim_pin_hint);
|
||||||
|
|||||||
Reference in New Issue
Block a user