aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/android/internal/telephony/CommandsInterface.java
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2013-10-24 16:56:09 -0700
committerWink Saville <wink@google.com>2013-10-24 16:56:09 -0700
commit3522c54a64f577f2b657a775dae9b4eb2d8003d5 (patch)
treee730ed31bd16d5fffb4b56c5b73712134cefe6bf /src/java/com/android/internal/telephony/CommandsInterface.java
parent755e85a84a1bc8d243e45b8e237d0f79ebd7bd89 (diff)
downloadandroid_frameworks_opt_telephony-3522c54a64f577f2b657a775dae9b4eb2d8003d5.tar.gz
android_frameworks_opt_telephony-3522c54a64f577f2b657a775dae9b4eb2d8003d5.tar.bz2
android_frameworks_opt_telephony-3522c54a64f577f2b657a775dae9b4eb2d8003d5.zip
Few PIN/PUK fixes
Following changes have been made as part of this: -> Changes done to display retry counter on wrong entry of PIN1,and message to indicate Code accepted/PIN1 blocked during PIN1 verification as per certain carrier requirements. -> The current APIs that are used to verify the PIN and PUK only convey whether the operation succeeded or failed. As a result on ANY failure clients ask the user to re-enter the PIN. Add 2 new APIs that report the actual error code and returns the number of attempts remaing in case of failure. -> FDN Service state was derived based on the state of PIN2. Update the state of FDN service based on the FACILTY_LOCK messages instead. -> Change the default value of function getIccLockEnabled to false. When sim is deactivated/absent & user navigates to Settings->Security->Set up SIM/RUIM card lock, checkbox for "Lock Sim Card" option should be unchecked by default. -> PIN1 can be changed only after enabling SIM lock. RIL returns REQUEST_NOT_SUPPORTED error if user tries to change PIN1 without enabling SIM lock. Handle the error and display appropriate message when trying to change PIN1 using MMI code. -> Added MMI support for change PIN1/PIN2 and unblocking PIN2 Bug: 9928717 Change-Id: I73718c9e6a8aa7244097e0dd4593a6226ff0ac08
Diffstat (limited to 'src/java/com/android/internal/telephony/CommandsInterface.java')
-rw-r--r--src/java/com/android/internal/telephony/CommandsInterface.java26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/java/com/android/internal/telephony/CommandsInterface.java b/src/java/com/android/internal/telephony/CommandsInterface.java
index 670d9766a..a83a6c36d 100644
--- a/src/java/com/android/internal/telephony/CommandsInterface.java
+++ b/src/java/com/android/internal/telephony/CommandsInterface.java
@@ -574,6 +574,9 @@ public interface CommandsInterface {
* This exception is CommandException with an error of PASSWORD_INCORRECT
* if the password is incorrect
*
+ * ar.result is an optional array of integers where the first entry
+ * is the number of attempts remaining before the ICC will be PUK locked.
+ *
* ar.exception and ar.result are null on success
*/
@@ -590,6 +593,9 @@ public interface CommandsInterface {
* This exception is CommandException with an error of PASSWORD_INCORRECT
* if the password is incorrect
*
+ * ar.result is an optional array of integers where the first entry
+ * is the number of attempts remaining before the ICC will be PUK locked.
+ *
* ar.exception and ar.result are null on success
*/
@@ -604,6 +610,9 @@ public interface CommandsInterface {
* This exception is CommandException with an error of PASSWORD_INCORRECT
* if the password is incorrect
*
+ * ar.result is an optional array of integers where the first entry
+ * is the number of attempts remaining before the ICC is permanently disabled.
+ *
* ar.exception and ar.result are null on success
*/
@@ -614,12 +623,14 @@ public interface CommandsInterface {
*
* AID (Application ID), See ETSI 102.221 8.1 and 101.220 4
*
- * returned message
* retMsg.obj = AsyncResult ar
* ar.exception carries exception on failure
* This exception is CommandException with an error of PASSWORD_INCORRECT
* if the password is incorrect
*
+ * ar.result is an optional array of integers where the first entry
+ * is the number of attempts remaining before the ICC is permanently disabled.
+ *
* ar.exception and ar.result are null on success
*/
@@ -636,6 +647,9 @@ public interface CommandsInterface {
* This exception is CommandException with an error of PASSWORD_INCORRECT
* if the password is incorrect
*
+ * ar.result is an optional array of integers where the first entry
+ * is the number of attempts remaining before the ICC will be PUK locked.
+ *
* ar.exception and ar.result are null on success
*/
@@ -654,6 +668,9 @@ public interface CommandsInterface {
* This exception is CommandException with an error of PASSWORD_INCORRECT
* if the password is incorrect
*
+ * ar.result is an optional array of integers where the first entry
+ * is the number of attempts remaining before the ICC will be PUK locked.
+ *
* ar.exception and ar.result are null on success
*/
@@ -670,6 +687,9 @@ public interface CommandsInterface {
* This exception is CommandException with an error of PASSWORD_INCORRECT
* if the password is incorrect
*
+ * ar.result is an optional array of integers where the first entry
+ * is the number of attempts remaining before the ICC is permanently disabled.
+ *
* ar.exception and ar.result are null on success
*/
@@ -688,11 +708,15 @@ public interface CommandsInterface {
* This exception is CommandException with an error of PASSWORD_INCORRECT
* if the password is incorrect
*
+ * ar.result is an optional array of integers where the first entry
+ * is the number of attempts remaining before the ICC is permanently disabled.
+ *
* ar.exception and ar.result are null on success
*/
void supplyIccPuk2ForApp(String puk2, String newPin2, String aid, Message result);
+ // TODO: Add java doc and indicate that msg.arg1 contains the number of attempts remaining.
void changeIccPin(String oldPin, String newPin, Message result);
void changeIccPinForApp(String oldPin, String newPin, String aidPtr, Message result);
void changeIccPin2(String oldPin2, String newPin2, Message result);