From 98c7781ca89348992e3cb455e83cbc774bbe4d3e Mon Sep 17 00:00:00 2001 From: John Wang Date: Thu, 2 Jun 2011 17:49:49 -0700 Subject: [PATCH] Add supplyPuk to do SIM puk unlock. Change-Id: I48654091ac3133a0c405448871b0a2f1ed3ded4b --- .../com/android/internal/telephony/ITelephony.aidl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index da233ccf14d8f..19441cd43ea23 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -144,6 +144,15 @@ interface ITelephony { */ boolean supplyPin(String pin); + /** + * Supply puk to unlock the SIM and set SIM pin to new pin. + * Blocks until a result is determined. + * @param puk The puk to check. + * pin The new pin to be set in SIM + * @return whether the operation was a success. + */ + boolean supplyPuk(String puk, String pin); + /** * Handles PIN MMI commands (PIN/PIN2/PUK/PUK2), which are initiated * without SEND (so dial is not appropriate). @@ -254,7 +263,7 @@ interface ITelephony { * Returns the network type */ int getNetworkType(); - + /** * Return true if an ICC card is present */