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

Commit 69b7abec authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Android (Google) Code Review
Browse files

Merge "Change permission check to include self." into main

parents b9efb765 f3d4d298
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -12360,7 +12360,8 @@ public class AudioService extends IAudioService.Stub
    }
    private boolean callerHasPermission(String permission) {
        return mContext.checkCallingPermission(permission) == PackageManager.PERMISSION_GRANTED;
        return mContext.checkCallingOrSelfPermission(permission)
                == PackageManager.PERMISSION_GRANTED;
    }
    /** @return true if projection is a valid MediaProjection that can project audio. */