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

Commit 27c003dc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Install for all on replace"" into pi-dev

parents a994156b e71df98e
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -16803,12 +16803,6 @@ public class PackageManagerService extends IPackageManager.Stub
                if (userId != UserHandle.USER_ALL) {
                    ps.setInstalled(true, userId);
                    ps.setEnabled(COMPONENT_ENABLED_STATE_DEFAULT, userId, installerPackageName);
                } else {
                    for (int currentUserId : sUserManager.getUserIds()) {
                        ps.setInstalled(true, currentUserId);
                        ps.setEnabled(COMPONENT_ENABLED_STATE_DEFAULT, currentUserId,
                                installerPackageName);
                    }
                }
                // When replacing an existing package, preserve the original install reason for all