When there is an unattributable native service crash during boot, we rollback all packages available for rollback. In the current implementation, we reboot immediately when a staged rollback session becomes ready, even though there can be other staged rollback sessions which are still being handled. In this CL, the logic is changed to allow the health observer wait for all staged sessions to be handled before rebooting. Bug: 141843321 Test: atest StagedRollbackTest#testNativeWatchdogTriggersRollbackForAll Test: atest StagedRollbackTest Change-Id: Ib2aaee22868e5502b68847aa7f64e428070f7e3c
This directory contains a test for the rollback manager service. Directory structure =================== RollbackTest - device driven test for rollbacks not involving staged rollbacks. StagedRollbackTest - device driven test for staged rollbacks. TestApp - source for dummy apks used in testing. TestApex - source for dummy apex modules used in testing. Running the tests ================= You can manually run the tests as follows: atest RollbackTest atest StagedRollbackTest