Merge "Add proto tombstones to dropbox directly." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
131ed89830
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user