Merge "Invoke tcpdump with -l" into main am: ca91ebdcab

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/3509290

Change-Id: I884700af3faf545f1a4624e13792686e3b7da0ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Junyu Lai 2025-03-12 02:21:00 -07:00 • committed by Automerger Merge Worker
commit 928ab4657d

View file

@ -224,7 +224,7 @@ class ConnectivityDiagnosticsCollector : BaseMetricListener() {
// Echo the current pid, and replace it (with exec) with the tcpdump process, so the
// tcpdump pid is known.
writer.write(
"echo $$; exec su 0 tcpdump -n -i any -U -xx".encodeToByteArray()
"echo $$; exec su 0 tcpdump -n -i any -l -xx".encodeToByteArray()
)
}
val reader = FileReader(stdout.fileDescriptor).buffered()