summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorMohammad Samiul Islam <samiul@google.com>2020-04-24 09:26:19 +0100
committerMohammad Samiul Islam <samiul@google.com>2020-05-04 14:33:21 +0100
commita0623e290e239dfb04f0956d76839193a0bb0a81 (patch)
tree93dc5a5fc034f4f0969e01af69485771be89ca16 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent731bd965fb5e0f62dc703d05983baef8e0a0f4e7 (diff)
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions