Merge "Don't back up apps in the 'stopped' state" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3301f76b23
@@ -1992,6 +1992,15 @@ class BackupManagerService extends IBackupManager.Stub {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((mCurrentPackage.applicationInfo.flags & ApplicationInfo.FLAG_STOPPED) != 0) {
|
||||||
|
// The app has been force-stopped or cleared or just installed,
|
||||||
|
// and not yet launched out of that state, so just as it won't
|
||||||
|
// receive broadcasts, we won't run it for backup.
|
||||||
|
addBackupTrace("skipping - stopped");
|
||||||
|
executeNextState(BackupState.RUNNING_QUEUE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
IBackupAgent agent = null;
|
IBackupAgent agent = null;
|
||||||
try {
|
try {
|
||||||
mWakelock.setWorkSource(new WorkSource(mCurrentPackage.applicationInfo.uid));
|
mWakelock.setWorkSource(new WorkSource(mCurrentPackage.applicationInfo.uid));
|
||||||
|
|||||||
Reference in New Issue
Block a user