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

Commit 444c570f authored by Nathan Harold's avatar Nathan Harold
Browse files

Move SMS_RECORD_LENGTH to SmsManager

Bug: 33414487
Change-Id: Ia57198d92330c35518a3054d63e4312c2328a733
parent fafffe1a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -604,9 +604,9 @@ public class IccSmsInterfaceManager {
    protected byte[] makeSmsRecordData(int status, byte[] pdu) {
        byte[] data;
        if (PhoneConstants.PHONE_TYPE_GSM == mPhone.getPhoneType()) {
            data = new byte[IccConstants.SMS_RECORD_LENGTH];
            data = new byte[SmsManager.SMS_RECORD_LENGTH];
        } else {
            data = new byte[IccConstants.CDMA_SMS_RECORD_LENGTH];
            data = new byte[SmsManager.CDMA_SMS_RECORD_LENGTH];
        }

        // Status bits for this record.  See TS 51.011 10.5.3
+0 −5
Original line number Diff line number Diff line
@@ -97,11 +97,6 @@ public interface IccConstants {
    //Search interval for higher priority PLMNs
    static final int EF_HPPLMN = 0x6F31;

    // SMS record length from TS 51.011 10.5.3
    static public final int SMS_RECORD_LENGTH = 176;
    // SMS record length from C.S0023 3.4.27
    static public final int CDMA_SMS_RECORD_LENGTH = 255;

    static final String MF_SIM = "3F00";
    static final String DF_TELECOM = "7F10";
    static final String DF_PHONEBOOK = "5F3A";