Merge "Add proto tombstones to dropbox directly." into sc-dev

This commit is contained in:
TreeHugger Robot
2021-05-20 22:59:56 +00:00
committed by Android (Google) Code Review

View File

@@ -479,9 +479,13 @@ public class BootReceiver extends BroadcastReceiver {
final String bootReason = SystemProperties.get("ro.boot.bootreason", null); final String bootReason = SystemProperties.get("ro.boot.bootreason", null);
HashMap<String, Long> timestamps = readTimestamps(); HashMap<String, Long> timestamps = readTimestamps();
try { try {
final String headers = getBootHeadersToLogAndUpdate(); if (proto) {
addFileToDropBox(db, timestamps, headers, tombstone.getPath(), LOG_SIZE, db.addFile(TAG_TOMBSTONE_PROTO, tombstone, 0);
proto ? TAG_TOMBSTONE_PROTO : TAG_TOMBSTONE); } else {
final String headers = getBootHeadersToLogAndUpdate();
addFileToDropBox(db, timestamps, headers, tombstone.getPath(), LOG_SIZE,
TAG_TOMBSTONE);
}
} catch (IOException e) { } catch (IOException e) {
Slog.e(TAG, "Can't log tombstone", e); Slog.e(TAG, "Can't log tombstone", e);
} }