Sul*_*van 27 usb android mtp 16.04
我正在尝试使用 mtp-tools 将带有 android 7.1 的 Google Pixel 手机连接到带有 USB 电缆的 Ubuntu 16.04 笔记本电脑。但是 mtp 没有看到电话文件系统并给出错误消息“获取存储信息失败”。
然后尝试 mtp 工具...
# mtp-detect
libmtp version: 1.1.10
Listing raw device(s)
Device 0 (VID=18d1 and PID=4ee1) is a Google Inc (for LG Electronics/Samsung) Nexus 4/5/7/10 (MTP).
Found 1 device(s):
Google Inc (for LG Electronics/Samsung): Nexus 4/5/7/10 (MTP) (18d1:4ee1) @ bus 2, dev 17
Attempting to connect device(s)
Android device detected, assigning default bug flags
Error 1: Get Storage information failed. ***** ???
USB low-level info:
bcdUSB: 512
bDeviceClass: 0
bDeviceSubClass: 0
bDeviceProtocol: 0
idVendor: 18d1
idProduct: 4ee1
IN endpoint maxpacket: 512 bytes
OUT endpoint maxpacket: 512 bytes
... many lines omitted ...
# mtp-connect
libmtp version: 1.1.10
Device 0 (VID=18d1 and PID=4ee1) is a Google Inc (for LG Electronics/Samsung) Nexus 4/5/7/10 (MTP).
Android device detected, assigning default bug flags
Usage: connect <command1> <command2>
Commands: --delete [filename]
--sendfile [source] [destination]
--sendtrack [source] [destination]
--getfile [source] [destination]
--newfolder [foldername]
# mtp-filetree
Device 0 (VID=18d1 and PID=4ee1) is a Google Inc (for LG Electronics/Samsung) Nexus 4/5/7/10 (MTP).
Attempting to connect device(s)
Android device detected, assigning default bug flags
Error 1: Get Storage information failed.
Device: (NULL)
LIBMTP_Get_Storage(): Resource temporarily unavailable
OK.
Run Code Online (Sandbox Code Playgroud)
万一有用...
cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee1", MODE="0666", OWNER="sullivan"
Run Code Online (Sandbox Code Playgroud)
非常感谢您的任何建议!
Sul*_*van 38
这是我发现的作品:
首先,忽略你看到的关于 /etc/udev/rules.d/51-android.rules 的所有网络评论。不需要那个文件。
其次,跳过 mtp-tools。它们没有记录,无论如何 jmtpfs 要容易得多。
安装 jmtpfs 包: sudo apt-get install jmtpfs
sudo mkdir /media/myphone
您应该会看到一个标题为“使用 USB 到...”的菜单,选择“传输文件”。
关于linux电脑问题:
sudo jmtpfs /media/myphone
ls /media/myphone
fusermount -u /media/myphone
这适用于运行 Android 7.1.1 的摩托罗拉 Moto Z Force Droid:
在手机上转到设置 > 开发人员选项(如果尚未打开,请打开)> 向下滚动到选择 USB 配置 > 选择图片传输协议 > 然后重新选择媒体传输协议。然后安装手机的内部存储器和 SD 卡存储器(如果有)。
我不必在我使用的 Ubuntu 16.04.3 计算机上安装任何软件。