You can't really replace android-media-player-service on your phone with your patched version without replacing the whole OS and losing (among other things) automated security updates and OEM stuff... so I can see how a hardware fix is easier. The system of <phone> -- <headphones> is more modular.