Merge "Add proto tombstones to dropbox directly." into sc-dev am: 131ed89830 am: 06b10bfbdc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14654521 Change-Id: I7ec575c6eff283bb73de0b9cce310aba7811b73a
This commit is contained in:
@@ -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 {
|
||||||
|
if (proto) {
|
||||||
|
db.addFile(TAG_TOMBSTONE_PROTO, tombstone, 0);
|
||||||
|
} else {
|
||||||
final String headers = getBootHeadersToLogAndUpdate();
|
final String headers = getBootHeadersToLogAndUpdate();
|
||||||
addFileToDropBox(db, timestamps, headers, tombstone.getPath(), LOG_SIZE,
|
addFileToDropBox(db, timestamps, headers, tombstone.getPath(), LOG_SIZE,
|
||||||
proto ? TAG_TOMBSTONE_PROTO : TAG_TOMBSTONE);
|
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