Some time ago with Android 11 SYSTEM_ALERT_WINDOW
draw-over-applications touch behaviour was limited with a number of exceptions.
- Interactions within your app.
- Accessibility windows
- Input method editor (IME) windows
- Assistant windows
- Completely transparent windows. The alpha property is 0.0 for the window.
- Sufficiently translucent system alert windows. (0.8)
If I set my view opacity to be <0.8
it passes-through touches as expected - except for SurfaceView
. Because my application uses a full-screen surface view drawn over other apps (overlay), the limitation basically blocks any pass-through touches.
Is this a technical limitation or is there a workaround for this new Untrusted touch events are blocked
policy when SurfaceView
is used?