summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorChristian Sonntag <cxs@google.com>2009-09-02 09:28:37 -0700
committerChristian Sonntag <cxs@google.com>2009-09-02 09:28:37 -0700
commit62d95ead34d954c286f13a6d341f07a267796ee4 (patch)
tree5720cc339b7f8d3a2cca82e85fdfdbe4428c88a6 /core/java
parent9217c45829da4d0c9c9dbdc6bc950c7f3e03e4f5 (diff)
downloadframeworks_base-62d95ead34d954c286f13a6d341f07a267796ee4.zip
frameworks_base-62d95ead34d954c286f13a6d341f07a267796ee4.tar.gz
frameworks_base-62d95ead34d954c286f13a6d341f07a267796ee4.tar.bz2
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
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/provider/Checkin.java2
-rw-r--r--core/java/android/provider/Settings.java26
2 files changed, 28 insertions, 0 deletions
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