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

Commit d7b6815d authored by Patrick Baumann's avatar Patrick Baumann
Browse files

Revert "Install for all on replace"

This reverts commit dccef33d.

Reason for revert: Breaks ADB install disabled setting

Change-Id: Icad438c592eb8e3be2a321e41fd75f9d577b002f
parent 7c001864
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