99keshav99 / CaptureSposed

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

Modify Hooker to Allow for Screenshot Listener to be Registered #22

Closed DavidBerdik closed 4 months ago

DavidBerdik commented 4 months ago

This pull request modifies the hook to allow for screenshot detection to be toggled on and off at will. To do this, the hook has been modified to allow the listener to be registered as normal, and instead, we hook the function responsible for sending broadcasts to listeners.

https://github.com/99keshav99/CaptureSposed/assets/7663225/a0932716-70c3-44ee-9f7a-f70403dd5974