From d3c88779c2eb900a71b95bd0ef85a624b6b56175 Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Thu, 27 Aug 2026 16:27:10 -0300 Subject: [PATCH] Suppress View tag from Logcat. --- .../thoughtcrime/securesms/logsubmit/LogSectionLogcat.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionLogcat.java b/app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionLogcat.java index 40086d370e..61b51bac5f 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionLogcat.java +++ b/app/src/main/java/org/thoughtcrime/securesms/logsubmit/LogSectionLogcat.java @@ -10,6 +10,9 @@ import java.io.InputStreamReader; public class LogSectionLogcat implements LogSection { + /** Silences the View tag, which some OEM builds spam once per draw pass, while leaving every other tag at verbose. */ + private static final String FILTER_SPEC = "View:S *:V"; + @Override public @NonNull String getTitle() { return "LOGCAT"; @@ -18,7 +21,7 @@ public class LogSectionLogcat implements LogSection { @Override public @NonNull CharSequence getContent(@NonNull Context context) { try { - final Process process = Runtime.getRuntime().exec("logcat -d"); + final Process process = Runtime.getRuntime().exec("logcat -d " + FILTER_SPEC); final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream())); final StringBuilder log = new StringBuilder(); final String separator = System.lineSeparator();