How to read touch and accelerometer data

Hello everyone,

We need to read some touch data and accelerometer while the app is inactive to continuous identify the user.

Is this possible with exposed APIs, or do we need something different?

Thank you in advance for your help.

Cheers,

Ilgün

I don’t think an inactive app would be allowed to get touch events : it is like a keylogger. Privacy will prevent you to do this.

Three things:

  • If the app is inactive you have a very limited set of things you can perform in the background, and I don't think recording accelerometer data is allowed.
  • An inactive app definitely isn't going to receive touch events. As has been mentioned, that would seem very much like a key logger.
  • You must only work with the exposed APIs. You cannot use private APIs. Any app you create that uses them will be rejected.
How to read touch and accelerometer data
 
 
Q