commit | da998cfa3d680c4bc373de7a4b8a6802b6f8d5cd | [log] [tgz] |
---|---|---|
author | Nikita Ioffe <ioffe@google.com> | Mon Mar 04 22:54:30 2019 +0000 |
committer | Nikita Ioffe <ioffe@google.com> | Tue Mar 12 20:27:42 2019 +0000 |
tree | 2671a1739482a8881df3924cbff2f3e4dc832677 | |
parent | 83234be1846eb8ade6636a4772d361bd7989b93c [diff] |
Fail committing new staged session if another one is already in progress This ensures that there might be at most one committed non-finalized (i.e. either applied or failed) session. Note that from StagingManager POV atomic staged install is considered to be a single session that is represented by the parent session of an install. Test: run adb install --staged foo.apk twice. Test: StagedRollbackTest Bug: 127296534 Change-Id: I497723173745d4f6eb64b7d22fa3adb0f9e8f6c0