diff options
author | Ruslan Tkhakokhov <rthakohov@google.com> | 2018-11-12 11:09:04 +0000 |
---|---|---|
committer | Ruslan Tkhakokhov <rthakohov@google.com> | 2018-11-13 21:13:14 +0000 |
commit | eb6dabcdde47d20ba87a792e3349931f834a3348 (patch) | |
tree | a5bd22062b095ab8e8ac859a3df771ba54022134 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 449563024b648ef5fb1ace9245891ee67562bbda (diff) |
KV] Don't set current token if no data was moved
Bug: 119299848
Test:
1) atest KeyValueBackupTaskTest
2) Manual:
- Run 'adb shell bmgr init' for the active transport to wipe all backup data
- Run 'adb shell dumpsys backup' and verify string 'Current: 0', i.e. the current token is
set to 0
- Create a test app implementing a BackupAgent that writes no data in onBackup() and
install it on the device
- Run 'adb shell bmgr backupnow --non-incremental <test_app_package>' to initiate a backup,
where --non-incremental flag makes sure PM is not added to the backup queue
- Run 'adb shell dumpsys backup' and verify string 'Current: 0' again
Change-Id: I595bea9874fd84d0c81b32a509c970a1b142872c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions