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

Commit 1e21e7fb authored by Rakesh Pallerla's avatar Rakesh Pallerla Committed by Steve Kondik
Browse files

Telephony: Modify code to check 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.

CRs-Fixed: 596207

Change-Id: I55dc9f0a701410d8405026e625a5f2a98a9f712c
parent a1f7f35a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4201,7 +4201,7 @@
    <!-- Message shown when the user enters an invalid SIM pin password in PUK screen -->
    <string name="kg_invalid_sim_pin_hint">Type a PIN that is 4 to 8 numbers.</string>
    <!-- Message shown when the user enters an invalid PUK code in the PUK screen -->
    <string name="kg_invalid_sim_puk_hint">PUK code should be 8 numbers or more.</string>
    <string name="kg_invalid_sim_puk_hint">PUK code should be 8 numbers.</string>
    <!-- Message shown when the user enters an invalid PUK code -->
    <string name="kg_invalid_puk">Re-enter the correct PUK code. Repeated attempts will permanently disable the SIM.</string>
      <!-- String shown in PUK screen when PIN codes don't match -->
+1 −1
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@ public class KeyguardSimPukView extends KeyguardAbsKeyInputView

    protected 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;
        }