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

Commit 332d1a9e authored by jianjin's avatar jianjin
Browse files

Logging atom TOMB_STONE_OCCURRED when a tombstone file added to dropbox.

Bug: 126127632
Change-Id: I09b8649e0b53bce13b7a42c80b06bf354196e9af
Fix: 126127632
Test: manually test by triggering tombstone and check statsd log
parent 2bcdbd1b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -267,7 +267,6 @@ public class BootReceiver extends BroadcastReceiver {
                    if (file.isFile() && file.getName().startsWith("tombstone_")) {
                        addFileToDropBox(db, timestamps, headers, file.getPath(), LOG_SIZE,
                                TAG_TOMBSTONE);
                        StatsLog.write(StatsLog.TOMB_STONE_OCCURRED);
                    }
                } catch (IOException e) {
                    Slog.e(TAG, "Can't log tombstone", e);
@@ -308,6 +307,9 @@ public class BootReceiver extends BroadcastReceiver {
        if (tag.equals(TAG_TOMBSTONE) && fileContents.contains(">>> system_server <<<")) {
            addTextToDropBox(db, "system_server_native_crash", text, filename, maxSize);
        }
        if (tag.equals(TAG_TOMBSTONE)) {
            StatsLog.write(StatsLog.TOMB_STONE_OCCURRED);
        }
        addTextToDropBox(db, tag, text, filename, maxSize);
    }