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

Commit b172aaf7 authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by Automerger Merge Worker
Browse files

Merge changes from topic "12940341" into oc-dev am: a9a03ae6

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12987876

Change-Id: I8c63d7910a37c7c994611ac7c6c19d1e1f6bdc94
parents ebfe0735 a9a03ae6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -11677,7 +11677,7 @@ public class PackageManagerService extends IPackageManager.Stub
                    permissionMap.put(p.info.name, bp);
                }
                boolean wasNormal = bp.type == BasePermission.TYPE_NORMAL;
                boolean wasNonRuntime = !bp.isRuntime();
                if (bp.perm == null) {
                    if (bp.sourcePackage == null
                            || bp.sourcePackage.equals(p.info.packageName)) {
@@ -11721,7 +11721,7 @@ public class PackageManagerService extends IPackageManager.Stub
                    bp.protectionLevel = p.info.protectionLevel;
                }
                if (bp.isRuntime() && (ownerChanged || wasNormal)) {
                if (bp.isRuntime() && (ownerChanged || wasNonRuntime)) {
                    // If this is a runtime permission and the owner has changed, or this was a normal
                    // permission, then permission state should be cleaned up
                    bp.setPermissionDefinitionChanged(true);