Is there a way to switch to charging only before plugging my phone into an USB? Is there a way on Android 6.0 to switch to charging only before plugging my phone into an USB?
Enable developer options - To enable Developer Options, go to Settings and select About phone. Now, scroll down and find out Build number. Tap on this option around 7 times. You will get a success message
You will find Select USB configuration . Tap on that too open a sub menu and choose Charging only
Next time you connect, it will revert to charging automatically