For GPS, I fill a .csv file with the coordinates, direction and speed and a tool my company made (a web page accesible only from lan) turns it into a .bin file, which I put in the device’s memory. Then I reboot it and it starts reading the coordonates in a loop. Acceleration is made in a similar way. I’m sorry I can’t help you do it, but this is not something i made myself. However, before I had access to this tool, I used an app. Search “mock GPS” in play store, many applications allow you to do it (the one i used was named “mock locations”, free version). For wifi, you can use Xposed (quick web search).