Simply from the error message alone, it's obvious that this is a bug. As well as from how easy the workaround is.
Google might do many things wrong intentionally, but I see zero evidence this is one of them. Just a bug, folks.
Simply from the error message alone, it's obvious that this is a bug. As well as from how easy the workaround is.
Google might do many things wrong intentionally, but I see zero evidence this is one of them. Just a bug, folks.
To me that implies Android supports individual apps locking down your device so that you can't use certain features (like screenshots) while the app is open.
https://developer.apple.com/forums/thread/93362
However, I'm not really sure that would work, since I don't think that would be able to bypass iOS prompting you to give that app access to your photo library.
There's a third-party "ScreenShieldKit" which claims to be able to do this:
So, apparently it's technically possible to block this, but AFAIK, Apple doesn't provide an equivalent to Android's FLAG_SECURE ("treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays").
DRM-protected video can't be recorded (or screenshotted) in iOS, but as another comment noted, that seems to be a video-specific thing.
Sure, you have workarounds for power-users, but Google is locking the Android ecosystem progressively for regular users. Just like the Manifest v3 for Chrome.
Maybe Google is doing the "Embrace, extend, and extinguish" strategy that worked really well for Microsoft in the past.
The thread is about behavior caused by a presumably erroneous ".nomedia" file residing in certain users' screenshot folders.
The FLAG_SECURE feature doesn't appear to have anything to do with that. Two entirely separate things, unless you can show otherwise.
Quoting the Android SDK reference : "FLAG_SECURE [...] Treat the content of the window as secure, preventing it from appearing in screenshots" [1] Try to screenshot while in Chrome's incognito, you'll see it in action.
[1] https://developer.android.com/reference/android/view/WindowM...
Read the error message! It's clearly related to the real feature, which means the bug can't be "entirely separate".
FLAG_SECURE has existed for as long as Android has. It can't possibly be evidence of locking down the ecosystem progressively as it's always been part of the ecosystem.
If someone were to prevent screenshots intentionally, and I had mal intent, I would make my best effort to make it seem unintentional.