My smartphone has sensors those:
Step Detector | Qualcomm | 0x0000001e | on-demand | no batching support | last=<0.000000>
Step Counter | Qualcomm | 0x0000001f | on-demand | no batching support | last=<0>
I think , when I shake phone (or when walk), Step Detector is running and send a data to applications. If I'm right, I can send a fake event with ADB connection. But I can't find anything about this.
For example:
adb shell sendevent StepDetector