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

Commit 947520ab authored by Sherry Huang's avatar Sherry Huang Committed by Android (Google) Code Review
Browse files

Merge "TIF: enable check self-permission for tuner resource access" into main

parents 8b52e795 e79a9227
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3085,7 +3085,7 @@ public final class TvInputManagerService extends SystemService {
        }

        private void ensureTunerResourceAccessPermission() {
            if (mContext.checkCallingPermission(
            if (mContext.checkCallingOrSelfPermission(
                    android.Manifest.permission.TUNER_RESOURCE_ACCESS)
                    != PackageManager.PERMISSION_GRANTED) {
                throw new SecurityException("Requires TUNER_RESOURCE_ACCESS permission");