Sounds like super glue is the solve.
Illustration of a design flaw with the HTC One headphone jack that causes noise/static in the headphones and "phantom" button presses from the in-line buttons of a headset : htcone
- - - Updated - - -
Sounds like super glue is the solve...