Comment on In North Korea, your phone secretly takes screenshots every 5 minutes for government surveillance
dan@upvote.au 2 days agoDo 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.