This question already has an answer here:
Just bought a Samsung Galaxy s7 Edge with Marshmallow pre-installed. I'm trying to get my phone to work with Android Auto.
The only way I could make my phone connect to my car is to enable Developer Options in the settings menu and change the USB configuration to "MTP Media Transfer Protocol".
My problem is that whenever I disconnect my phone, the change I made goes away and reverts back to "charging". So, now, every time I want to connect my phone to use Android Auto, I need to enter the settings and change the USB configuration back to MTP for it to work... really a pain in the butt.
Does anyone know if this is an Android issue or a Samsung issue? Also, is there a way to correct this?