"Modern" Android platforms do not map as mass-storage devices for mounting filesystems. Instead, they use MTP or PTP. (https://en.wikipedia.org/wiki/Media_Transfer_Protocol
There is an MTP library in ports (devel/libmtp
) which is a dependency for some applications but I've never been able to connect an Android device to any of them.
Once my Android phones no longer spoke umass(4), I've primarily used the Airdroid
web-server for Android in order transfer files via WiFi, and I've also used the OpenBSD port of adb
) if I needed the bandwidth of a USB cable.
Edited for clarity and to add:
If your Android phone permits tethering via USB -- which may be vendor controlled -- the USB connection will attach to the urndis(4) driver. Network file transfer such as sftp(1) or nc(1) could be used, if you have the matching server software on your phone such as OpenSSH or Dropbear, or netcat. Use of such tools will require a rooted phone -- with the possible exception of netcat, if high port numbers are used..