Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e6bca69 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

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.
parent c0f01152
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;