99keshav99 / CaptureSposed

Xposed module that effectively disables the newly introduced screenshot detection API in Android 14
GNU Affero General Public License v3.0
89 stars 5 forks source link

Add Support for Blocking Alternative Screenshot Detection Methods #46

Open DavidBerdik opened 1 month ago

DavidBerdik commented 1 month ago

Prior to the release of Android 14, the standard approach to detecting screenshots was to use a FileObserver or ContentObserver. 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 and ContentObserver continue to work properly, as there are legitimate uses for these features. The only thing that we want to break is screenshot detection.

tomaszk8266 commented 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).

DavidBerdik commented 1 month ago

@tomaszk8266 I was not aware of this! Thank you for bringing it to our attention!

Ticket #54 will track this.

99keshav99 commented 1 month ago

@tomaszk8266 Thanks for bringing it up! This would definitely be a great feature for this project.