fix: 以 tid 为目录保留 playbook 文件,apk ,pcap 及playbook 运行日志
This commit is contained in:
@@ -511,6 +511,20 @@ public class AdbUtil {
|
||||
return new CommandResult(T.StrUtil.containsAny(result, "Success") ? 0 : 1, result);
|
||||
}
|
||||
|
||||
/**
|
||||
* stop app
|
||||
* adb shell am force-stop package_name
|
||||
*/
|
||||
public CommandResult stopApp(String packageName) {
|
||||
String result = CommandExec.exec(AdbCommandBuilder.builder()
|
||||
.serial(this.getSerial())
|
||||
.buildStopAppCommand(packageName)
|
||||
.build()
|
||||
);
|
||||
log.info("[stopApp] [packageName: {}] [result: {}]", packageName, result);
|
||||
return new CommandResult(T.StrUtil.isEmpty(result) ? 0 : 1, result);
|
||||
}
|
||||
|
||||
/**
|
||||
* iptables -F
|
||||
* iptables -X
|
||||
|
||||
Reference in New Issue
Block a user