Send "step" sensor event from ADB
I had a quick look on Stack and i found this .  it might be helpful in the situation....    

If you are using ADB, you will need to command into the shell with

adb shell        - for opening shell

su        - to gain root via superuser - Optional

sensor set acceleration 0:0:0 

sensor set acceleration 99:99:99


here is the references i found StackOverflow Comment