Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Android M default USB config to MTP rather than "charging only"?

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.
like image 862
Will Hardwick-Smith Avatar asked Sep 02 '15 01:09

Will Hardwick-Smith


People also ask

How do I change from Charging to MTP?

Go to Preferences > Extensions and check the MTP Devices option. Connect your Android to Mac via a USB cable. Enable MTP on Android (File transfer mode) by switching from charging mode to it. Your phone is connected to a Mac.

How do I change my USB from Charging only?

3 Answers. If you have Android 6.0 installed in your phone go to Settings > Developer Apps > Network > USB Configuration and select the option that you wish to be the default option. Connect your device to your PC and wait.

How do I get my android off USB Charging mode?

To do that, you need to enable Developer Mode. Go to Settings, and use the search field to locate the “Disable USB audio routing” option. Then, simply toggle off the option. Alternatively, you can also go to Settings, and select System, and then tap About Phone.


2 Answers

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.

like image 89
Mladen B. Avatar answered Sep 29 '22 13:09

Mladen B.


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.

like image 22
Nikhil Nanjappa Avatar answered Sep 29 '22 14:09

Nikhil Nanjappa