diff options
author | shafik <shafik@google.com> | 2019-05-03 17:36:42 +0100 |
---|---|---|
committer | shafik <shafik@google.com> | 2019-05-09 12:38:04 +0100 |
commit | 4831ad7039b068a3dc91c5bb9bd92a0f46800e77 (patch) | |
tree | bfd194cd5bb727f8791586fc21b40f78a879af1b /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 78cbd8f8c6f584cb2eb481938aa2b115aeb3d0eb (diff) |
Fail to enable rollback if enable rollback times out
Make PackageManager send a ACTION_CANCEL_ENABLE_ROLLBACK intent to
RollbackManager. RollbackManager marks the relevant rollback as invalid.
Allow enable rollback to continue as usual, before making the rollback
available, RollbackManager checks whether it's valid. If it's not, the
rollback data is deleted.
Add a test case for expired rollback enabling attempt in RollbackTest.
Test: atest RollbackTest#testEnableRollbackTimeoutFailsRollback
Test: manual -
* Set ENABLE_ROLLBACK_TIMEOUT_MILLIS to 1 ms using DeviceConfig
* Install a mainline module with rollback enabled
* adb shell dumpsys rollback
* observe that no rollback was made available
Fixes: 131679409
Change-Id: Iaa4dbff002b820aff1fc3e1b985f129cf5ebe2e6
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions