From 62d95ead34d954c286f13a6d341f07a267796ee4 Mon Sep 17 00:00:00 2001 From: Christian Sonntag Date: Wed, 2 Sep 2009 09:28:37 -0700 Subject: Add APANIC kernel logging to CheckinService. we keep book and only read a particular file once and send it to the server. The files are: Ramconsole Driver (Dream/Sapphire): /data/dontpanic/last_kmsg Apanic Driver (Sholes/all future designs): /data/dontpanic/apanic_console /data/dontpanic/apanic_threads --- core/java/android/provider/Checkin.java | 2 ++ core/java/android/provider/Settings.java | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) (limited to 'core') diff --git a/core/java/android/provider/Checkin.java b/core/java/android/provider/Checkin.java index 6b491ab..84753ee 100644 --- a/core/java/android/provider/Checkin.java +++ b/core/java/android/provider/Checkin.java @@ -59,6 +59,8 @@ public final class Checkin { /** Valid tag values. Extend as necessary for your needs. */ public enum Tag { + APANIC_CONSOLE, + APANIC_THREADS, AUTOTEST_FAILURE, AUTOTEST_SEQUENCE_BEGIN, AUTOTEST_SUITE_BEGIN, diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 77d1740..125ed0b 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -2231,6 +2231,32 @@ public final class Settings { public static final String BACKGROUND_DATA = "background_data"; /** + * The time in msec, when the LAST_KMSG file was send to the checkin server. + * We will only send the LAST_KMSG file if it was modified after this time. + * + * @hide + */ + public static final String CHECKIN_SEND_LAST_KMSG_TIME = "checkin_kmsg_time"; + + /** + * The time in msec, when the apanic_console file was send to the checkin server. + * We will only send the apanic_console file if it was modified after this time. + * + * @hide + */ + public static final String CHECKIN_SEND_APANIC_CONSOLE_TIME = + "checkin_apanic_console_time"; + + /** + * The time in msec, when the apanic_thread file was send to the checkin server. + * We will only send the apanic_thread file if it was modified after this time. + * + * @hide + */ + public static final String CHECKIN_SEND_APANIC_THREAD_TIME = + "checkin_apanic_thread_time"; + + /** * The CDMA roaming mode 0 = Home Networks, CDMA default * 1 = Roaming on Affiliated networks * 2 = Roaming on any networks -- cgit v1.1