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

Commit b6df9fb2 authored by Cole Faust's avatar Cole Faust Committed by Gerrit Code Review
Browse files

Merge "Add instructions on how to annotate an AIDL interface"

parents 43981a85 c546b3f7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -187,7 +187,10 @@ public final class RequiresPermissionChecker extends BugChecker
        if (!actualPerm.containsAll(expectedPerm)) {
            return buildDescription(tree)
                    .setMessage("Method " + method.name.toString() + "() annotated " + expectedPerm
                            + " but too wide; only invokes methods requiring " + actualPerm)
                            + " but too wide; only invokes methods requiring " + actualPerm
                            + "\n  If calling an AIDL interface, it can be annotated by adding:"
                            + "\n  @JavaPassthrough(annotation=\""
                            + "@android.annotation.RequiresPermission(...)\")")
                    .build();
        }