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

Commit a16b1066 authored by Rhed Jao's avatar Rhed Jao Committed by Android (Google) Code Review
Browse files

Merge "Fix side channel disclosure via add or remove permission api"

parents fb5cb195 cb7df6cd
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -497,13 +497,10 @@ public final class Permission {
                if (permissionTree.getUid() == UserHandle.getAppId(callingUid)) {
                    return permissionTree;
                }
                throw new SecurityException("Calling uid " + callingUid
                        + " is not allowed to add to permission tree "
                        + permissionTree.getName() + " owned by uid "
                        + permissionTree.getUid());
            }
        }
        throw new SecurityException("No permission tree found for " + permissionName);
        throw new SecurityException("Calling uid " + callingUid
            + " is not allowed to add to or remove from the permission tree");
    }

    @Nullable