summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Ruslan Tkhakokhov <rthakohov@google.com> 2023-03-21 13:47:15 +0000
committer Ruslan Tkhakokhov <rthakohov@google.com> 2023-04-17 11:53:31 +0000
commit9e50c50f65472892f1a11099c1f3f9a14cf90e81 (patch)
treeea3256d0cf6b7b0807980ad66410df6e5d79140c /libs/androidfw/StringPool.cpp
parent30b6c1965009711175cbd934aadb87b321208780 (diff)
Use correct backup mode for k/v restore
When creating BackupAgent for k/v restore, use BACKUP_MODE_RESTORE instead of BACKUP_MODE_INCREMENTAL, otherwise we can't differentiate between backup and restore operations. See https://b.corp.google.com/issues/272302093#comment5 for more context. Bug: 272302093 Test: 1. atest CtsBackupTestCases CtsBackupHostTestCases (covers functional testing of kv / full and backup / restore. 2. Update BackupAgent.java to print operationType param in onCreate() -> run backup and restore of 'android' (kv) and 'com.android.wallpaperbackup' (full) and verify operationType is always set correctly. Change-Id: I82c88ffaea639d8fb69b6c56a9fec0756ca45528
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions