Handle retry count
Test: vdc setCheckpoint 2 then reboot 3 times checking state
Bug: 112901762
Change-Id: I85a71d059bca27b76175b9bd8465cc453f0ddb8d
diff --git a/VoldNativeService.cpp b/VoldNativeService.cpp
index 3884875..4a9ed5b 100644
--- a/VoldNativeService.cpp
+++ b/VoldNativeService.cpp
@@ -797,13 +797,11 @@
return ok();
}
-binder::Status VoldNativeService::prepareDriveForCheckpoint(const std::string& mountPoint,
- bool* _aidl_return) {
+binder::Status VoldNativeService::prepareCheckpoint(bool* _aidl_return) {
ENFORCE_UID(AID_SYSTEM);
- CHECK_ARGUMENT_PATH(mountPoint);
ACQUIRE_LOCK;
- *_aidl_return = cp_prepareDriveForCheckpoint(mountPoint);
+ *_aidl_return = cp_prepareCheckpoint();
return ok();
}