diff options
| author | shizhendong <[email protected]> | 2024-09-10 17:10:38 +0800 |
|---|---|---|
| committer | shizhendong <[email protected]> | 2024-09-10 17:10:38 +0800 |
| commit | 0f4d250328e7af5384d3388d8d15e330997aaa0d (patch) | |
| tree | 566d4bb12c03b4d6598fc1efffbadba92d708aa0 | |
| parent | 7eb678813fcfe88daacd8345d89bd9db37511ded (diff) | |
fix: ASW-67 tcpdump 指定包名时命令参数错误
| -rw-r--r-- | src/main/java/net/geedge/api/util/AdbUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/geedge/api/util/AdbUtil.java b/src/main/java/net/geedge/api/util/AdbUtil.java index 61a66d3..5d9f370 100644 --- a/src/main/java/net/geedge/api/util/AdbUtil.java +++ b/src/main/java/net/geedge/api/util/AdbUtil.java @@ -588,7 +588,7 @@ public class AdbUtil { String pcapFilePath = "/data/local/tmp/capture_" + userId + "_" + packageName + "_" + taskId + ".pcap"; CommandExec.execForProcess(AdbCommandBuilder.builder() .serial(this.getSerial()) - .buildShellCommand(String.format("shell tcpdump not port %s -i nflog:%s -w %s &", this.vncPort, userId, pcapFilePath)) + .buildShellCommand(String.format("shell tcpdump -i nflog:%s -w %s &", userId, pcapFilePath)) .build()); } else { log.info("[startTcpdump] [capture all package]"); |
