News for hackers. Stuff that matters.
Re:Screenshots as the Universal API by FartyMcFarter on Wednesday January 18, 2023 @05:43AM (#34425295)
> Screenshots are always available

Unfortunately not, certainly not on mobile. I don't know if this is the case on iPhone, but on Android some apps make it really hard or impossible to screenshot them.

I think in recent Android versions they can even prevent the screen from getting mirrored to a connected PC / other casting device.

Re:Screenshots as the Universal API by spoiler on Wednesday January 18, 2023 @05:52AM (#34425331)
Even on Windows and Mac (don't know about Linux) when browsing, you sometimes can't take screenshot of a portion on the website (only seen this with videos, though).

We are not allowed to take a screenshot on a device we own, for content we paid for. What a world.

Re:Screenshots as the Universal API by pram on Wednesday January 18, 2023 @06:40AM (#34425606)
I think it's called HDCP? When you take a screenshot of a paid movie in Apple TV or something it's just a black box.
Re:Screenshots as the Universal API by alwayslikethis on Wednesday January 18, 2023 @07:35AM (#34425957)
* * *
Re:Screenshots as the Universal API by WhyNotHugo on Wednesday January 18, 2023 @08:13AM (#34426222)
This smells like DRM to me, an it's not a thing on Linux (thankfully). You'd probably have to install DRM yourself for this to be a thing.

Note: I mean Digital Restrictions Management[1] here, not Direct Rendering Manager[2].

[1]: https://www.defectivebydesign.org/ [2]: https://www.kernel.org/doc/html/v5.4/gpu/introduction.html

Re:Screenshots as the Universal API by Mindwipe on Wednesday January 18, 2023 @09:19AM (#34426850)
> This smells like DRM to me, an it's not a thing on Linux (thankfully). You'd probably have to install DRM yourself for this to be a thing.

That is also the reason why Linux doesn't (and likely never will) get served high resolution content by any significant paid service however.

Re:Screenshots as the Universal API by hnbad on Wednesday January 18, 2023 @09:21AM (#34426878)
I think this has to do with the content in question being rendered on the GPU separately from the website itself. Historically I recall this being an issue with all forms of video display in some browsers but at this point (with website rendering generally being at least in part GPU accelerated) it shouldn't be an issue I think unless for some reason the browser is set up to use software rendering for the website itself.

I do faintly recall not being able to see video player content in screenshots taken on Ubuntu (but the player itself could take snapshots just fine) because of a divide like this some years ago.

Re:Screenshots as the Universal API by barbazoo on Wednesday January 18, 2023 @10:42AM (#34428056)
I have never experienced that on any device, do you have an example?
Re:Screenshots as the Universal API by contravariant on Wednesday January 18, 2023 @06:28AM (#34425542)
I still find it weird that this has no override.

I can vaguely understand the security concern, but it's my device, running my OS, why can't I make a simple screenshot?

Re:Screenshots as the Universal API by lathiat on Wednesday January 18, 2023 @07:48AM (#34426036)
Probably because it’s also tied in with DRM video decoding / HDCP where the prevailing opinion of those bodies is that it very much isn’t your device.
Re:Screenshots as the Universal API by WhyNotHugo on Wednesday January 18, 2023 @08:15AM (#34426238)
A banking app an Android showed multiple obscure error messages when trying to log in and reporting the error was a PITA because they forbid screenshots.

I know sharing a screenshot of my bank statement is a bad idea, but forbidding it completely is a ridiculous extreme.

Re:Screenshots as the Universal API by Mindwipe on Wednesday January 18, 2023 @09:22AM (#34426893)
FWIW the concern here isn't you taking a screenshot, it's that an illicit app in the background is screen recording your phone and sending it off.
Re:Screenshots as the Universal API by yencabulator on Thursday January 19, 2023 @07:59PM (#34447844)
Well prevent that then. That's undesirable outside of banking apps.

(On Android, you can only get into that swamp by opting in to "accessibility" features, which specifically need access to screen contents.)

Re:Screenshots as the Universal API by Mindwipe on Sunday January 22, 2023 @05:21PM (#34482862)
You prevent that by stopping any software in userland from being able to access the video path, which is an all or nothing thing.

Accessibility is only required if the app doesn't have system permissions, or if it's not carried out a privilege escalation. Though granted a privilege escalation might also be able to gain root to turn off setting a secure surface too (that's not enough to get past Widevine if that's been used but banks generally are not).

Re:Screenshots as the Universal API by Mindwipe on Wednesday January 18, 2023 @09:21AM (#34426871)
> I can vaguely understand the security concern, but it's my device, running my OS, why can't I make a simple screenshot?

It's not about screenshots, the point is that screen recording is blocked because the OS can't see the encrypted video path. As it can't there's nothing to take a screenshot of.

(Indeed, you can take a screenshot. It just comes out with all the video data nulled, so it's a black square.)

Re:Screenshots as the Universal API by baxtr on Wednesday January 18, 2023 @05:54AM (#34425341)
Super easy on iOS.
Re:Screenshots as the Universal API by FartyMcFarter on Wednesday January 18, 2023 @06:39AM (#34425600)
Do you mean super easy to take a screenshot of any app, or super easy for apps to prevent that?
Re:Screenshots as the Universal API by denkquer on Wednesday January 18, 2023 @08:18AM (#34426263)
impossible to prevent
Re:Screenshots as the Universal API by baxtr on Wednesday January 18, 2023 @11:14AM (#34428595)
Not sure. Try screenshoting a Netflix movie
Re:Screenshots as the Universal API by azinman2 on Wednesday January 18, 2023 @12:15PM (#34429597)
That’s DRM’d video, the one exception.
Re:Screenshots as the Universal API by baxtr on Wednesday January 18, 2023 @11:14AM (#34428590)
I meant easy to do as user. Sorry.
Re:Screenshots as the Universal API by danbruc on Wednesday January 18, 2023 @07:06AM (#34425750)
With some loss of fidelity, convenience and reaction time, you can always just point a camera at the screen. If no other device is available, a mirror might help.
Re:Screenshots as the Universal API by saurik on Wednesday January 18, 2023 @08:09AM (#34426201)
A mirror doesn't help as you can't simultaneously take a photo and be in a different non-camera app looking at something.
Re:Screenshots as the Universal API by danbruc on Wednesday January 18, 2023 @08:38AM (#34426458)
I think my phone will take a photo without bringing up the camera app UI with a certain button combination. But I am not sure if I could make this use the front camera.
Re:Screenshots as the Universal API by WhyNotHugo on Wednesday January 18, 2023 @08:11AM (#34426215)
It's not the case on iOS. On iOS applications can't prevent screenshots -- though applications are notified when you take a screenshot.

I briefly used Android and the fact that applications can prevent screenshots is a horrible decision, closer to DRM than to a user-centric design.

Re:Screenshots as the Universal API by latexr on Wednesday January 18, 2023 @08:55AM (#34426612)
> On iOS applications can't prevent screenshots

Maybe not, but it’s all the same if they can make the screenshot useless. Using Netflix as an example: when you take a screenshot video controls will be visible, but the content behind them won’t be.

Re:Screenshots as the Universal API by azinman2 on Wednesday January 18, 2023 @12:14PM (#34429586)
DRM’d video is the one exception.
Re:Screenshots as the Universal API by hnbad on Wednesday January 18, 2023 @09:18AM (#34426833)
The silliest example of this I've seen is "private browsing" mode not allowing screenshots. The point of the mode for me and everyone I know is to have isolated browser sessions for the websites I visit and not have the browser add them to my browsing history. Not to shield what I'm seeing from the OS itself when I try to disclose it.
Re:Screenshots as the Universal API by realitysballs on Wednesday January 18, 2023 @09:43AM (#34427156)
Iphone can always screenshot , no restrictions there.