如何在Android手机上启用MTP模式,仅在命令行上使用ADB?屏幕无法使用,我需要访问文件。不过,我启用了USB调试。
adb shell svc usb setFunction mtp奇怪的是,它不能工作。
发布于 2019-05-20 07:30:24
你在"setFunctions“中缺少"s”。
"adb shell svc usb setFunctions mtp" worked for me in Android 9 (lineage OS).发布于 2019-11-04 19:01:45
在我的galaxy S8 (我想是Android9.0)上,我使用:
adb shell svc usb setFunction mtp true一旦我的手机连接到电脑并启用了USB调试
我认为末尾的最后一个参数"true“是可选的,但默认情况下是false。我不确定这有什么不同,我只知道如果没有“真”,它就不能工作。
https://stackoverflow.com/questions/54959259
复制相似问题