commit | 87dedd1d9f80780f01989ebc62fc36d94dab02f3 | [log] [tgz] |
---|---|---|
author | Weston Carvalho <westoncarvalho@google.com> | Wed Nov 20 20:04:00 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Nov 20 20:04:00 2024 +0000 |
tree | 0a31b0a3f13b5d44ec596927ca542fe83f1c7099 | |
parent | fbd0cd0b4ecbf288af71e046c8f181fb799960e6 [diff] | |
parent | 9e06080ecf05d0f03b0201306f4c0b71043baa50 [diff] |
Merge "Add method to commit during A/B update" into main am: 16e81fbc56 am: 9e06080ecf Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3092641 Change-Id: I3cd3eb84c654a2a28f947076b577c6ca5a2fc020 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/staging/security/see/storage/aidl/android/hardware/security/see/storage/IStorageSession.aidl b/staging/security/see/storage/aidl/android/hardware/security/see/storage/IStorageSession.aidl index 1b70a0e..dc1e6a8 100644 --- a/staging/security/see/storage/aidl/android/hardware/security/see/storage/IStorageSession.aidl +++ b/staging/security/see/storage/aidl/android/hardware/security/see/storage/IStorageSession.aidl
@@ -44,6 +44,21 @@ void commitChanges(); /** + * If an A/B update is in progress, stages any pending changes made through this session to be + * committed when the A/B update completes successfully. If the update fails, the changes will + * be discarded. + * + * If no A/B update is in progess, behaves identically to `commitChanges`. + * + * After this call returns successfully, the session will no longer have pending changes. Files + * may then still be modified through this session to create another commit. + * + * May return service-specific errors: + * - ERR_BAD_TRANSACTION + */ + void stageChangesForCommitOnAbUpdateComplete(); + + /** * Abandons any pending changes made through this session. * * The session can then be reused to make new changes.