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

Commit dde22e76 authored by Taesu Lee's avatar Taesu Lee Committed by android-build-merger
Browse files

Merge "Check valid bits only for EF_SMS status"

am: fe6b2a07

Change-Id: I8cae7d09dd5eb0e7f80e42ba2cf9ef96f6bcfe4f
parents 5128b9ea fe6b2a07
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);