Serve Android sensors with fake data

I would like to ask if there is a way to feed Android sensors with fake data.

For example, you can feed a GPS sensor with mock locations using:

$ telnet localhost 5554 Android Console: type 'help' for a list of commands OK geo fix -82.411629 28.054553 OK 

Question 1: Can you do the same with real devices?

Question 2: Can you do the same with other sensors (like an accelerometer)?

+4
source share

All Articles