Charge & data mode when connecting phone to PC via USB (Nougat) When I connect my phone to my PC via USB. It automatically enters charge mode.

If I want to transfer files (which is almost always what I want to do when connecting my phone to my PC), I have to select charge &amp; data mode --> transfer files.

Always doing this when connecting my phone to my PC is slightly laborious, and I was just wondering is there a way to connect my phone to my PC &amp; cause to autmatically default to charge &amp; data mode?

I used to have a Moto G Gen 1 (Kitkat), which did this by default, why can't this be the case on Nougat.
The default behaviour in Marshmallow upwards is to charge and other options have to be manually selected

Being an OS behaviour, you can't modify it without rooting device. If your device is rooted, you can install this Xposed module - USB for Marshmallow


  Set MTP or PTP as Default USB Connection on Marshmallow with this app.
  
  Once you connect the phone to the computer and select the USB option from the notification and selected option will be retained for every reconnect your phone to computer.
  
  For example if you select the USB file transfer option, This app will retain that file transfer option for every reconnect your phone to computer.


It's also available on Play Store as an Xposed app

If you are on Nougat, this option may not be possible till Xposed framework is released - see Where can I find the Xposed Framework and installer for Nougat?