Implement a new resetStatus() method in Android interface.
When an alredy applied update is deleted from the server (normally
because is was detected to be a bad update), we need to go back to
the idle state and remove the update to prevent it from breaking
more devices.
This patch allows the application side to reset the applied update
back to idle.
Bug: 27081760
TEST=Deployed on a non-Brillo device, sent resetStatus.
Change-Id: I1bf5a141388250d225515e40f13bc3564fa5d957
diff --git a/update_attempter_android.h b/update_attempter_android.h
index 96b584c..0d74d56 100644
--- a/update_attempter_android.h
+++ b/update_attempter_android.h
@@ -63,6 +63,7 @@
bool SuspendUpdate(brillo::ErrorPtr* error) override;
bool ResumeUpdate(brillo::ErrorPtr* error) override;
bool CancelUpdate(brillo::ErrorPtr* error) override;
+ bool ResetStatus(brillo::ErrorPtr* error) override;
// ActionProcessorDelegate methods:
void ProcessingDone(const ActionProcessor* processor,