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

Commit 23d4f7cf authored by Jeff Davidson's avatar Jeff Davidson Committed by Android Git Automerger
Browse files

am 5061b516: am 2fe51373: am 22d20774: am 20de377b: am 1d7c3254: Merge...

am 5061b516: am 2fe51373: am 22d20774: am 20de377b: am 1d7c3254: Merge "Correctly propagate permissions when uninstalling updates." into mnc-dev

* commit '5061b516':
  Correctly propagate permissions when uninstalling updates.
parents 741a2cb9 5061b516
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -13054,6 +13054,10 @@ public class PackageManagerService extends IPackageManager.Stub {
        synchronized (mPackages) {
            PackageSetting ps = mSettings.mPackages.get(newPkg.packageName);
            // Propagate the permissions state as we do not want to drop on the floor
            // runtime permissions. The update permissions method below will take
            // care of removing obsolete permissions and grant install permissions.
            ps.getPermissionsState().copyFrom(newPs.getPermissionsState());
            updatePermissionsLPw(newPkg.packageName, newPkg,
                    UPDATE_PERMISSIONS_ALL | UPDATE_PERMISSIONS_REPLACE_PKG);