From 2efae1ac68619e82997e7988bf7f9210322a0844 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 4 Jun 2018 17:46:57 +0200 Subject: LogExporterPreference: get all past processes --- .../java/com/wireguard/android/preference/LogExporterPreference.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/wireguard/android/preference/LogExporterPreference.java b/app/src/main/java/com/wireguard/android/preference/LogExporterPreference.java index 70d221a8..4770c4b3 100644 --- a/app/src/main/java/com/wireguard/android/preference/LogExporterPreference.java +++ b/app/src/main/java/com/wireguard/android/preference/LogExporterPreference.java @@ -64,7 +64,7 @@ public class LogExporterPreference extends Preference { try { final Process process = Runtime.getRuntime().exec(new String[]{ - "logcat", "-b", "all", "-d", "-v", "threadtime", "--pid", Integer.toString(android.os.Process.myPid()), "-f", file.getAbsolutePath(), "*:V"}); + "logcat", "-b", "all", "-d", "-v", "threadtime", "-f", file.getAbsolutePath(), "*:V"}); if (process.waitFor() != 0) { try (final BufferedReader reader = new BufferedReader(new InputStreamReader(process.getErrorStream()))) { final StringBuilder errors = new StringBuilder(); -- cgit v1.2.3