如何将Android M默认USB配置设置为MTP而非“仅充电"? [英] How to set Android M default USB config to MTP rather than "charging only"?

查看:1854
本文介绍了如何将Android M默认USB配置设置为MTP而非“仅充电"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我的设备(Nexus 5,Android M Preview 3)通过USB连接时,USB配置始终默认为仅充电".

Whenever my device (Nexus 5, Android M Preview 3) connects via USB, the USB config always defaults to "charging only".

这是非常有问题的,因为设备上的USB端口出现故障,有时在碰碰到USB时会断开连接并重新连接,因此每次必须从通知抽屉中手动将模式更改为MTP(媒体传输协议).

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.

  • 已启用调试模式
  • 开发设置->"USB配置"设置为MTP.

推荐答案

我刚刚在Nexus 5(Android 6.0.1)上尝试过此方法,并且有效:

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

  • 确保您的手机未通过USB电缆连接到任何设备
  • 转到设置"-开发人员"选项-选择USB配置"
  • 设置所需的默认连接类型

诀窍是让手机与USB断开连接.我猜想这种行为背后的想法是,如果在手机未连接到任何设备的情况下设置USB连接类型,它将被视为默认行为.

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.

这篇关于如何将Android M默认USB配置设置为MTP而非“仅充电"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆