mtp-detect - How to fix LIBMTP PANIC: Unable to initialize device ?

asked 2018-04-16 13:48:28 -0600

TheRipper gravatar image

updated 2018-04-17 14:10:23 -0600

I'm unable to use MTP with my Honor 5x with Dolpin (The process for the mtp protocol died unexpectedly.).

I get the following error when I run mtp-detect:

[root@hostname ~]# mtp-detect
libmtp version: 1.1.14

Listing raw device(s)
Device 0 (VID=12d1 and PID=1082) is a Huawei Ascend P8.
   Found 1 device(s):
   Huawei: Ascend P8 (12d1:1082) @ bus 2, dev 8
Attempting to connect device(s)
error returned by libusb_claim_interface() = -6LIBMTP PANIC: Unable to initialize device
Unable to open raw device 0
[root@hostname ~]#

My device is defined in /usr/lib/udev/rules.d/69-libmtp.rules (idVendor=12d1, idProduct=1082)

According to the rule file "69-libmtp.rules", a symlink is created (/dev/libmtp-2-1.4 -> bus/usb/002/008)

Finally, I have a specifc udev rule to have write access

### honor 5x
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", ATTR{idProduct}=="1082", MODE="0666", GROUP="android"

The caracter device has the permissions defined by the above rule

[root@morgoth ~]# ls -al /dev/bus/usb/002/008
crw-rw-rw-+ 1 root android 189, 135 Apr 16 20:27 /dev/bus/usb/002/008
[root@morgoth ~]#

What else can I do to use MTP for my device ?

Edit: I'm running Fedora 27 x86_64 with all available updates installed.

edit retag flag offensive close merge delete