Is there a way for an app to:
- check if there exists screen overlay(s) on top of it, and
- figure out what package name owns the overlay(s)?
I know Android M and above is able to detect screen overlays when in the permissions page and deny permission changes whenever it detects screen overlays, but are developers able to achieve the same things in the app layer?