On Mon 25 Sep 2023 at 21:08:34 (+0300), Anssi Saari wrote: > David Wright <deb...@lionunicorn.co.uk> writes: > > On Sun 24 Sep 2023 at 22:13:20 (+0000), Albretch Mueller wrote: > >> On 9/24/23, Marco M. <m...@dorfdsl.de> wrote: > >> > On most Android phones, you need to explicit allow data transfers. > >> > >> What do you functionally mean? I need for you to talk to me like > >> this: a) go "Settings"; b) ... > > > > On bullseye I have android-file-transfer installed. I connect the > > phone to the PC with USB, and run this function: > > > > samsungd () > > { > > sudo mkdir -p /media/samsungd || true; > > sudo chown "$USER" /media/samsungd; > > aft-mtp-mount /media/samsungd > > } > > Does this android-file-transfer provide a working and reliable MTP > implementation for Linux then? I think I'll stick with rsync and adb but > would be good to know if MTP is working on Linux these days.
You'd have to specify a set of criteria to test. I just treat /media/samsungd like any other filesystem, copying files in the usual manner. As mentioned in: https://en.wikipedia.org/wiki/Media_Transfer_Protocol the phone screens are operable while connected (though I haven't tested making calls), file modification timestamps are only preserved phone→PC, not the other way, and you don't have to worry about pulling the plug before unmounting. In contrast, older phones that use MSC are inoperable as the screen is locked, with a warning not to physically disconnect until a button has been tapped. Cheers, David.