Skip to content
Commit a0623e29 authored by Mohammad Samiul Islam's avatar Mohammad Samiul Islam
Browse files

Fix racing condition between session abandonment and its verification

This CL prevents a committed staged session from being cleaned up if it
unsafe for some reason. The session is marked destroyed and
StagingManager ensures destroyed session do not get installed anymore.

Meanwhile, when it becomes safe for session to be cleaned up again,
StagingManager will call abandon again to clean it up.

Bug: 145925842
Test: atest StagedInstallTest
Test: atest StagedInstallTest#testAbandonStagedApkBeforeReady
Test: atest StagedInstallTest#testNoSessionUpdatedBroadcastSentForStagedSessionAbandon
Change-Id: Idf0adfb54afcd411c5ea1c49d7fcf5c0cddfcb32
parent 731bd965
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment