summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRichard Uhler <ruhler@google.com>2019-04-25 13:01:39 +0100
committerRichard Uhler <ruhler@google.com>2019-05-01 09:10:36 +0000
commit2124d4b313e2401ab00d51192a364e7f0775cb92 (patch)
tree76f317d6da873def8a1d652acc7296b1612878b2 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent7abba0a4bcb603ba5a856a4b739b59c26d73d8f8 (diff)
Ensure race between rollback and roll forward is properly handled
If rollback for a package is committed at the same time the package is updated, it's possible we will incorrectly roll back the newly updated version of the application. Add a hidden API to the package installer that lets you set a required existing version of a package to be updated. If the expected package version is not installed at the time of commit, the update install fails. The RollbackManager uses this new API to ensure that rollback will fail if the package in question was just updated. Test: atest RollbackTest, with new test added and manual confirmation that the race condition was exercised by the new test. Bug: 128831080 Change-Id: Ifa5627e257d2ef13e2b213ef0dbc93932797ce0d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions