|
|
@ -565,30 +565,32 @@ 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);
|
|
|
|
if (strings != null && strings.length > 0) {
|
|
|
|
String[] strings = StringUtils.splitString2(substring);
|
|
|
|
for (int i = 0; i < strings.length; i++) {
|
|
|
|
if (strings != null && strings.length > 0) {
|
|
|
|
shellList.add(strings[i]);
|
|
|
|
for (int i = 0; i < strings.length; i++) {
|
|
|
|
}
|
|
|
|
shellList.add(strings[i]);
|
|
|
|
new Thread(new Runnable() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void run() {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
Thread.sleep(1000);
|
|
|
|
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
AdbUtil.ShellList(shellList);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).start();
|
|
|
|
new Thread(new Runnable() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void run() {
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
Thread.sleep(1000);
|
|
|
|
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
AdbUtil.ShellList(shellList);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).start();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
sendmessage = getSendString(content, ifmessageCorrect);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sendmessage = getSendString(content, ifmessageCorrect);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sendSms(context, slot, sender, sendmessage, restartType);
|
|
|
|
sendSms(context, slot, sender, sendmessage, restartType);
|
|
|
|
}
|
|
|
|
}
|
|
|
|