Or use a module like XPL-EX to sandbox the app and randomize any information. You'll need LSPosed and Magisk.
It isn't foolproof, but at least allows for a better privacy than installing it normally.
The foolproof way is of course not using it at all.
Those adapters are awful to use.
You first have to plug in the adapter to your phone, and then plug the headphones into the adapter.
If you keep the adapter plugged into your headphones, it doesn't recognize the headphones when you plug in the adapter.
And then there is the matter of losing said adapter.