Android MTP from Windows 10 guest does not work consistently

Discussions related to using VirtualBox on Linux hosts.
Post Reply
foofoofoo
Posts: 1
Joined: 4. Sep 2021, 22:10

Android MTP from Windows 10 guest does not work consistently

Post by foofoofoo »

Running Windows 10 as Guest, Ubuntu 21.04 as host,
I have problems with MTP on Android phones.

I followed the USB basics and troubleshooting; other devices such as usb drives seem to work flawlessly.
I tried it with both a specific filter and a generic catch-all. Same.

1) I had the same problem as dandre in https://www.virtualbox.org/ticket/16850
As soon as I click "Allow" on the phone, there is a reset, the device goes back to the host, the cdc_acm driver is loaded (I had that module blacklisted, but the only change was the missing log line), then the device is grabbed by Virtualbox again, I get the permission request on the phone again, and so on.
This was with a phone running Android 6.
{{{

[ 262.320402] vboxdrv: 0000000000000000 VMMR0.r0
[ 262.454830] vboxdrv: 0000000000000000 VBoxDDR0.r0
[ 262.545698] VBoxNetFlt: attached to 'enp10s0' / 70:85:c2:43:6c:44
[ 262.552504] vboxdrv: 0000000000000000 VBoxEhciR0.r0
[ 262.553660] VMMR0InitVM: eflags=246 fKernelFeatures=0x0 (SUPKERNELFEATURES_SMAP=0)
[ 262.610071] device enp10s0 entered promiscuous mode
[ 271.075423] usb 3-2: reset high-speed USB device number 2 using xhci_hcd
[ 271.731422] usb 3-2: reset high-speed USB device number 2 using xhci_hcd
[ 272.510001] usbcore: registered new interface driver cdc_acm
[ 272.510004] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 325.053655] usb 3-2: USB disconnect, device number 2
[ 326.940449] usb 3-2: new high-speed USB device number 3 using xhci_hcd
[ 327.089647] usb 3-2: New USB device found, idVendor=1004, idProduct=633e, bcdDevice= 3.10
[ 327.089657] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 327.089661] usb 3-2: Product: LGE Android Phone
[ 327.089664] usb 3-2: Manufacturer: LG Electronics Inc.
[ 327.089667] usb 3-2: SerialNumber: LGH815<censored>
[ 327.547430] usb 3-2: reset high-speed USB device number 3 using xhci_hcd
[ 327.832892] cdc_acm 3-2:2.1: ttyACM0: USB ACM device
[ 328.868753] usb 3-2: USB disconnect, device number 3
[ 329.204423] usb 3-2: new high-speed USB device number 4 using xhci_hcd
[ 329.367105] usb 3-2: New USB device found, idVendor=1004, idProduct=633e, bcdDevice= 3.10
[ 329.367113] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 329.367117] usb 3-2: Product: LGE Android Phone
[ 329.367120] usb 3-2: Manufacturer: LG Electronics Inc.
[ 329.367122] usb 3-2: SerialNumber: LGH815<censored>
[ 329.831445] usb 3-2: reset high-speed USB device number 4 using xhci_hcd
[ 330.138643] cdc_acm 3-2:2.1: ttyACM0: USB ACM device
[ 330.925058] usb 3-2: USB disconnect, device number 4
[ 331.208409] usb 3-2: new high-speed USB device number 5 using xhci_hcd
[ 331.366110] usb 3-2: New USB device found, idVendor=1004, idProduct=633e, bcdDevice= 3.10
[ 331.366119] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 331.366123] usb 3-2: Product: LGE Android Phone
[ 331.366126] usb 3-2: Manufacturer: LG Electronics Inc.
[ 331.366129] usb 3-2: SerialNumber: LGH815<censored>
[ 332.087444] usb 3-2: reset high-speed USB device number 5 using xhci_hcd
[ 332.412068] cdc_acm 3-2:2.1: ttyACM0: USB ACM device
[ 333.048053] usb 3-2: USB disconnect, device number 5
[ 333.356402] usb 3-2: new high-speed USB device number 6 using xhci_hcd
[ 333.514734] usb 3-2: New USB device found, idVendor=1004, idProduct=633e, bcdDevice= 3.10
[ 333.514743] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 333.514747] usb 3-2: Product: LGE Android Phone
[ 333.514750] usb 3-2: Manufacturer: LG Electronics Inc.
[ 333.514752] usb 3-2: SerialNumber: LGH815<censored>
[ 334.223444] usb 3-2: reset high-speed USB device number 6 using xhci_hcd
[ 334.522778] cdc_acm 3-2:2.1: ttyACM0: USB ACM device
[ 335.192467] usb 3-2: USB disconnect, device number 6
[ 335.528389] usb 3-2: new high-speed USB device number 7 using xhci_hcd
[ 335.682359] usb 3-2: New USB device found, idVendor=1004, idProduct=633e, bcdDevice= 3.10
[ 335.682369] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 335.682373] usb 3-2: Product: LGE Android Phone
[ 335.682376] usb 3-2: Manufacturer: LG Electronics Inc.
[ 335.682379] usb 3-2: SerialNumber: LGH815<censored>
[ 336.379447] usb 3-2: reset high-speed USB device number 7 using xhci_hcd
[ 336.696674] cdc_acm 3-2:2.1: ttyACM0: USB ACM device

}}}

2) I tried another phone running Android 10 (stock), where there was no permission dialogue; there it worked, however after some latency with USB problems, not reacting etc.

3) I tried another phone running Android 10, Lineage, also no permission dialogue.
There, Virtualbox claims to have captured it, Windows shows it in the device manager, but not in the explorer. At the same time and I can use MTP from the host (!!)

{{{
[ 2656.287755] usb 1-3: USB disconnect, device number 24
[ 2661.784519] usb 1-3: new high-speed USB device number 25 using xhci_hcd
[ 2662.020825] usb 1-3: New USB device found, idVendor=04e8, idProduct=6860, bcdDevice= 2.28
[ 2662.020836] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2662.020841] usb 1-3: Product: SAMSUNG_Android
[ 2662.020844] usb 1-3: Manufacturer: SAMSUNG
[ 2662.020847] usb 1-3: SerialNumber: <censored>
[ 2662.461333] usb 1-3: reset high-speed USB device number 25 using xhci_hcd
[ 2672.619421] usb 1-3: USB disconnect, device number 25
[ 2672.976442] usb 1-3: new high-speed USB device number 26 using xhci_hcd
[ 2673.148889] usb 1-3: New USB device found, idVendor=04e8, idProduct=6860, bcdDevice= 2.28
[ 2673.148900] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2673.148905] usb 1-3: Product: SAMSUNG_Android
[ 2673.148908] usb 1-3: Manufacturer: SAMSUNG
[ 2673.148912] usb 1-3: SerialNumber: <censored>
[ 2673.525290] usb 1-3: reset high-speed USB device number 26 using xhci_hcd
[ 2699.847859] usb 1-3: usbfs: process 9470 (kiod5) did not claim interface 0 before use
[ 2724.596344] usb 1-3: USB disconnect, device number 26
[ 2726.744081] usb 1-3: new high-speed USB device number 27 using xhci_hcd
[ 2726.980969] usb 1-3: New USB device found, idVendor=04e8, idProduct=6860, bcdDevice= 2.28
[ 2726.980979] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2726.980984] usb 1-3: Product: SAMSUNG_Android
[ 2726.980988] usb 1-3: Manufacturer: SAMSUNG
[ 2726.980991] usb 1-3: SerialNumber: <censored>
[ 2727.356913] usb 1-3: reset high-speed USB device number 27 using xhci_hcd

}}}

Any ideas where the problem could be?

Unfortunately I cannot search for "USB" or "MTP" in this forum, presumably the search is disabled for search terms with length 3.
Last edited by scottgus1 on 5. Sep 2021, 01:23, edited 2 times in total.
Reason: added USB tutorial and Bugtracker links
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Android MTP from Windows 10 guest does not work consistently

Post by scottgus1 »

foofoofoo wrote:Unfortunately I cannot search for "USB" or "MTP" in this forum, presumably the search is disabled for search terms with length 3.
Correct. A regular web search with the site restrictor text added will work on the forum:

Android phone USB site:forums.virtualbox.org
foofoofoo wrote:I followed the USB basics and troubleshooting
How did step 8 go?
Post Reply