0
처음으로 나쁜 영어로 죄송합니다.Android : Android tcpdump 프로세스를 종료합니다
Android Studio에서 앱을 개발했습니다. tcpdump (프로세스 process = Runtime.getRuntime(). exec ("su -c tcpdump -s 0 -v -w /sdcard/capture.pcap");)를 호출합니다. 처음에는 제대로 작동합니다. 그러나 tcpdump 프로세스가 갑자기 중지됩니다. 누가 그 이유를 말해 줄까요?
final Process p = Runtime.getRuntime().exec(tcpdumpCommand);
final BufferedReader reader = new BufferedReader(
new InputStreamReader(p.getErrorStream()));
(new Thread() {
public void run() {
while ((line = reader.readLine()) != null) {
Log.d("tcpdump", "stderr: " + line);
}
Log.d("tcpdump", "end of stderr");
}
}).start();
을 ... 그리고 로그 캣을 보면 :
이유는 표준 오류에 당신이