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

Commit 74510e4c authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by android-build-merger
Browse files

Merge "Fix an accidentally reverted condition" into pi-dev am: 7c3c4d38

am: 691c9a55

Change-Id: I4bde2ae5b04791a51c9f3e258318e019bc197333
parents dbaaa54a 691c9a55
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -641,9 +641,8 @@ public class PermissionManagerService {
                enforcePermissionCapLocked(info, tree);
                bp = new BasePermission(info.name, tree.getSourcePackageName(),
                        BasePermission.TYPE_DYNAMIC);
            } else if (bp.isDynamic()) {
                // TODO: switch this back to SecurityException
                Slog.wtf(TAG, "Not allowed to modify non-dynamic permission "
            } else if (!bp.isDynamic()) {
                throw new SecurityException("Not allowed to modify non-dynamic permission "
                        + info.name);
            }
            changed = bp.addToTree(fixedLevel, info, tree);