When using Nautilus (Gnome) it mounts it for you using GVFS.
gvfs is a "virtual filesystem where mounts run as separate processes which you talk to via D-Bus" so, you have to use D-Bus. However there is a package
gvfs-fuse that (after you install it) will make it available at
This is not the only way, though. KDE has
KIO. Another one is
jmtpfs that works from the command line for mounting Android to a given folder.