How haiku take phone as usb driver?

how haiku take phone as usb driver?
i find haiku can take my phone as wifi driver.
but why not as a usb driver?
is it the fact of Media Transfer Protocol with non-free status?
you see so many people have phone but no USB Flash Disk。

1 Like

Yes, if you have an Android phone, you would need MTP. Not fully implemented yet.

As for Apple devices, they seem to use another protocol.

I’m able to use Android for USB tethering on r1Beta4:

I was able to get it to work - use the “RNDIS (USB Ethernet)” in phone’s “Select USB Configuration”.

In phone’s “Connections” in settings → Mobile Hotspot and Tethering → switch USB tethering to ‘on’ position.

1 Like

It seems the OP already can use the phone as usb tethering.

What he wants is to use the phone as usb drive, to transfer files to/from the device. Hence MTP

You can use the android_file_transfer package but it requires some manual commands to mount the phone. When it is mounted you can access it in Tracker.

pkgman install android_file_transfer

i install it,but crash. not working.
should i take haiku back to beta4 status?

Your screenshot is very unhelpful to investigate the crash.

If you can share a debug report from the crash, maybe I can investigate.

1 Like

ok, upgrade the system to the current status, and then well done.
but ,:sweat_smile:it is too hard with my cpu.
and there is no changing at the dialog box in all time. so, i.don’t know the real progress.
i think it should be connected before launching the software with my phone.that’s why crash.


how strange the application “android file transter” can read one android12 phone ,but not the other one . so, is it about the model of phone , even built by the same company ?

(this is OK.)
~> tail -f /var/log/syslog
KERN: hda: couldn’t find a string for widget 29 in hda_find_multi_custom_string()
KERN: Last message repeated 2 times.
KERN: hda_stream_start() offset 80
KERN: hda_stream_start() offset 0
KERN: Deskbar refuses to add method replicant: General system error
USER: validate_instantiation failed on class BMenu.
Last message repeated 3 times
KERN: Deskbar refuses to add method replicant: General system error
KERN: ps2: keyboard found
USER ‘KS’: Notify of added/removed/started/stopped device
Last message repeated 1 time
KERN: usb hub 2: port 1: new device connected
KERN: usb xhci 0: transfer error on slot 3 endpoint 1: Stall
KERN: usb xhci 0: transfer error on slot 1 endpoint 1: Stall
KERN: usb error control pipe 8: timeout waiting for queued request to complete
KERN: usb error xhci 0: cancel queued transfers: halted endpoint, reset!
KERN: usb error hub 7: error updating port status

(that’s not working.)
~> tail -f /var/log/syslog
KERN: Last message repeated 2 times.
KERN: hda_stream_start() offset 80
KERN: hda_stream_start() offset 0
KERN: slab memory manager: created area 0xffffffffa4801000 (13586)
KERN: Deskbar refuses to add method replicant: General system error
USER: validate_instantiation failed on class BMenu.
Last message repeated 3 times
KERN: Deskbar refuses to add method replicant: General system error
KERN: ps2: keyboard found
USER ‘KS’: Notify of added/removed/started/stopped device
Last message repeated 1 time
KERN: usb hub 2: port 1: device removed
KERN: usb hub 2: port 1: new device connected
Last message repeated 1 time
KERN: usb error hub 2: new device on a port that is already in use
KERN: usb xhci 0: cancel queued transfers (0) for pipe 0xffffffff93fb9700 (0)
KERN: usb xhci 0: cancel queued transfers (0) for pipe 0xffffffff93ddeb18 (1)
KERN: usb xhci 0: transfer error on slot 4 endpoint 2: Length invalid
KERN: usb error xhci 0: TRB 0x20e8e110 was not found in the endpoint!
KERN: usb xhci 0: cancel queued transfers (0) for pipe 0xffffffff9379d200 (1)
KERN: usb xhci 0: transfer error on slot 4 endpoint 3: Length invalid
KERN: usb error xhci 0: TRB 0x20e8e220 was not found in the endpoint!
KERN: usb xhci 0: cancel queued transfers (0) for pipe 0xffffffff93fb9700 (0)
Last message repeated 1 time
KERN: usb hub 2: port 1: new device connected
KERN: usb error hub 2: new device on a port that is already in use
KERN: usb xhci 0: cancel queued transfers (0) for pipe 0xffffffff93fb8b80 (0)
KERN: usb xhci 0: cancel queued transfers (0) for pipe 0xffffffff93ddea28 (1)
KERN: usb xhci 0: transfer error on slot 5 endpoint 2: Length invalid
KERN: usb error xhci 0: TRB 0x3eb1d110 was not found in the endpoint!
KERN: usb xhci 0: cancel queued transfers (0) for pipe 0xffffffff93dde618 (1)
KERN: usb xhci 0: transfer error on slot 5 endpoint 3: Length invalid
KERN: usb error xhci 0: TRB 0x3eb1d220 was not found in the endpoint!
KERN: usb xhci 0: cancel queued transfers (0) for pipe 0xffffffff93fb8b80 (0)
Last message repeated 1 time
KERN: usb xhci 0: transfer error on slot 6 endpoint 1: Stall
KERN: usb xhci 0: transfer error on slot 3 endpoint 1: Stall
KERN: usb xhci 0: transfer error on slot 1 endpoint 1: Stall
KERN: usb error control pipe 8: timeout waiting for queued request to complete
KERN: usb error xhci 0: cancel queued transfers: halted endpoint, reset!
KERN: usb error hub 7: error updating port status

try again. also failed. the application just like glitter then disappear.

~> tail -f /var/log/syslog
KERN: Last message repeated 2 times.
KERN: hda_stream_start() offset 80
KERN: hda_stream_start() offset 0
KERN: Deskbar refuses to add method replicant: General system error
USER: validate_instantiation failed on class BMenu.
Last message repeated 3 times
USER ‘KS’: Notify of added/removed/started/stopped device
Last message repeated 1 time
KERN: Deskbar refuses to add method replicant: General system error
KERN: ps2: keyboard found
KERN: usb hub 7: port 1: device removed
KERN: usb hub 7: port 1: new device connected
KERN: usb hub 7: port 1: device removed
KERN: usb xhci 0: cancel queued transfers (0) for pipe 0xffffffff94061380 (0)
KERN: usb xhci 0: cancel queued transfers (0) for pipe 0xffffffff9405c910 (1)
KERN: usb xhci 0: transfer error on slot 4 endpoint 2: Length invalid
KERN: usb error xhci 0: TRB 0x1d09f110 was not found in the endpoint!
KERN: usb xhci 0: cancel queued transfers (0) for pipe 0xffffffff9405caf0 (1)
KERN: usb xhci 0: transfer error on slot 4 endpoint 3: Length invalid
KERN: usb error xhci 0: TRB 0x1d09f220 was not found in the endpoint!
KERN: usb xhci 0: cancel queued transfers (0) for pipe 0xffffffff94061380 (0)
Last message repeated 1 time
KERN: usb hub 7: port 1: new device connected
KERN: usb xhci 0: transfer error on slot 5 endpoint 1: Stall
KERN: usb xhci 0: transfer error on slot 3 endpoint 1: Stall
KERN: usb xhci 0: transfer error on slot 1 endpoint 1: Stall
KERN: usb error control pipe 8: timeout waiting for queued request to complete
KERN: usb error xhci 0: cancel queued transfers: halted endpoint, reset!
KERN: usb error hub 7: error updating port status

Looks like USB stack errors. There are some open tickets with similar problems, but nobody has tried to really debug them as of yet. At least I don’t think I’ve experienced them, so I can’t really look into them effectively…