From 344cd5b28ccc30c2c73f270143b9a857e139e574 Mon Sep 17 00:00:00 2001 From: Mikhail Lopatkin Date: Sun, 9 Jan 2022 18:41:22 +0300 Subject: [PATCH] Support kernel buffer where it is available The kernel log buffer is still listed as available even in user builds, but it is always empty there. We have to live with it though. Issue: #157 --- resources/name/mlopatkin/andlogview/logview.properties | 2 ++ src/name/mlopatkin/andlogview/liblogcat/LogRecord.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/name/mlopatkin/andlogview/logview.properties b/resources/name/mlopatkin/andlogview/logview.properties index 300e68dd..5b8b7c57 100644 --- a/resources/name/mlopatkin/andlogview/logview.properties +++ b/resources/name/mlopatkin/andlogview/logview.properties @@ -18,6 +18,7 @@ ui.highlight_colors = #D0F0C0, #C7C2FC, #FECBC0, #FCFC96 ui.buffer_enabled.MAIN = true ui.buffer_enabled.SYSTEM = true ui.buffer_enabled.CRASH = true +ui.buffer_enabled.KERNEL = true ui.buffer_enabled.RADIO = false ui.buffer_enabled.EVENTS = false ui.buffer_enabled.UNKNOWN = true @@ -29,6 +30,7 @@ adb.buffer.CRASH = crash adb.buffer.SYSTEM = system adb.buffer.EVENTS = events adb.buffer.RADIO = radio +adb.buffer.KERNEL = kernel dump.buffer.MAIN = MAIN dump.buffer.SYSTEM = SYSTEM diff --git a/src/name/mlopatkin/andlogview/liblogcat/LogRecord.java b/src/name/mlopatkin/andlogview/liblogcat/LogRecord.java index 75c9c5a7..e771a603 100644 --- a/src/name/mlopatkin/andlogview/liblogcat/LogRecord.java +++ b/src/name/mlopatkin/andlogview/liblogcat/LogRecord.java @@ -55,7 +55,8 @@ public enum Buffer { SYSTEM("System"), RADIO("Radio"), EVENTS("Events"), - CRASH("Crash"); + CRASH("Crash"), + KERNEL("Kernel"); private final String name;