4

I would like to build an overlay that intercepts all touch events, registers them, but it is basically transparent and lets the touch events (and all other gestures) interact with the underlying apps.

What i've tried so far are the solutions proposed here

Android overlay to grab ALL touch, and pass them on?

Android : Multi touch and TYPE_SYSTEM_OVERLAY

but i'm able either to have a "transparent" that lets pass all touch events to the underlying apps, or an overlay that intercepts all touch events without letting them "pass down".

For what i've read and tried so far, it seems to be a security limitation, from Android 4.x and maybe this cannot be done at all.

I'm open to any kind of solution, thus maybe there is a way of making this work with root permissions, or using NDK, or dunno what else, as i'm quite new to Android programming.

Community
  • 1
  • 1
sissy
  • 2,908
  • 2
  • 28
  • 54
  • I know for certain that this cannot be done through 'normal' means (by just using the Android framework with no modifications) due to a 'security fix' as you mentioned. How I would approach it, would be to see if there are any sort of special flags for my Window (of the overlay) that can only be given to System apps (considering you want to work with root permission). – Alex Styl May 25 '15 at 17:04
  • There quite possibly are legitimate reasons to do what you want, but this is also the basic mechanism needed to implement the touch equivalent of a key logger. – mc0e Mar 16 '16 at 06:39

0 Answers0