How to send fake Accelerometer values to an app on a real device?

懵懂的女人 提交于 2019-12-21 12:22:15

问题


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.


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/17062749/how-to-send-fake-accelerometer-values-to-an-app-on-a-real-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!