diff options
author | Mohammad Samiul Islam <samiul@google.com> | 2019-11-28 18:14:40 +0000 |
---|---|---|
committer | Mohammad Samiul Islam <samiul@google.com> | 2020-01-03 16:22:54 +0000 |
commit | 7e9fdb09fda8205e7f98406689e463ab1e277c42 (patch) | |
tree | 4bd92ea9ef5806e7b9fc25faa96dcd7305083be7 /rs/java/android/renderscript/RenderScriptCacheDir.java | |
parent | 57a1e4c4aa37a6e479f9b5c6b43941c3aefa62e0 (diff) |
Enable filesystem checkpoint for staged apk installation
Because: We want to make multiple staged sessions' installation
atomic. This behaviour is consistent with what we do with apex
packages.
File system checkpoint will be enabled during the end-phase of
pre-reboot verification of staged session. On reboot, if anything goes
wrong during apk installation, we reboot again to enter rollback-mode.
On rollback-mode, we mark all active staged session as failed.
The new implementation is unaware of its surrounding sessions, i.e,
when a session fails we have no way to know if there is any other
staged session which was applied on this boot. As such, whenever a
session fails, we reboot immediately to revert back to safe state.
Bug: 141843321
Test: atest StagedInstallTest#testInstallMultipleStagedSession_PartialFail_ApkOnly
Change-Id: I1619c6f113fc0b07f2c69215683e4964e0e99458
Diffstat (limited to 'rs/java/android/renderscript/RenderScriptCacheDir.java')
0 files changed, 0 insertions, 0 deletions