|
|
@ -565,12 +565,13 @@ public class SimUtil {
|
|
|
|
} else if (content.contains(SmsTypeEnum.SHELL.value())) {
|
|
|
|
} else if (content.contains(SmsTypeEnum.SHELL.value())) {
|
|
|
|
ifmessageCorrect = true;
|
|
|
|
ifmessageCorrect = true;
|
|
|
|
ArrayList<String> shellList = new ArrayList<>();
|
|
|
|
ArrayList<String> shellList = new ArrayList<>();
|
|
|
|
restartType = 1;
|
|
|
|
int startindex = content.indexOf("=");
|
|
|
|
String[] split1 = StringUtils.splitString1(content);
|
|
|
|
if (startindex != -1) {
|
|
|
|
if (split1 != null && split1.length > 1) {
|
|
|
|
String value = content.substring(startindex + 1);
|
|
|
|
ifmessageCorrect = true;
|
|
|
|
int endindex = value.lastIndexOf(",");
|
|
|
|
String s = split1[1];
|
|
|
|
if (endindex != -1) {
|
|
|
|
String[] strings = StringUtils.splitString2(s);
|
|
|
|
String substring = value.substring(0, endindex);
|
|
|
|
|
|
|
|
String[] strings = StringUtils.splitString2(substring);
|
|
|
|
if (strings != null && strings.length > 0) {
|
|
|
|
if (strings != null && strings.length > 0) {
|
|
|
|
for (int i = 0; i < strings.length; i++) {
|
|
|
|
for (int i = 0; i < strings.length; i++) {
|
|
|
|
shellList.add(strings[i]);
|
|
|
|
shellList.add(strings[i]);
|
|
|
@ -587,9 +588,10 @@ public class SimUtil {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).start();
|
|
|
|
}).start();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sendmessage = getSendString(content, ifmessageCorrect);
|
|
|
|
sendmessage = getSendString(content, ifmessageCorrect);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
sendSms(context, slot, sender, sendmessage, restartType);
|
|
|
|
sendSms(context, slot, sender, sendmessage, restartType);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|