Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76982c18 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Limit the accepted length of SIM PIN to 8 digits" am: 7547a245 am:...

Merge "Limit the accepted length of SIM PIN to 8 digits" am: 7547a245 am: 8b97661f am: 40987da8 am: 2d310318

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



Change-Id: Icf423e47a981aac91d0df79b7de168f1189f794f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 8bd97c09 2d310318
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -142,7 +142,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);