Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31444813 authored by Weston Carvalho's avatar Weston Carvalho
Browse files

Add method to commit during A/B update

Test: mmm hardware/interfaces/staging/security/see/storage/aidl/
Bug: 278779487
Change-Id: I4a5622ecf02488cbcd88a46fb354eb49955fe263
parent 28e0e7b9
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -43,6 +43,21 @@ interface IStorageSession {
     */
    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.
     *