53

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 on my device is faulty and sometimes disconnects and reconnects when bumped and so I have to manually change the mode to MTP (media transfer protocol) from the notification drawer each time.

  • Debugging mode is enabled
  • Develop settings -> USB Configuration is set to MTP.
Will Hardwick-Smith
  • 969
  • 3
  • 13
  • 24
  • Can you build the Android M? – T-Chen Sep 02 '15 at 02:16
  • 2
    Still a problem in 6.0 final :( – markostamcar Oct 06 '15 at 10:52
  • 2
    This is [documented behavior](http://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-usb): "Device connections through the USB port are now set to charge-only mode by default. To access the device and its content over a USB connection, users must explicitly grant permission for such interactions." I have [a fresh question](https://stackoverflow.com/q/33545537/115145) on how to more easily turn MTP back on for debugging. – CommonsWare Nov 05 '15 at 13:15
  • 1
    This is very annoying. Everytime I connect my Mac to the device, the Android file transfer dialog throws an error. I really cannot understand why Google implemented it this way. :-/ – waldgeist Jan 06 '16 at 11:32
  • hello, did you find a solution how to set "files transfer" as default? – user25 Jul 16 '16 at 16:51
  • @user25 No. This answer to similar question says that it needs some kind of super user permissions: http://stackoverflow.com/a/33549060/1696114 but that "it is fixed in N developer preview". – Will Hardwick-Smith Jul 17 '16 at 06:52

3 Answers3

51

I just tried this on my Nexus 5 (Android 6.0.1) and it worked:

  • Make sure your phone is NOT connected to any device over USB cable
  • Go to Settings - Developer options - Select USB Configuration
  • Set your desired default connection type

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.

Mladen B.
  • 2,784
  • 2
  • 23
  • 34
6

By Default, Android 6.0 does not provide an automated method to select MTP when the device is connected as USB. After much wait and research through XDA, blogs, stackoverflow etc, the best solution I found to this was a small application, named MTP enabler PRO Marshmallow(4.5 MB) - built by one of the users to overcome this problem.

This requires a rooted device.

Below is a link to download the APK file.

http://forum.xda-developers.com/android/apps-games/app-mtp-enbaler-t3263467

Below is a link to the app in PlayStore(paid app)

https://play.google.com/store/apps/details?id=mtp_enabler.esolutions4you.de.mtpenabler&hl=en

Hope it helped.

Nikhil Nanjappa
  • 6,454
  • 3
  • 28
  • 44
1

This is a major problem for a layman to use. To access the files on your PC you need to follow the steps mentioned below:

  1. Swipe down on the screen, tap on "USB for file transfer".
  2. Select the option "Transfer Files(MTP)".

Primarily this should solve the problem. But, if this DOES NOT solve the problem, then follow the following steps.

  1. Make sure the SD card is inserted properly.
  2. Go to "Settings-->Apps".
  3. Tap on the three dots on the TOP RIGHT corner of the screen and tap on "Show system apps".
  4. In that list of apps, find the apps "External Storage" and "Media Storage".
  5. Now clear the data and cache for those apps.
  6. Reboot your device.
  7. Now go to "Settings-->Developer options" and enable "USB debugging".
  8. Then tap on "Select USB configuration" and select the option "MTP(Media Transfer Protocol)".

Now connect your device to your PC and you should be ready to go.

You have to follow these steps only once, however, you need to select the type of connection every time by swiping down on screen and selecting the option "MTP".

Hope this helps...!

Holy Ghost
  • 43
  • 2
  • 4
    _"Select USB configuration" and select the option "MTP(Media Transfer Protocol)"._ it works only one time, on the second device connecting to pc it's again charging – user25 Jul 16 '16 at 16:42
  • 5
    Does this offer any improvement to what I said I have tried already? It seems like the conclusion is the same as I am dealing with. – Will Hardwick-Smith Jul 17 '16 at 06:55
  • Only uses MTP the next time USB is plugged in -- doesn't default to MTP every time. – NateS Jun 03 '17 at 16:58