Open DavidBerdik opened 1 month ago
Android 15 is going to add similar "feature", but for screen recording - see this. It would be nice if you will add support for it (of course when its source code will be published).
@tomaszk8266 I was not aware of this! Thank you for bringing it to our attention!
Ticket #54 will track this.
@tomaszk8266 Thanks for bringing it up! This would definitely be a great feature for this project.
Prior to the release of Android 14, the standard approach to detecting screenshots was to use a
FileObserver
orContentObserver
. Many apps still use this approach even on Android 14. Instagram is an example of one such app.Adding support for blocking this detection method would be an excellent addition to CaptureSposed. I would recommend checking out ShotWatch as well as this Medium post from the ShotWatch author.
It is already possible to bypass screenshot detection for apps that use this approach by leveraging Storage Isolation to blacklist access to the Screenshots directory, but building this functionality directly into CaptureSposed would make it much more user-friendly.
When adding this feature, it is important to ensure that
FileObserver
andContentObserver
continue to work properly, as there are legitimate uses for these features. The only thing that we want to break is screenshot detection.