Hi I had the problem with my xperia z5 premium earphon detect as well. I used some "Contact Cleaner Spray" on some Cotton wraped on a wood stick and cleaned the plug hole using it! (I prefered not to spray the Contact cleaner directly to the Earphon Plug) And It worked perfectly! thanks a lot for your instructions.
... View more