akexorcist / ScreenshotDetection

[Android] Screenshot detection while user using your app
Apache License 2.0
160 stars 33 forks source link

onScreenCapturedWithDeniedPermission may be incorrect #5

Closed Lewin671 closed 2 years ago

Lewin671 commented 2 years ago

Hi, I have seen all the source codes of this project, and I notice that onScreenCapturedWithDeniedPermission may cause some unexpected results.

For example, if the external disk is put something new, then you will detect a new file and invoke onContentChanged, but it's actually not the screen capture.

akexorcist commented 2 years ago

This seem removing onScreenCapturedWithDeniedPermission might be the solution for this case. Because we cannot check the actual path of file without permission.