I had this same problem on nexus 6p. when i plugged in id didnt ask what i wanted to do with the usb connection so it just charged. in developers options under the networking header there is "select usb configuration" where you can select mtp or whatever you want to do. worked for me. HTH...