Improve UI for PIN2/PUK2 authentication on FDN setting
Add the following improvements.
1. Show remaining number of PIN2 attempts when user fails to
add/edit/remove FDN contact.
2. Show a dialog prompting user to enter PUK2 when PIN2 is locked
3. Show PUK2 locked dialog when PUK2 is locked
4. Update FDN enable/disable setting after PIN2 is unlocked.
If user tries to toggle the FDN setting and the PIN2 is locked by
three incorrect PIN2 entries, user needs to enter a new PIN2 to
unlock. To avoid continuous PIN2 entry for enabling/disabling FDN,
update to the FDN setting that user tried to set after PIN2 unlock.
Test: manual
Bug: 141904521
Change-Id: Icd1db36d735bf968a594c8956ab173e723b1b214
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 46eaaaf..88d2f1a 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1132,6 +1132,8 @@
<string name="puk2_blocked">PUK2 is permanently blocked.</string>
<!-- SIM PIN2 screen: error message -->
<string name="pin2_attempts">\nYou have <xliff:g id="number">%d</xliff:g> remaining attempts.</string>
+ <!-- SIM PIN2 screen: error message displayed in a dialog -->
+ <string name="puk2_locked">PUK2 locked. Contact service provider to unlock.</string>
<!-- SIM PIN screen: status message displayed in a popup (toast) -->
<string name="pin2_unblocked">PIN2 no longer blocked</string>
<!-- SIM PIN screen: error message shown in dialog when there is a network or sim error.