Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62d95ead authored by Christian Sonntag's avatar Christian Sonntag
Browse files

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
parent 9217c458
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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,
+26 −0
Original line number Diff line number Diff line
@@ -2230,6 +2230,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