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

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

Merge "Revert "Install for all on replace""

parents 5e4879c4 d7b6815d
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -16816,12 +16816,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