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

Commit 112bc166 authored by Ruslan Tkhakokhov's avatar Ruslan Tkhakokhov Committed by Android (Google) Code Review
Browse files

Merge "Don't check allowBackup in PackageManager"

parents bd2c81f5 0c098c47
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -14541,13 +14541,11 @@ public class PackageManagerService extends IPackageManager.Stub
            Log.v(TAG, "restoreAndPostInstall userId=" + userId + " package=" + res.pkg);
        }
        // A restore should be performed at this point if (a) the install
        // succeeded, (b) the operation is not an update, and (c) the new
        // package has not opted out of backup participation.
        // A restore should be requested at this point if (a) the install
        // succeeded, (b) the operation is not an update.
        final boolean update = res.removedInfo != null
                && res.removedInfo.removedPackage != null;
        boolean allowBackup = res.pkg != null && res.pkg.isAllowBackup();
        boolean doRestore = !update && allowBackup;
        boolean doRestore = !update;
        // Set up the post-install work request bookkeeping.  This will be used
        // and cleaned up by the post-install event handling regardless of whether