diff options
author | John Wang <johnwang@google.com> | 2010-04-21 11:34:15 -0700 |
---|---|---|
committer | John Wang <johnwang@google.com> | 2010-04-21 11:34:15 -0700 |
commit | 7fb4b8455ccccde4698bed1a1906434a14a611a6 (patch) | |
tree | 5f441e1963bb4530d96af192bc79600684499afe /telephony/java | |
parent | 19275cb5b028c18228674f87ba4cbc98d8520c5e (diff) | |
download | frameworks_base-7fb4b8455ccccde4698bed1a1906434a14a611a6.zip frameworks_base-7fb4b8455ccccde4698bed1a1906434a14a611a6.tar.gz frameworks_base-7fb4b8455ccccde4698bed1a1906434a14a611a6.tar.bz2 |
Add ILLEGAL_SIM_OR_ME error code.
It is for bug 2571583 to provide better failure information of network operator selection.
Network selection returns ILLEGAL_SIM_OR_ME when the failure is
permanent and no retries needed, such as illegal SIM, ME, HRL config, etc.
Change-Id: Iaf70bef64d3cbf35e4d9915418cbb5b78607f73e
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/com/android/internal/telephony/CommandException.java | 3 | ||||
-rw-r--r-- | telephony/java/com/android/internal/telephony/RILConstants.java | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/CommandException.java b/telephony/java/com/android/internal/telephony/CommandException.java index a5d11cf..eb0a440 100644 --- a/telephony/java/com/android/internal/telephony/CommandException.java +++ b/telephony/java/com/android/internal/telephony/CommandException.java @@ -37,6 +37,7 @@ public class CommandException extends RuntimeException { OP_NOT_ALLOWED_DURING_VOICE_CALL, OP_NOT_ALLOWED_BEFORE_REG_NW, SMS_FAIL_RETRY, + ILLEGAL_SIM_OR_ME, } public CommandException(Error e) { @@ -68,6 +69,8 @@ public class CommandException extends RuntimeException { return new CommandException(Error.OP_NOT_ALLOWED_BEFORE_REG_NW); case RILConstants.SMS_SEND_FAIL_RETRY: return new CommandException(Error.SMS_FAIL_RETRY); + case RILConstants.ILLEGAL_SIM_OR_ME: + return new CommandException(Error.ILLEGAL_SIM_OR_ME); default: Log.e("GSM", "Unrecognized RIL errno " + ril_errno); return new CommandException(Error.INVALID_RESPONSE); diff --git a/telephony/java/com/android/internal/telephony/RILConstants.java b/telephony/java/com/android/internal/telephony/RILConstants.java index 4d8c7ec..01f4ab2 100644 --- a/telephony/java/com/android/internal/telephony/RILConstants.java +++ b/telephony/java/com/android/internal/telephony/RILConstants.java @@ -45,6 +45,9 @@ public interface RILConstants { int OP_NOT_ALLOWED_BEFORE_REG_NW = 9; /* request is not allowed before device registers to network */ int SMS_SEND_FAIL_RETRY = 10; /* send sms fail and need retry */ + int ILLEGAL_SIM_OR_ME = 15; /* network selection failure due + to wrong SIM/ME and no + retries needed */ /* NETWORK_MODE_* See ril.h RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE */ int NETWORK_MODE_WCDMA_PREF = 0; /* GSM/WCDMA (WCDMA preferred) */ |