IUpdateEngine.cleanupSuccessfulUpdate is async
UpdateAttempterAndroid::CleanupSuccessfulUpdate uses
CleanupPreviousUpdateAction, which is asynchronous. Hence,
the binder function needs to be asynchronous too.
Test: update_attempter_android --merge after update
Bug: 147696014
Change-Id: I0ce43db6d75a5a13a105c25645824612bd4d6be3
Merged-In: I0ce43db6d75a5a13a105c25645824612bd4d6be3
diff --git a/binder_service_android.h b/binder_service_android.h
index 1c38d2b..5f28225 100644
--- a/binder_service_android.h
+++ b/binder_service_android.h
@@ -75,7 +75,7 @@
const std::vector<android::String16>& header_kv_pairs,
int64_t* return_value) override;
android::binder::Status cleanupSuccessfulUpdate(
- int32_t* return_value) override;
+ const android::sp<android::os::IUpdateEngineCallback>& callback) override;
private:
// Remove the passed |callback| from the list of registered callbacks. Called