Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Windows screenshot when Android denys screenshots but Window screen shows content? #5719

Open
pstein opened this issue Dec 30, 2024 · 1 comment

Comments

@pstein
Copy link

pstein commented Dec 30, 2024

It occurs sometimes that Android disallows taking a screenshot in certain Apps.

When I connect from Windows to Android and open such an App the App content is successfully shown in Windows scrcpy window.
Unfortunately scrcpy follows the no-screenshot rule and does not allow screenshots too.
Resp the resulting image is just black.

However the content must be available somewhere in Windows system (possibly in RAM storage).
Is there really no way to take a screenshot (outside of scrcpy) of such protected screen content?

@rom1v
Copy link
Collaborator

rom1v commented Dec 30, 2024

It occurs sometimes that Android disallows taking a screenshot in certain Apps.

Yes, either using DRM (like Netflix) or enabling the "secure flag" (like lock screens or banking apps).

View with the "secure flag" enabled can no longer be captured by shell since Android 12 (#36 #2129).

When I connect from Windows to Android and open such an App the App content is successfully shown in Windows scrcpy window.

If it appears in the scrcpy window, then it is correctly captured, so you get the content. Btw, if you record (scrcpy --record=file.mp4), the content will be recorded.

Unfortunately scrcpy follows the no-screenshot rule and does not allow screenshots too.

I have no idea what you are talking about. Either the image cannot be captured on Android, and it is black (including in the scrcpy window), either it can be captured, and you can record/screenshot it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants