summaryrefslogtreecommitdiffstats
path: root/telephony/java/android
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2014-04-25 23:58:11 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-04-25 23:58:11 +0000
commit3f4867f49d6c1932117e3519ce10d11f37829f19 (patch)
tree0b66a9df6b30790cebce9f040c25b9f35d3172ed /telephony/java/android
parentac7327082c411617f7937b87575c117bd63ad9df (diff)
parentf099a5f389a43a1a1f0abc6577e45c7dfca14c5c (diff)
downloadframeworks_base-3f4867f49d6c1932117e3519ce10d11f37829f19.zip
frameworks_base-3f4867f49d6c1932117e3519ce10d11f37829f19.tar.gz
frameworks_base-3f4867f49d6c1932117e3519ce10d11f37829f19.tar.bz2
Merge "Telephony: Add functionality to handle ICC IO error"
Diffstat (limited to 'telephony/java/android')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index ea22bc4..35d63c0 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -1055,6 +1055,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
@@ -1081,6 +1085,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);
@@ -1099,6 +1104,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;
}