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

Commit 5f50e031 authored by Patrick Baumann's avatar Patrick Baumann Committed by android-build-merger
Browse files

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

am: 27c003dc

Change-Id: I5123ec44302a80c2d1e0c8655890898c6d1bc81d
parents 62d7369c 27c003dc
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -16814,12 +16814,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