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

Commit 131ed898 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

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