Android: Reset update progress when booted into new version. am: 1bafff885b
am: 5d33884bcb
Change-Id: Iced4f744771cadafd1c0bb6ef5e85679a65e3547
diff --git a/update_attempter_android.cc b/update_attempter_android.cc
index abb4545..a9033b7 100644
--- a/update_attempter_android.cc
+++ b/update_attempter_android.cc
@@ -797,6 +797,11 @@
metrics_utils::LoadAndReportTimeToReboot(
metrics_reporter_.get(), prefs_, clock_.get());
ClearMetricsPrefs();
+
+ // Also reset the update progress if the build version has changed.
+ if (!DeltaPerformer::ResetUpdateProgress(prefs_, false)) {
+ LOG(WARNING) << "Unable to reset the update progress.";
+ }
}
// Save the update start time. Reset the reboot count and attempt number if the