commit | 9e06080ecf05d0f03b0201306f4c0b71043baa50 | [log] [tgz] |
---|---|---|
author | Weston Carvalho <westoncarvalho@google.com> | Wed Nov 20 19:29:42 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Nov 20 19:29:42 2024 +0000 |
tree | cddb25cc7a459289864efa5bfa59538fd8af4ba7 | |
parent | 94a350af63732881577739127caa0036c57bc174 [diff] | |
parent | 16e81fbc565a2a932ca31ee83f35b9abf29a3b17 [diff] |
Merge "Add method to commit during A/B update" into main am: 16e81fbc56 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3092641 Change-Id: Id3d8fe36be10f7fb4e869f645b9fcad7f3ea1318 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.