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

Commit 0ccc2b0a authored by Michael Wright's avatar Michael Wright
Browse files

Flip the permissions checks for video capture.

Currently they're backwards in DisplayManagerService. Oops.

Bug: 16315225
Change-Id: I9bbfc0f4aef1bd21e43594cc36c6e8fd112f0b81
parent cfec0fba
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1367,7 +1367,7 @@ public final class DisplayManagerService extends SystemService {
            }
            if (mContext.checkCallingPermission(
                    android.Manifest.permission.CAPTURE_VIDEO_OUTPUT)
                    != PackageManager.PERMISSION_GRANTED) {
                    == PackageManager.PERMISSION_GRANTED) {
                return true;
            }
            return canProjectSecureVideo(projection);
@@ -1385,7 +1385,7 @@ public final class DisplayManagerService extends SystemService {
            }
            return mContext.checkCallingPermission(
                    android.Manifest.permission.CAPTURE_SECURE_VIDEO_OUTPUT)
                    != PackageManager.PERMISSION_GRANTED;
                    == PackageManager.PERMISSION_GRANTED;
        }
    }