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

Commit cda4eded authored by Junda Liu's avatar Junda Liu
Browse files

Remove special handling for length field.

Bug: b/18012893
Change-Id: I99a678c2ffce1bf31c79b1fdb2dc846193b972b3
parent 373f9fa9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -161,8 +161,7 @@ public class UiccCarrierPrivilegeRules extends Handler {
        public String parseLength(String data) {
            int offset = tag.length();
            int firstByte = Integer.parseInt(data.substring(offset, offset + 2), 16);
            // TODO: remove second condition before launch. b/18012893
            if (firstByte < SINGLE_BYTE_MAX_LENGTH || (offset + 2 + firstByte * 2 == data.length())) {
            if (firstByte < SINGLE_BYTE_MAX_LENGTH) {
                length = firstByte * 2;
                lengthBytes = data.substring(offset, offset + 2);
            } else {