diff options
| author | 2022-10-31 13:54:42 +0000 | |
|---|---|---|
| committer | 2022-11-20 20:44:29 +0000 | |
| commit | 104604674f01be4cf4b9d35d38ed14bd1046e987 (patch) | |
| tree | e65a47ce130db12e8a43e7683ecbe3f80c0cd9c8 /libs/androidfw/StringPool.cpp | |
| parent | f9ca7a2ffd2e7fdad707e449f249c4826d02575d (diff) | |
Pass agent logs to monitor after package B&R
In this change B&R tasks ask for logs from each BackupAgent after it is
backed up or restored. These logs are then immediately passed on to the
BackupManagerMonitor.
Bug: 252760247
Change-Id: Iaf43ce61e98bb4b42c05c18a46031a06d41abb12
Test: $ atest BackupFrameworksServicesRoboTests:KeyValueBackupTaskTest
$ atest BackupManagerMonitorUtilsTest
Unfortunately, the other classes are not unit testable.
For manual testing, I implemented some fake loggers for various
BackupAgents, passed in a fake BackupManagerMonitor, ran B&R with the
following commands, and observed that the monitor received the logs.
1. $ adb shell bmgr backupnow --all
2. $ adb shell bmgr restore ... (for one KV and one FullBackup package)
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions