#1095689 mtp-tools: only connects once, after boot, to Pixel 8 phone running Android 15, fails after

Package:
mtp-tools
Source:
mtp-tools
Description:
Media Transfer Protocol (MTP) library tools
Submitter:
Date:
2025-02-12 20:15:01 UTC
Severity:
normal
#1095689#5
Date:
2025-02-10 19:18:23 UTC
From:
To:
Dear Maintainer,

=============================================================================================================

After changing to a Pixel 8 phone running Android 15, I tried to mount
it using jmtpfs but this failed every time.

However, I did notice this works **only** the first time I try it after a reboot.
Every subsequent time fails after it fails to reset the interface.

There seems to be some missing cleanup/initialization after the first time this is mounted.

=> mtp-detect
    libmtp version: 1.1.22

    Listing raw device(s)
    Device 0 (VID=18d1 and PID=4ee1) is a Google Inc Nexus/Pixel (MTP).
       Found 1 device(s):
       Google Inc: Nexus/Pixel (MTP) (18d1:4ee1) @ bus 3, dev 20
    Attempting to connect device(s)
    PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
    LIBMTP libusb: Attempt to reset device
    LIBMTP PANIC: failed to open session on second attempt
    Unable to open raw device 0
    OK.


dmesg log:
    [89953.220308] usb 3-5.1: new high-speed USB device number 19 using ehci-pci
    [89953.435374] usb 3-5.1: New USB device found, idVendor=18d1, idProduct=4ee1, bcdDevice= 5.15
    [89953.435380] usb 3-5.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [89953.435381] usb 3-5.1: Product: Pixel 8
    [89953.435383] usb 3-5.1: Manufacturer: Google
    [89953.435384] usb 3-5.1: SerialNumber: 43270DLJH001L6
    [89956.085101] usb 3-5.1: reset high-speed USB device number 19 using ehci-pci
    [89961.481127] usb 3-5.1: reset high-speed USB device number 19 using ehci-pci
    [89961.884336] usb 3-5.1: reset high-speed USB device number 19 using ehci-pci
    [89964.178255] usb 3-5.1: USB disconnect, device number 19
    [89965.173908] usb 3-5.1: new high-speed USB device number 20 using ehci-pci
    [89965.393680] usb 3-5.1: New USB device found, idVendor=18d1, idProduct=4ee1, bcdDevice= 5.15
    [89965.393690] usb 3-5.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [89965.393694] usb 3-5.1: Product: Pixel 8
    [89965.393697] usb 3-5.1: Manufacturer: Google
    [89965.393699] usb 3-5.1: SerialNumber: 43270DLJH001L6
    [89966.276811] usb 3-5.1: reset high-speed USB device number 20 using ehci-pci
    [89976.753020] usb 3-5.1: reset high-speed USB device number 20 using ehci-pci
    [89977.164375] usb 3-5.1: reset high-speed USB device number 20 using ehci-pci

=============================================================================================================

#1095689#10
Date:
2025-02-12 20:13:25 UTC
From:
To:
I neglected to mention that this works fine with a Pixel 4 phone running Android 12.