Add support for checkpointing
Checkpointing uses a combination of files on the meta partition
and the checkpoint= fs_mgr flag. Checkpointed partitions will
revert to their starting state on reboot unless checkpoint commit
is called.
Test: Run vdc commands, check file on metadata
Change-Id: Icba16578608a6cbf922472e9d4ae5b8cf5f016c6
diff --git a/binder/android/os/IVold.aidl b/binder/android/os/IVold.aidl
index fce8aad..8be8219 100644
--- a/binder/android/os/IVold.aidl
+++ b/binder/android/os/IVold.aidl
@@ -102,6 +102,13 @@
void mountExternalStorageForApp(in @utf8InCpp String packageName, int appId,
in @utf8InCpp String sandboxId, int userId);
+ boolean startCheckpoint(int retry);
+ boolean needsCheckpoint();
+ void abortChanges();
+ boolean commitChanges();
+ boolean prepareDriveForCheckpoint(@utf8InCpp String mountPoint);
+ boolean markBootAttempt();
+
const int ENCRYPTION_FLAG_NO_UI = 4;
const int ENCRYPTION_STATE_NONE = 1;