summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMohammad Samiul Islam <samiul@google.com>2019-11-28 18:14:40 +0000
committerMohammad Samiul Islam <samiul@google.com>2020-03-30 19:59:19 +0100
commit92b791a3c2cc42f158ae65ec6c0c8fde62530fba (patch)
treef2eb49f97909efe602bdd72e461defa054861e83 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentca438ddbf3a895ab970b670211da3f65cc6dfbd9 (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 Merged-In: I1619c6f113fc0b07f2c69215683e4964e0e99458 (cherry picked from commit 7e9fdb09fda8205e7f98406689e463ab1e277c42)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions