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/service_delegate_android_interface.h b/service_delegate_android_interface.h
index 62e6540..7dae40f 100644
--- a/service_delegate_android_interface.h
+++ b/service_delegate_android_interface.h
@@ -64,6 +64,12 @@
   // sets |error| accordingly.
   virtual bool CancelUpdate(brillo::ErrorPtr* error) = 0;
 
+  // Reset the already applied update back to an idle state. This method can
+  // only be called when no update attempt is going on, and it will reset the
+  // status back to idle, deleting the currently applied update if any. In case
+  // of error, returns false and sets |error| accordingly.
+  virtual bool ResetStatus(brillo::ErrorPtr* error) = 0;
+
  protected:
   ServiceDelegateAndroidInterface() = default;
 };