fix: 调整 job 执行流程

1.使用 zip4j 实现文件压缩
This commit is contained in:
zhangshuai
2024-11-12 15:17:00 +08:00
parent 7ef08fba4a
commit 8b540ba127
4 changed files with 111 additions and 50 deletions

View File

@@ -819,6 +819,15 @@ public class AdbUtil {
log.info("[deleteAcl] [protocol: {}] [ip: {}] [port: {}] [result: {}]", protocol, ip, port, result);
}
public CommandResult clearAppData(String packageName) {
String result = commandExec.exec(AdbCommandBuilder.builder()
.serial(this.getSerial())
.buildClearAppDateCommand(packageName)
.build());
log.info("[clearAppData] [packageName: {}]", packageName);
return new CommandResult(T.StrUtil.containsAny(result, "Success") ? 0 : 1, result);
}
/**
* flushAcl
* iptables -F ASW_OUTPUT