I think my headphone or phone jack broke, and if I move the jack a bit, somehow the headphones activate the google assistant or pause the music, so this is from the button.
Can I deactivate it on a non rooted Huawei P8Lite (Android 6.0)
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.Sign up to join this community
Software wise: HeadsetBlocker & Wizdroid both attempt to block headphone buttons. However both are very outdated. Can install and try.
Hardware wise: You can try a 4 pole to 3 pole adapter to remove the microphone (I am not positive this will work)