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

Commit 1a96af40 authored by Taesu Lee's avatar Taesu Lee
Browse files

Check valid bits only for EF_SMS status



Uses 0x07 mask to check 3 LSB of status byte for EF_SMS and fix some
wrong indent.

Test: Manual

Change-Id: Id7e5de2283914ae1c2c6e7324aecd95b50fc65f1
Signed-off-by: default avatarTaesu Lee <taesu82.lee@samsung.com>
parent 268cacb2
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ public class IccSmsInterfaceManager {

        for (int i = 0; i < count; i++) {
            byte[] ba = messages.get(i);
             if (ba[0] == STATUS_ON_ICC_UNREAD) {
            if ((ba[0] & 0x07) == STATUS_ON_ICC_UNREAD) {
                int n = ba.length;
                byte[] nba = new byte[n - 1];
                System.arraycopy(ba, 1, nba, 0, n - 1);
@@ -785,7 +785,7 @@ public class IccSmsInterfaceManager {
        }

        // Status bits for this record.  See TS 51.011 10.5.3
        data[0] = (byte)(status & 7);
        data[0] = (byte) (status & 0x07);

        System.arraycopy(pdu, 0, data, 1, pdu.length);