Haiku android file transfer

so i’m trying to trying to transfer files to my android device using mtp, and the android file transfer program in the depot, and the application opens for a split second and then closes again. I have all libraries needed for usb transfer installed. is this program outdated, or does haiku support this yet?

1 Like

It also never opened for me. There was a mini app developed by a russian (I think) user that through a very basic native (using BeAPI) GUI that uses libmtp you can see the list of files and download the selected file (this is the only two things that it can do), but there is no app in Depot, and I got the app because someone uploaded in Telegram the source code. Maybe someone knows how to get it from the dev.

If you have the app/source code, why can’t you send him that (or upload it to the depot)?

Here is the code: Telegram: Contact @haiku_es_LOA

This is a screenshot I took.

1 Like

I wrote the port of android_file_transfer but I never used it with the Qt GUI. It also provides a FUSE filesystem that can be used with userlandfs, and then you can access your phone directly inTracker.

Unfortunately it seems I didn’t post anywhere explanations on how to do it. I’ll try to do that next time I’m in front of my Haiku machine.


how to use it directly?

note that this is the x86 32 bit version of the program. 64 bit might not work for me. usually installing apps with pkgman works better than using haikudepot.

Why is that I wonder?


Sorry for the delay. I am in front of my Haiku machine and I could test this again. It turns out I had this working, I upstreamed the patches, but then I completely forgot to enable it in the recipe, so no one else knew it was there.

I have just pushed an update to android_file_transfer (version 4.3~git+5) that will include the FUSE module. I have moved the Qt GUI to a separate package, android_file_transfer_qt.

To use it:

  • Create a mount directory: mkdir /droid
  • Put your phone in file sharing mode. In my case, this mode is disabled if the phone is left unused for too long and goes to sleep, so make sure the phone remains unlocked until the next step
  • Run this command to mount the phone: mount -t userlandfs -o android_file_transfer /droid/
  • You can then browse it directly in Tracker (it appears on the desktop like other disks)
  • Don’t forget to unmount it (right click → unmount or eject) before unplugging the phone

Ideally, there should be a way to make these commands run automatically when an Android phone in file transfer mode is detected. I think we need to write a driver for that, and maybe have it talk with mount_server?


I tried your instructions, but it does’t work. The mount process is stuck doing nothing, and no matter what, mount and userlandfs processes are unkillable during this situation, only a reboot stop them.

AFTqt is as broken as always, because it does not even open a GUI.
The only thing it does is printing in the console something like

upload worker started
current text color value:  0 , guessed theme:  "light"
probing device...
Control read(type 80 req 6 value 300 index 0 size 255) with timeout 1000…