Device asks for PUK code instead of SIM PIN

A PIN locked SIM card gets
"Incorrect SIM PIN code. Enter PUK code..".

The value of mRemainingAttempts is always 0,
so the actual remaining PIN attempts times was not queried
in KeyguardSimPinViewController#showDefaultMessage.

Test: Manual
Bug: TBA
Change-Id: Ib4dd6be15a96b33a4d5e65c25d9589a0bae639d0
This commit is contained in:
Parthasarathy Tarun
2021-10-01 11:34:18 +05:30
committed by Mattias Nilsson
parent b931d69bd2
commit dfe767023e

View File

@@ -52,7 +52,7 @@ public class KeyguardSimPinViewController
private ProgressDialog mSimUnlockProgressDialog;
private CheckSimPin mCheckSimPinThread;
private int mRemainingAttempts;
private int mRemainingAttempts = -1;
// Below flag is set to true during power-up or when a new SIM card inserted on device.
// When this is true and when SIM card is PIN locked state, on PIN lock screen, message would
// be displayed to inform user about the number of remaining PIN attempts left.