How to send fake Accelerometer values to an app on

2019-04-08 13:39发布

For example, Location Spoofer gives out a fake location by using the Access Mock Location permission and I can make my device send out a signal that it's present in any place that I desire.

In the same way, can I fake the Accelerometer data to mock the various situations that a user can be in?

Thanks in advance.

2条回答
Luminary・发光体
2楼-- · 2019-04-08 13:59

You can use SensorSimulator to simulate acceleration in your android device or emulator (download link).

查看更多
萌系小妹纸
3楼-- · 2019-04-08 14:00

As i answered in this question: Simulate accelerometer values on a real device

You can send the values you want directly from your app, but i am not sure if you need to be root to do that.

查看更多
登录 后发表回答