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

Commit e3b7288b authored by Tom Taylor's avatar Tom Taylor Committed by Android (Google) Code Review
Browse files

Merge "Add a new MMS result code for large MMS denial over satellite" into main

parents 9dcdc969 a718863c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2179,6 +2179,14 @@ public class CarrierConfigManager {
     */
    public static final String KEY_MMS_NETWORK_RELEASE_TIMEOUT_MILLIS_INT =
            "mms_network_release_timeout_millis_int";
    /**
     * Maximum size in bytes of the PDU to send or download when connected to a non-terrestrial
     * network. MmsService will return a result code of MMS_ERROR_TOO_LARGE_FOR_TRANSPORT if
     * the PDU exceeds this limit when connected to a non-terrestrial network.
     * @hide
     */
    public static final String KEY_MMS_MAX_NTN_PAYLOAD_SIZE_BYTES_INT =
            "mms_max_ntn_payload_size_bytes_int";
    /**
     * The flatten {@link android.content.ComponentName componentName} of the activity that can
@@ -10376,6 +10384,7 @@ public class CarrierConfigManager {
        sDefaults.putInt(KEY_MMS_SMS_TO_MMS_TEXT_THRESHOLD_INT, -1);
        sDefaults.putInt(KEY_MMS_SUBJECT_MAX_LENGTH_INT, 40);
        sDefaults.putInt(KEY_MMS_NETWORK_RELEASE_TIMEOUT_MILLIS_INT, 5 * 1000);
        sDefaults.putInt(KEY_MMS_MAX_NTN_PAYLOAD_SIZE_BYTES_INT, 3 * 1000);
        sDefaults.putString(KEY_MMS_EMAIL_GATEWAY_NUMBER_STRING, "");
        sDefaults.putString(KEY_MMS_HTTP_PARAMS_STRING, "");
        sDefaults.putString(KEY_MMS_NAI_SUFFIX_STRING, "");
+6 −0
Original line number Diff line number Diff line
@@ -3123,6 +3123,12 @@ public final class SmsManager {
    @FlaggedApi(Flags.FLAG_MMS_DISABLED_ERROR)
    public static final int MMS_ERROR_MMS_DISABLED_BY_CARRIER = 12;

    /**
     * The MMS pdu was too large to send or too large to download over the current connection.
     * @hide
     */
    public static final int MMS_ERROR_TOO_LARGE_FOR_TRANSPORT = 13;

    /** Intent extra name for MMS sending result data in byte array type */
    public static final String EXTRA_MMS_DATA = "android.telephony.extra.MMS_DATA";
    /** Intent extra name for HTTP status code for MMS HTTP failure in integer type */