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

Commit 21c95909 authored by Yunjin Kim's avatar Yunjin Kim Committed by 김윤진
Browse files

support rspCrlversion for RSP2.x.0



Bug: 260041791
Test: Manual

Change-Id: I4f0a052800eed44ba98e189a894d2dd0c2e3d2c3
Signed-off-by: default avatarYunjin Kim <yunzhen.kim@samsung.com>
parent 5138c5ec
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -979,15 +979,17 @@ public class EuiccPort extends UiccPort {
        }

        String devCap = split[0].trim();
        Integer version;
        String[] fullVer = (split[1].trim()).split("\\.");
        Integer version, subVersion = 0;
        try {
            version = Integer.parseInt(split[1].trim());
            version = Integer.parseInt(fullVer[0]);
            if (fullVer.length > 1) subVersion = Integer.parseInt(fullVer[1]);
        } catch (NumberFormatException e) {
            loge("Invalid device capability version number.", e);
            return;
        }

        byte[] versionBytes = new byte[] { version.byteValue(), 0, 0 };
        byte[] versionBytes = new byte[] { version.byteValue(), subVersion.byteValue(), 0 };
        switch (devCap) {
            case DEV_CAP_GSM:
                devCapBuilder.addChildAsBytes(Tags.TAG_CTX_0, versionBytes);