Yeah whatever this is, it is related to my issue as well. When I am running and playing music on Spotify/Play Music/Etc, the phone works perfectly. When I plug in headphones, the phone becomes completely unworkable. Every two seconds the search bar pops open like I pressed the microphone button. It's incredibly annoying. And then when I unplug my headphones, everything works perfectly again, and I can go about my day listening to music from the phone.