From 827fcb7f8dfbf694e1838e1e3e4432ef4f45949f Mon Sep 17 00:00:00 2001 From: Omkar Kolangade Date: Wed, 3 Dec 2014 18:35:10 -0800 Subject: IMS OMA-DM Intent and ImsReasonInfo Additions Adding an intent for OMA-DM use case where the network sends a string error indicating the device is not provisioned to make calls. The string the network is expected to send is added to ImsReasonInfo. Bug: 18242739 Change-Id: If7f654f834f543523af40b422ea9659c5f0b4de4 --- telephony/java/com/android/ims/ImsReasonInfo.java | 7 +++++++ .../java/com/android/internal/telephony/TelephonyIntents.java | 9 +++++++++ 2 files changed, 16 insertions(+) (limited to 'telephony') diff --git a/telephony/java/com/android/ims/ImsReasonInfo.java b/telephony/java/com/android/ims/ImsReasonInfo.java index 2482249..0b1246b 100644 --- a/telephony/java/com/android/ims/ImsReasonInfo.java +++ b/telephony/java/com/android/ims/ImsReasonInfo.java @@ -228,6 +228,13 @@ public class ImsReasonInfo implements Parcelable { */ public static final int CODE_ECBM_NOT_SUPPORTED = 901; + /** + * Network string error messages. + * mExtraMessage may have these values. + */ + public static final String EXTRA_MSG_SERVICE_NOT_AUTHORIZED + = "Forbidden. Not Authorized for Service"; + // For reason type public int mReasonType; // For main reason code diff --git a/telephony/java/com/android/internal/telephony/TelephonyIntents.java b/telephony/java/com/android/internal/telephony/TelephonyIntents.java index c67e5d7..92cd468 100644 --- a/telephony/java/com/android/internal/telephony/TelephonyIntents.java +++ b/telephony/java/com/android/internal/telephony/TelephonyIntents.java @@ -274,6 +274,15 @@ public class TelephonyIntents { public static final String ACTION_CARRIER_SETUP = "android.intent.action.ACTION_CARRIER_SETUP"; /** + *

Broadcast Action: Indicates that the action is forbidden by network. + *

+ * This is for the OEM applications to understand about possible provisioning issues. + * Used in OMA-DM applications. + */ + public static final String ACTION_FORBIDDEN_NO_SERVICE_AUTHORIZATION + = "android.intent.action.ACTION_FORBIDDEN_NO_SERVICE_AUTHORIZATION"; + + /** * Broadcast Action: A "secret code" has been entered in the dialer. Secret codes are * of the form {@code *#*##*#*}. The intent will have the data URI: * -- cgit v1.1