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);
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);
}