diff options
author | Wink Saville <wink@google.com> | 2014-04-26 00:25:44 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-04-26 00:25:44 +0000 |
commit | c79963c3cb6d0127e2fc9ce5bf000fa05811504d (patch) | |
tree | 570aba58220dc865c03b62586c21107f9569c19b /telephony/java/android | |
parent | 165b965edb42460ef9b0add89a76a311c707a1e2 (diff) | |
parent | 1c1827a6402c3a1f38ba077289a9022f6e6d3f73 (diff) | |
download | frameworks_base-c79963c3cb6d0127e2fc9ce5bf000fa05811504d.zip frameworks_base-c79963c3cb6d0127e2fc9ce5bf000fa05811504d.tar.gz frameworks_base-c79963c3cb6d0127e2fc9ce5bf000fa05811504d.tar.bz2 |
am 1c1827a6: am 3f4867f4: Merge "Telephony: Add functionality to handle ICC IO error"
* commit '1c1827a6402c3a1f38ba077289a9022f6e6d3f73':
Telephony: Add functionality to handle ICC IO error
Diffstat (limited to 'telephony/java/android')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index b9a1da4..710b6279 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -1094,6 +1094,10 @@ public class TelephonyManager { public static final int SIM_STATE_NETWORK_LOCKED = 4; /** SIM card state: Ready */ public static final int SIM_STATE_READY = 5; + /** SIM card state: SIM Card Error, Sim Card is present but faulty + *@hide + */ + public static final int SIM_STATE_CARD_IO_ERROR = 6; /** * @return true if a ICC card is present @@ -1120,6 +1124,7 @@ public class TelephonyManager { * @see #SIM_STATE_PUK_REQUIRED * @see #SIM_STATE_NETWORK_LOCKED * @see #SIM_STATE_READY + * @see #SIM_STATE_CARD_IO_ERROR */ public int getSimState() { String prop = SystemProperties.get(TelephonyProperties.PROPERTY_SIM_STATE); @@ -1138,6 +1143,9 @@ public class TelephonyManager { else if ("READY".equals(prop)) { return SIM_STATE_READY; } + else if ("CARD_IO_ERROR".equals(prop)) { + return SIM_STATE_CARD_IO_ERROR; + } else { return SIM_STATE_UNKNOWN; } |