Question

I have again a question where I am stuck at. Seems like the possibilities with Android aren't so "endless". My app (systemsigned) is now able to inject KeyEvents and PointerSyncs - using Instrumentation API - to the currently focused app. Now I want the same for a gyroscope, gravity-sensor or a accelerometer. Is it possible to inject those events programmatically? [Without (su) shell if possible]

Thank you!

Was it helpful?

Solution

I figured out that it is not possible by default Android API!

But what you could do is to modify the sensor unix buffer that is somewhere stored in a file. However this requieres Root & SU access.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top