Nautilus hangs on accessing DCIM/Camera on Android

Solution 1:

I have a similar issue with a Galaxy S6. I discovered that some images get filenames with parentheses at the end, like ...(0).jpg. It seems like Nautilus hangs when trying to list those images and ultimately fails. I moved them to a new directory on the phone, and Nautilus was noticeably faster in loading DCIM/Camera directory. I then tried to load the new directory with < 20 images with parentheses and Nautilus failed again. Renaming the files to remove the parentheses fixed everything.

Solution 2:

  1. On your android device, tap on "Charging this device via USB" notification.
  2. Under "Use USB for," select "Transfering images" instead of "Transfering Files".

This will allow faster (instant) access to the DCIM folder.

Solution 3:

I had a similar problem with my Galaxy S8 in Ubuntu 18.04. I once clicked the Camera folder, nautilus didn't respond and then even after removing and plugging device back, none of the folders in phone were loading. I removed and reinstalled libmtp, didn't work. Then I removed and reinstalled nautilus, and all folders except DCIM/Camera were working. After moving 20 or so files with "(" and ")" in their names to another folder with file manager on my phone, DCIM/Camera was too opening without any problem.

TL;DR: Get rid of files with parentheses in their name.

If that does not work, try removing and reinstalling nautilus.

Solution 4:

Installing an SSH server onto my phone was easy and has worked surprisingly well. Once the SSH server is started, you can access the files using Nautilus.

Install SSHelper: https://arachnoid.com/android/SSHelper/index.html

Run SSHelper on phone.

Put "Server address" and "SSH server port number" from SSHelper on phone into address bar in Nautilus (e.g., sftp://192.168.0.253:2222).

Nautilus will prompt for username and password (e.g., anonymous & admin).

Remember to stop SSHelper on phone to close SSH port when done.