diff options
author | JW Wang <wangchun@google.com> | 2019-11-19 16:17:41 +0800 |
---|---|---|
committer | JW Wang <wangchun@google.com> | 2019-11-21 17:54:41 +0800 |
commit | fab29c6f1b296202ba52901ef119ae6260a1a61d (patch) | |
tree | 767a381bd4bfd93329decc727820bebc04087911 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | f2e1609f5464a314af8d3a0e0447b7224aca7c65 (diff) |
Rewrite blockRollbackManager (1/n)
This is an effort to fix flaky testEnableRollbackTimeoutFailsRollback.
RollbackManager#blockRollbackManager doesn't work as intended because
PackageManagerService can't dispatch ENABLE_ROLLBACK_TIMEOUT until
abortBroadcast is called by RollbackManagerServiceImpl which happens
after blocking is finished.
See https://b.corp.google.com/issues/144732395#comment4 for a detailed
explanation.
blockRollbackManager is rewritten such that:
1. blocking takes effect only after ACTION_PACKAGE_ENABLE_ROLLBACK is
received.
2. allows tests which involves multi-package install where multiple
ACTION_PACKAGE_ENABLE_ROLLBACK will be broadcasted.
3. ENABLE_ROLLBACK_TIMEOUT now will be dispatched without waiting for
blocking to finish.
Bug: 144732395
Test: atest RollbackTest
Change-Id: Ib262bc8c8f17563a4911f780c9d2e6a34803335a
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions