如何将 Android USB 连接模式更改为仅充电?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11698979/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to change Android usb connect mode to charge only?
提问by James Fu
I've seen HTC android devices have connect mode selection when connected to PC via usb line, while mine always pops up a USB massive storage device
dialog with a button turn on massive storage
, which is boring, because sometimes my line could be loose, and off/on
randomly, so the pop up always show up suddenly and intrudes my input when I'm doing something else. Is the a way to fix this?
我看到 HTC android 设备在通过 USB 线连接到 PC 时有连接模式选择,而我的总是弹出一个USB massive storage device
带有按钮的对话框turn on massive storage
,这很无聊,因为有时我的线可能会松散,而且是off/on
随机的,所以总是弹出当我在做其他事情时突然出现并干扰我的意见。有没有办法解决这个问题?
采纳答案by vector090
The HTC devices have the PCSII.apk
which allow them to select usb connect mode. For your device, you can set it manually:
HTC 设备具有PCSII.apk
允许他们选择 USB 连接模式的选项。对于您的设备,您可以手动设置:
Use SQLite Editor to open /data/data/com.android.providers.setting/databases/settings.db
使用 SQLite 编辑器打开 /data/data/com.android.providers.setting/databases/settings.db
open table secure
开桌 secure
turn settings starting with mount_ums_
to 0, then restart devices.
将设置从mount_ums_
0开始 ,然后重新启动设备。
UPDATE: If it still doesn't work, try turning on debug mode.
更新:如果它仍然不起作用,请尝试打开调试模式。
回答by drumfire
I have been searching for this for ages on my CM 11 android phone, running kitkat.
我一直在运行 kitkat 的 CM 11 安卓手机上搜索这个。
Well.. finally I found it. It's hidden in a totally unintuitive location:
嗯。。终于找到了。它隐藏在一个完全不直观的位置:
- Go to settings
- Go to storage
- Open the menu and choose USB computer connection
- 前往设置
- 转到存储
- 打开菜单并选择USB计算机连接
Here you can choose between Media Device (MTP), Camera (PTP) and Mass storage (UMS). Turn them all off to get it to charge only.
您可以在此处选择媒体设备 (MTP)、相机 (PTP) 和大容量存储 (UMS)。将它们全部关闭以使其仅充电。
Sadly, if the option is not there, it is not supported by the phone. This seems to be the case for my HTC One (M7).
遗憾的是,如果该选项不存在,则手机不支持该选项。我的 HTC One (M7) 似乎就是这种情况。
回答by mdan84
To change the connect mode selection try Settings -> Wireless & Networks -> USB Connection. You can shoose to Charging, Mass Storage, Tethered, and ask on connection.
要更改连接模式选择,请尝试设置 -> 无线和网络 -> USB 连接。您可以选择充电、大容量存储、系留,并在连接时询问。
回答by Igor
In your phone go to Settings->Connect
to PC.
在您的手机中转到Settings->Connect
PC。
There you will see the option Default Connection Type
. Select it and set it to your preference.
在那里你会看到选项Default Connection Type
。选择它并将其设置为您的偏好。
回答by Mirwais Shah Arya
Nothing worked until I went this way: Settings>Developer options>Default USB configuration now you can choose your default USB connection purpose.
在我这样做之前没有任何效果:设置>开发人员选项>默认USB配置现在您可以选择默认的USB连接目的。