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

Commit 1f5dc8ee authored by Utkarsh Nigam's avatar Utkarsh Nigam Committed by Android (Google) Code Review
Browse files

Merge "Return early when the caller doesn't have any permission." into main

parents 00cf61a1 58b799a7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -112,6 +112,10 @@ class CallerValidatorImpl implements CallerValidator {
                mContext.checkPermission(Manifest.permission.EXECUTE_APP_FUNCTIONS, pid, uid)
                        == PackageManager.PERMISSION_GRANTED;

        if (!hasExecutionPermission) {
            return AndroidFuture.completedFuture(false);
        }

        final long token = Binder.clearCallingIdentity();
        try {
            FutureAppSearchSession futureAppSearchSession =