Avoid wrongly reported SIM PIN mismatch.
(At least) Qualcomm RILs report SIM unlock success as result=0, attemptsRemaining=0. As reportSimUnlocked() causes showDefaultMessage() to be called (via reportSimUnlocked -> handleSimStateChange -> onSimStateChanged -> resetState -> showDefaultMessage), which accesses mRemainingAttempts to determine the message to show, set mRemainingAttempts before calling reportSimUnlocked(). This resets that code sequence back to AOSP; it got broken in commit 18281968. Change-Id: Icf7b15f1bf55bb32c8b58bd6c77109971cbc463b
Loading
Please register or sign in to comment