diff options
author | David Anderson <dvander@google.com> | 2021-06-29 19:59:22 -0700 |
---|---|---|
committer | David Anderson <dvander@google.com> | 2021-07-01 15:49:09 -0700 |
commit | cfd7c0f39aeaf6ea98135b999b64196a7ba2eb47 (patch) | |
tree | c20de75b179e5474001dadfd283e8bd6c5fbe318 /aosp/cleanup_previous_update_action.cc | |
parent | e2b83494b3c7f74f39f94ca94f77f931e58f13a4 (diff) |
Report source and target build fingerprints in SNAPSHOT_MERGE_REPORTED.
Bug: 188909957
Test: manual test
Change-Id: I108c20cf1e092478be2ae59701514f32d9b0a9f3
Merged-In: I108c20cf1e092478be2ae59701514f32d9b0a9f3
Diffstat (limited to 'aosp/cleanup_previous_update_action.cc')
-rw-r--r-- | aosp/cleanup_previous_update_action.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/aosp/cleanup_previous_update_action.cc b/aosp/cleanup_previous_update_action.cc index 5084c1e5..53cb9933 100644 --- a/aosp/cleanup_previous_update_action.cc +++ b/aosp/cleanup_previous_update_action.cc @@ -485,6 +485,9 @@ void CleanupPreviousUpdateAction::ReportMergeStats() { // However, we have saved the flag in the snapshot report. bool vab_compression_used = report.compression_enabled(); + auto target_build_fingerprint = + android::base::GetProperty("ro.build.fingerprint", ""); + LOG(INFO) << "Reporting merge stats: " << android::snapshot::UpdateState_Name(report.state()) << " in " << passed_ms.count() << "ms (resumed " << report.resume_count() @@ -502,7 +505,9 @@ void CleanupPreviousUpdateAction::ReportMergeStats() { report.estimated_cow_size_bytes(), report.boot_complete_time_ms(), report.boot_complete_to_merge_start_time_ms(), - static_cast<int32_t>(report.merge_failure_code())); + static_cast<int32_t>(report.merge_failure_code()), + report.source_build_fingerprint().c_str(), + target_build_fingerprint.c_str()); #endif } |