16.04 – 如何使用USB将Android 7.1连接到Ubuntu Linux?
作者:互联网
我正在尝试连接带有Android 7.1的Google Pixel手机,
使用mtp-tools使用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.
万一它有用……
cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee1", MODE="0666", OWNER="sullivan"
非常感谢任何建议!
解决方法:
这是我发现的作品:
>首先,忽略您在/etc/udev/rules.d/51-android.rules上看到的所有网络评论.那个文件不需要.
>其次,跳过mtp-tools.它们没有记录,jmtpfs很远
反正更容易.
>安装jmtpfs包:sudo apt-get install jmtpfs
>制作目录,任何目录:sudo mkdir / media / myphone
>连接USB电缆
>解锁Android手机.
>从手机屏幕顶部向下滑动
>你应该看到一个通知“USB ……”
>点按该通知.
>您应该看到一个标题为“使用USB转…”的菜单,选择“传输文件”.
>关于linux计算机问题:
sudo jmtpfs / media / myphone
ls / media / myphone
fusermount -u / media / myphone
标签:android,usb,16-04,mtp 来源: https://codeday.me/bug/20190808/1615691.html