Temporarily rollback a change that's causing SetupWizard failures during restore. #2042337

Don't kill the process of the package that's being restored. This is causing a chain
reaction of killing a provider needed by the setup process.
This commit is contained in:
Amith Yamasani
2009-08-07 20:26:13 -07:00
parent c0f0115279
commit 2e6bca6901

View File

@@ -792,11 +792,15 @@ class BackupManagerService extends IBackupManager.Stub {
synchronized(mClearDataLock) {
mClearingData = true;
/* This is causing some critical processes to be killed during setup.
Temporarily revert this change until we find a better solution.
try {
mActivityManager.clearApplicationUserData(packageName, observer);
} catch (RemoteException e) {
// can't happen because the activity manager is in this process
}
*/
mPackageManager.clearApplicationUserData(packageName, observer);
// only wait 10 seconds for the clear data to happen
long timeoutMark = System.currentTimeMillis() + TIMEOUT_INTERVAL;