Merge "Limit the accepted length of SIM PIN to 8 digits" am: 7547a2454d am: 8b97661f1f am: 40987da89f

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/188723

Change-Id: I3dee96de9e4ca626ba5591bc59c47b0daf3886dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2022-08-09 17:49:05 +00:00
committed by Automerger Merge Worker

View File

@@ -140,7 +140,9 @@ public class KeyguardSimPinViewController
protected void verifyPasswordAndUnlock() {
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.
mMessageAreaController.setMessage(
com.android.systemui.R.string.kg_invalid_sim_pin_hint);