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

Commit 691c9a55 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

Change-Id: Ib99b815996d5dc7168f9f9fcd4cd09651a5a5fc9
parents 5ba80b01 7c3c4d38
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -620,9 +620,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);