Switch to exceptions for most cp calls
This switches the checkpoint calls that don't need to return a value
to return 0 on success, and an error on failure. This will be transalted
to exceptions for java binder users. needsCheckpoint and needsRollback
still return a boolean value.
Test: vdc setCheckpoint 2 then reboot 3 times checking state
Bug: 112901762
Change-Id: Idd3b5e6036631562a86d5123f533b86cf3bd6032
diff --git a/binder/android/os/IVold.aidl b/binder/android/os/IVold.aidl
index 809b9a0..96301b3 100644
--- a/binder/android/os/IVold.aidl
+++ b/binder/android/os/IVold.aidl
@@ -104,14 +104,14 @@
void destroySandboxForApp(in @utf8InCpp String packageName, int appId,
in @utf8InCpp String sandboxId, int userId);
- boolean startCheckpoint(int retry);
+ void startCheckpoint(int retry);
boolean needsCheckpoint();
boolean needsRollback();
void abortChanges();
- boolean commitChanges();
- boolean prepareCheckpoint();
- boolean restoreCheckpoint(@utf8InCpp String device);
- boolean markBootAttempt();
+ void commitChanges();
+ void prepareCheckpoint();
+ void restoreCheckpoint(@utf8InCpp String device);
+ void markBootAttempt();
const int ENCRYPTION_FLAG_NO_UI = 4;