IUpdateEngine.cleanupSuccessfulUpdate is async am: 40bb0d0220 am: 2f7bcd9621 am: 79b85049db am: 4eb77faf6e am: 7f80f8d746
Change-Id: I1bb20a7c287745952fa5878c13f9f5bf31ec5008
GitOrigin-RevId: 5b856e9d167fa144ef207cc504e60790a3bce05d
diff --git a/binder_bindings/android/os/IUpdateEngine.aidl b/binder_bindings/android/os/IUpdateEngine.aidl
index bbb86a3..c9580da 100644
--- a/binder_bindings/android/os/IUpdateEngine.aidl
+++ b/binder_bindings/android/os/IUpdateEngine.aidl
@@ -62,8 +62,13 @@
*
* Wait for merge to finish, and clean up necessary files.
*
- * @return SUCCESS if successful. ERROR if transient errors (e.g. merged but
- * needs reboot). DEVICE_CORRUPTED for permanent errors.
+ * @param callback Report status updates in callback (not the one previously
+ * bound with {@link #bind()}).
+ * {@link IUpdateEngineCallback#onStatusUpdate} is called with
+ * CLEANUP_PREVIOUS_UPDATE and a progress value during the cleanup.
+ * {@link IUpdateEngineCallback#onPayloadApplicationComplete} is called at
+ * the end with SUCCESS if successful. ERROR if transient errors (e.g. merged
+ * but needs reboot). DEVICE_CORRUPTED for permanent errors.
*/
- int cleanupSuccessfulUpdate();
+ void cleanupSuccessfulUpdate(IUpdateEngineCallback callback);
}