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