I have a RedMi note 7 phone model M1901F7G, running Android 9PKQ1.180904.001; I don't want to root my new phone (it is a gift from my wife, and I don't want risking bricking it).

I am an expert Linux user (since 1993) and developer (e.g. of bismon), preferring command line things.

The album on the phone contains a captchas subdirectory.

The phone is USB plugged to my Debian/Sid AMD2970WX desktop (I have sudo access to it). Kernel 5.3. X399 chipset. MSI X399 GAMING PRO CARBON motherboard.

What is the detailed and quickest procedure to transfer the more than hundred JPEG files from the captchas/ subdirectory on the phone to the $HOME/Pictures/ subdirectory on the Debian desktop? I will do that occasionally (once a week perhaps), from home, using USB3 cable. But I want to avoid 500 clicks on phone or desktop.

I am able to transfer each individual photos (in about 5 clicks). I want to transfer a hundred of them.

I don't exactly understand the "USB debug mode". Please name free (as in beer) Android applications related that, or finger actions to enable it. I believe it is in the settings menu.

Of course I do like starting gmtp on Debian. I don't want an alternative to MTP. I just need to learn how to use it (and likewise for adb).

Bear in mind that I am not familiar with Android in practice, and that my sight is not very good (since I am 60 years old - had cataract surgery), and that I am not a native English speaker. But Unix commands, I could teach them even with moderate fever (since my first Unix was SunOS3.2 on Sun3/160 workstation at work around 1987, and I was given root and physical access to it). First Linux was Slackware, 0.99.12 kernel, around 1993 (on dozens of floppy disks, i486 motherboard). Getting X11 running at that time required kernel recompilation for the graphics card.

Take into account that (perhaps by mistake) I configured my phone in French. I cannot identify an Settings -> USB debug or Settings -> Developper Debug thing. Maybe I should by some app, but which one?

  • 1
    Have you tried adb pull /sdcard/captchas/ from $HOME/Pictures/ in terminal? – Vatish Sharma Nov 22 '19 at 10:39
  • No. That should work? Will try from home, am still at work – Basile Starynkevitch Nov 22 '19 at 10:39
  • 1
    Possible methods I can remember I have tried: MTP, UMS, ADB, HTTP/WebDAV, FTP, SCP/SFTP/SSHFS, NFS, CIFS, rsync, rclone. Over USB cable, WiFi, rndis / hotspot, Mobile Data. Some methods require root access. – Irfan Latif Nov 22 '19 at 11:18
  • 1
    Android Debug Bridge (ADB) mode is a toggle switch in Developer Options in Settings app. When you turn that ON, adbd daemon (somewhat like sshd) starts on Android which lets you have a remote shell access over USB or WiFi. So adb pull|push is somewhat like scp. – Irfan Latif Nov 22 '19 at 12:27
  • 1
    @BasileStarynkevitch well actually it's hard to tell what's missing. You may know better what you actually want to achieve and with what option you feel comfortable. But as I mentioned in previous comment, there are a dozen options you can go with through CLI as well as GUI. Some have constraints, some have scalability issues, some require unnecessary hassle etc. It depends on the exact use case if you want a permanent setup or just one time use. And if you need that on the go or only at home. Authentication, encryption, speed and so on. – Irfan Latif Nov 22 '19 at 13:23

To pull a folder from the sd card, you can use adb tools using following commands in terminal:

cd $HOME/Pictures/
adb pull /sdcard/captchas/

It will pull all the files from /sdcard/captchas/ to your Pictures directory.

  • But what exact magic should be done on the phone itself? I think I have to enable some USB thing. I sometimes am able to do that. But I don't understand why and how? For a phone which runs a Linux kernel, this is shameful – Basile Starynkevitch Nov 22 '19 at 10:49
  • Ok, but better improve your answer. And I am not entirely sure to understand "debugging mode" (in my brain, it is gdb) – Basile Starynkevitch Nov 22 '19 at 12:17
  • Does not work at home. – Basile Starynkevitch Nov 22 '19 at 18:52
  • 1
    Check this to enable usb debugging mode: thecustomdroid.com/… – Vatish Sharma Nov 25 '19 at 4:01

I don't know your model of phone but for the new phone of my wife ( Samsung A70 ), the connexion was not possible any more through USB 2 and i find a new link with USB type C


I just mount/open the DCMI folder to find all the pictures.....

Hope this help ;O>)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.