Comment on In North Korea, your phone secretly takes screenshots every 5 minutes for government surveillance
WhyJiffie@sh.itjust.works 3 days agoOut of over 17,000 Android apps examined, more than 9,000 had potential permissions to take screenshots. And a number of apps were found to actively be doing so, taking screenshots and sending them to third-party sources.
this is a weird paragraph. no permission is needed for an app to take screenshots of itself. all apps can do that.
just an example: the Element matrix client has a bugreport feature that allows you to submit an automatically created screenshot of the previous menu.
it seems there are several ways to accomplish this: stackoverflow.com/…/how-to-programmatically-take-…
dan@upvote.au 2 days ago
Do those code snippets on the Stackoverflow post allow you to capture the entire screen regardless of which app is open, or do they only allow you to capture the app the code is running in?
Capturing the app itself makes sense (for things like bug reports) but does Android really let any app capture whatever is on the screen?
WhyJiffie@sh.itjust.works 2 days ago
no, they only allow the app to capture its own screen content. to make a regular screenshot of the whole display, the app needs a permission that the user has to approve every single time, at least on most phones. that API is actually for continuous screen recording, but of course usable for this purpose too. this also means that after getting approved by the user, the app can keep its recording sessions to keep more screenshots, but that ends when the app gets killed by android. I think the system also shows a notification when an app is recording, but as anything that too could vary with phones.