commit | 0a3c43ffcb637b20dc3da9c765a096f0a72e339c | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Fri Dec 13 19:28:28 2019 -0800 |
committer | Yifan Hong <elsk@google.com> | Fri Dec 13 19:52:31 2019 -0800 |
tree | 715ffdb58ae5ef00c888a310c08a5450aab88f9f | |
parent | 3f79b1308fb1d6b5218fe3baa5ac0e0cd6153535 [diff] |
libsnapshot: add WaitForMerge Add an API that does not initiate the merge, but only waits for it to finish. It is different from ProcessUpdateState API in that it also blocks when state == UNVERIFIED and booting from the new slot. (ProcessUpdateState immediately returns in this case). This is useful for android.os.UpdateEngine.CleanupSuccessfulUpdate(). Bug: 138808328 Test: libsnapshot_test Change-Id: I7cc59fcaf69616e7ec7ebe6101991b5106845b65