Merge "Fix deadlock in BackupManagerService"
This commit is contained in:
committed by
Android (Google) Code Review
commit
42bc0e946f
@@ -760,15 +760,15 @@ class BackupManagerService extends IBackupManager.Stub {
|
||||
sf.delete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Enqueue a new backup of every participant
|
||||
int N = mBackupParticipants.size();
|
||||
for (int i=0; i<N; i++) {
|
||||
int uid = mBackupParticipants.keyAt(i);
|
||||
HashSet<ApplicationInfo> participants = mBackupParticipants.valueAt(i);
|
||||
for (ApplicationInfo app: participants) {
|
||||
dataChangedImpl(app.packageName);
|
||||
}
|
||||
// Enqueue a new backup of every participant
|
||||
int N = mBackupParticipants.size();
|
||||
for (int i=0; i<N; i++) {
|
||||
int uid = mBackupParticipants.keyAt(i);
|
||||
HashSet<ApplicationInfo> participants = mBackupParticipants.valueAt(i);
|
||||
for (ApplicationInfo app: participants) {
|
||||
dataChangedImpl(app.packageName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user