I want to intercept sensor events in Android and override (fix) transmitted data. Is it possible?
The solution should work for all applications using that sensor.
UPDATE
I need to override magnetometer and accelerometer.
|
I want to intercept sensor events in Android and override (fix) transmitted data. Is it possible? The solution should work for all applications using that sensor. UPDATE I need to override magnetometer and accelerometer. |
|||||||||||
|
|
No, you cannot natively override the magnetometer and accelerometer sensors. Android does not have an API for this (as opposed to GPS), and faking these signals would require programming a custom driver or kernel. It isn't a simple matter of getting root and changing a simple config file somewhere. |
|||
|
|