You don't have to turn it off and on, but leave it off. In practice, if "Hello MG" is turned on, Android Auto voice recognition does not work (I imagine it's the same with CarPlay). If you turn it off, it works fine
It's a software problem, not the microphone