Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6f35838 authored by Omkar Kolangade's avatar Omkar Kolangade Committed by Gerrit Code Review
Browse files

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.

Change-Id: I3e163d94fe5345627c555dc2aebd14238c3426ab
CRs-Fixed: 765965
parent c523672b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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
+9 −0
Original line number Diff line number Diff line
@@ -273,6 +273,15 @@ public class TelephonyIntents {
     */
    public static final String ACTION_CARRIER_SETUP = "android.intent.action.ACTION_CARRIER_SETUP";

    /**
     * <p>Broadcast Action: Indicates that the action is forbidden by network.
     * <p class="note">
     * 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 *#*#<code>#*#*}. The intent will have the data URI: