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

Commit 55a6847a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix FrameworksServicesTests fail"

parents 1e48ab52 f13dbd5c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -468,7 +468,13 @@ public class AccessibilitySecurityPolicy {
        }
    }

    boolean hasPermission(String permission) {
    /**
     * Permission check to caller.
     *
     * @param permission The permission to check
     * @return true if caller has permission
     */
    public boolean hasPermission(@NonNull String permission) {
        return mContext.checkCallingPermission(permission) == PackageManager.PERMISSION_GRANTED;
    }