Skip to content
Advertisement

Tag: pid

How do I properly capture the logcat using a process and filtering on PID?

It seems straightforward enough. I’m using Runtime.getRuntime().exec(commandString); I’ve tried I’ve tried it without the -v raw and have also tried (and need to) use multiple PIDs using |. Nothing seems to work. I have a new BufferedReader(new InputStreamReader(p.getInputStream())); that gets nothing. If I don’t filter on PID it works but prints out everything that hits the logcat which is not

Advertisement