diff options
author | Fabian Kozynski <kozynski@google.com> | 2020-03-11 15:49:19 -0400 |
---|---|---|
committer | Fabian Kozynski <kozynski@google.com> | 2020-03-30 11:19:22 -0400 |
commit | 66e975404c050926cd5dc4de25113627d40d7978 (patch) | |
tree | df412656f383c9d8ed57fdd14b17a4d779dad3a0 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | dce5a57376847ef7679f488e4fc77dc4c171bab0 (diff) |
Added Backup & Restore for SystemUI and controls
This CL adds support for Backup & Restore in SystemUI by adding
Key-Value BR through the use of a BackupAgent (BackupHelper.kt). Right
now, the only thing that is backed up in SystemUI is the
controls_favorites.xml file.
BackupAgent will send a broadcast to user 0 indicating that the restore
has been completed for a particular user.
Regarding controls BR:
* The file is set as changed every time it is written and will
participate in normal backups as determined by BackupManager.
* On restore, a copy is made to serve as cache of controls restored but
whose app is not installed yet.
* This cache is persisted for a week and deleted with a JobService.
Test: atest SystemUITests
Test: manual using LocalTransport
Fixes: 149210531
Change-Id: I6048f1ebd1d9021058778dff707c8c53c9989b35
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions