How to Access Android Files on Ubuntu with MTP and ADB
Getting photos, videos and documents from an Android mobile onto an Ubuntu desktop is usually simpler than the number of menu labels suggests. You can browse the handset like a removable drive through MTP, or use Android Debug Bridge for direct copies from a terminal. Both methods run over the same USB cable and keep the files on your device until you move them.
MTP, the Media Transfer Protocol, is the option most people want for an occasional transfer. It works with modern Android releases and presents shared storage through Ubuntu’s file manager, so you can drag a folder from the phone into Pictures or Documents. ADB is more technical, but it is dependable for large collections, exact file paths and repeatable tasks.
Australian phone use adds a few practical wrinkles. A handset bought through Telstra or Optus may arrive with a cable intended only for charging, while many newer devices and laptops rely on USB-C. If you need to replace it, a USB-C data cable from Officeworks or JB Hi-Fi is usually easier than testing cables one by one. In regional and remote parts of Australia, direct USB transfer can also beat uploading a large video over an uneven mobile connection.
The steps below suit a standard Ubuntu desktop with GNOME Files, including current LTS installations. They also apply to other Ubuntu flavours once the relevant file-manager or command-line tools are installed. You do not need to root the phone, and Android will never expose its entire operating system.
Why Ubuntu May Not See Your Android Phone
Android phones usually offer several USB modes, including charging, file transfer and sometimes Android Auto. Ubuntu can browse the handset only when Android is using the MTP file-transfer mode. Charging mode may power the phone without presenting any storage to the computer.
The first distinction to understand is that MTP and ADB use different communication methods. MTP relies on Ubuntu’s GNOME Virtual File System, commonly called GVFS. ADB starts a debugging service on Android and provides a command-line interface. The same cable can support both, but each method has its own permissions and setup.
Before connecting, unlock the phone and check its USB notification. Select “File transfer”, “Android device” or “MTP” rather than “Charging only”. Keep the screen awake during the first transfer, because a locked Android handset may disappear from the file manager or stop responding while copying files.
Set Up MTP Access on Ubuntu
Ubuntu’s file manager uses the GVFS MTP backend to communicate with Android phones. On current Ubuntu releases, install the dedicated package with:
sudo apt update
sudo apt install gvfs-mtp
On some Ubuntu versions, MTP support is bundled with the broader GVFS backends package. If gvfs-mtp is unavailable, install gvfs-backends instead. The Ubuntu Software application can also locate these packages, although the terminal gives a clearer indication of whether installation succeeds.
Close and reopen Files after installing the backend. If GNOME Files was already running in the background, restart it from a terminal with nautilus -q, then launch it again from the applications menu. Connect the unlocked handset before or after the restart, depending on which sequence your desktop handles more reliably.
You can check whether the phone has mounted by running:
gio mount -l
A mounted phone appears in the list with an address beginning with mtp://. The desktop interface remains the easiest way to browse it, but this command is useful when Files does not display the device clearly.
Connect and Transfer Files over MTP
Connect the phone directly to the Ubuntu computer with a data-capable USB cable. Avoid a USB hub for the first attempt, since some hubs fail to pass the power and data signals required by MTP. In the Android notification panel, confirm that the USB mode is set to file transfer.
Open Files and look for the handset under “Other Locations”, “Removable Media” or the sidebar. Some versions of GNOME Files show the phone model, while others display a generic Android device label. Double-click it to open “Internal shared storage”. The arrangement should resemble the phone’s own storage, including folders such as DCIM, Download, Documents and Movies.
Use ordinary copy operations to move files. Open DCIM/Camera for photographs and videos, or Download for files received through messaging apps and web browsers. You can drag files into a desktop folder, use Ctrl+C and Ctrl+V, or create a local folder before transferring a larger collection. MTP is well suited to copying selected files but can feel slower than a native Linux disk when moving many large videos.
Wait for the transfer to finish and use the eject option in Files before unplugging the cable. Removing the device while it is still writing can leave a partially copied file. If the phone does not appear immediately, lock and unlock it, change the USB mode twice, or reconnect it; Android sometimes needs to renegotiate the connection before GVFS can mount the shared storage.
Use ADB for Direct Android Access
ADB provides a command-line connection to Android without granting full root access. It is useful when you know the exact location of a file, want to copy an entire directory, or need to repeat the same transfer regularly. On the phone, open Settings, find “About phone” and tap “Build number” seven times. Samsung devices may label this section “Software information”. Then open “Developer options” and enable “USB debugging”.
Install the Ubuntu package that provides ADB:
sudo apt update
sudo apt install android-tools-adb
Connect and unlock the phone. Android should display an “Allow USB debugging?” prompt with a computer fingerprint. Choose “Always allow from this computer” for a trusted Ubuntu machine, then tap “Allow”. Run the following command to confirm the connection:
adb devices -l
The phone should appear with the status device. An unauthorized result means the fingerprint prompt has not been accepted; unlock the screen and look for it again. If Ubuntu reports a permissions problem, check that the installed package includes its ADB udev rules and add your account to the plugdev group:
sudo usermod -aG plugdev "$USER"
Log out and back in for that group change to take effect. Run adb as your normal desktop user rather than with sudo, because a root-owned ADB server can create persistent permission and authorisation problems.
The shared storage can then be browsed and copied with exact paths:
adb shell ls -la /sdcard/Download
adb pull /sdcard/Download/example.pdf .
adb push ./example.pdf /sdcard/Download/
adb pull /sdcard/DCIM .
The final command can copy an entire camera directory, although checking the destination first helps prevent a large transfer into the wrong folder. Quote paths containing spaces, such as "/sdcard/Download/holiday photo.jpg".
Android 11 and later also provide wireless debugging. Choose “Pair device with pairing code” in Developer options, run adb pair PHONE_IP:PAIRING_PORT, and enter the code shown on the phone. After pairing, use adb connect PHONE_IP:CONNECT_PORT. The computer and handset must be on a network that permits direct device-to-device connections.
Fix Common Connection Problems
If Files cannot see the phone, begin with the cable. Many inexpensive USB cables carry power but no data, which explains why a handset charges while Ubuntu remains unable to browse it. A phone from Telstra or Optus may include such a cable, and replacing it with a clearly labelled USB-C data cable often resolves the issue. Try another direct USB port on the computer and reconnect while the screen is unlocked.
For ADB, run adb devices -l before changing any settings. If the device is missing entirely, try another cable or port, disable and re-enable USB debugging, and restart the local service with adb kill-server followed by adb start-server. A status of offline usually clears after reconnecting and accepting the debugging prompt. If one Android device works while another does not, the phone may be blocking the second computer’s fingerprint.
Android also restricts certain shared-storage locations. From Android 11 onwards, Android/data and Android/obb may be hidden from file managers and can remain inaccessible to ADB copy commands, depending on the manufacturer. Export those files through their owning application when possible. Camera files normally remain available under DCIM/Camera.
For a one-off collection of photographs, MTP is the least complicated choice because it provides a familiar file browser. ADB is better for exact paths, folders and scripted workflows. Whichever method you use, a genuine data connection, the correct Android USB mode and an unlocked handset account for most apparent failures.
The dependable pattern is straightforward: use MTP when you want to browse and copy shared files, and use ADB when you need named paths, batch operations or a repeatable transfer. ADB does not root the phone, but it grants a shell session, so authorise only the computer you trust and switch debugging off again when you no longer need it.
The point to remember is simple: a suitable data cable, the right USB mode and the appropriate Ubuntu backend solve most connection problems. Once the handset appears under Files or in adb devices, its files are available locally without sending them through a cloud service.