Whenever my device (Nexus 5, Android M Preview 3) connects via USB, the USB config always defaults to \"charging only\".
This is quite problematic because the USB port
I just tried this on my Nexus 5 (Android 6.0.1) and it worked:
The trick was to have a phone disconnected from USB. I guess the idea behind such a behavior was that if you set an USB connection type while your phone is not connected to any device, it will be treated as a default behavior.