am 6f317426: Don\'t issue a deletion for the global metadata backup
Merge commit '6f317426e49e73ef3e50d8839877504039cd2fca' * commit '6f317426e49e73ef3e50d8839877504039cd2fca': Don't issue a deletion for the global metadata backup
This commit is contained in:
committed by
The Android Open Source Project
commit
a2b2223817
@@ -120,7 +120,10 @@ public class PackageManagerBackupAgent extends BackupAgent {
|
||||
// write its signature block to the output, keyed on the package name.
|
||||
for (PackageInfo pkg : mAllPackages) {
|
||||
String packName = pkg.packageName;
|
||||
if (!existing.contains(packName)) {
|
||||
if (packName.equals(GLOBAL_METADATA_KEY)) {
|
||||
// We've already handled the metadata key; skip it here
|
||||
continue;
|
||||
} else if (!existing.contains(packName)) {
|
||||
// We haven't stored this app's signatures yet, so we do that now
|
||||
try {
|
||||
PackageInfo info = mPackageManager.getPackageInfo(packName,
|
||||
|
||||
Reference in New Issue
Block a user