• Accessing files from Android phone on Pi5

    From Brian Howlett@news-spamtrap@brianhowlett.me.uk to comp.sys.raspberry-pi on Sun May 10 22:40:35 2026
    From Newsgroup: comp.sys.raspberry-pi

    Hi.

    I recently had cause to try getting some photos off my phone on to my Pi5.
    I was able to see the root folder on the phone when allowing PTP transport
    on the phone, but was unable to navigate to any of the sub-folders.

    Presumably this is a permissions issue, but as the subject is somewhat
    arcane to me, can anyone advise how I can get in to the DCIM folder on the phone?

    This was the same whether the phone was plugged in via USB cable, or
    connected by Bluetooth.

    Any advice gratefully received.
    --
    Brian Howlett
    ----------------------------------------------
    All electronic components run on smoke.
    If you let the smoke out, they stop working...
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Joerg Walther@joerg.walther@magenta.de to comp.sys.raspberry-pi on Mon May 11 11:37:45 2026
    From Newsgroup: comp.sys.raspberry-pi

    Brian Howlett wrote:

    Any advice gratefully received.

    I have an ftp server app on my phone, never had any rights issues. There
    are free ones.

    -jw-
    --
    And now for something completely different...
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Daniel James@daniel@me.invalid to comp.sys.raspberry-pi on Mon May 11 11:14:42 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 10/05/2026 22:40, Brian Howlett wrote:
    I recently had cause to try getting some photos off my phone on to my Pi5.
    I was able to see the root folder on the phone when allowing PTP transport
    on the phone, but was unable to navigate to any of the sub-folders.

    On my Android devices (Sony phone and Samsung tablet, both Android 16)
    the I select "File transfer" rather than "PTP", and I can navigate
    anywhere. ISTRT the required setting on an earlier device was "MTP".

    PTP is a rather more specialized (i.e. limited) protocol and seems to be designed to enable the PC to use the phone as a digital camera -- you'd
    have to be running something on the PC that understood cameras rather
    than a general-purpose file manager.
    --
    Cheers,
    Daniel.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Theo@theom+news@chiark.greenend.org.uk to comp.sys.raspberry-pi on Mon May 11 12:32:46 2026
    From Newsgroup: comp.sys.raspberry-pi

    Brian Howlett <news-spamtrap@brianhowlett.me.uk> wrote:
    Hi.

    I recently had cause to try getting some photos off my phone on to my Pi5.
    I was able to see the root folder on the phone when allowing PTP transport on the phone, but was unable to navigate to any of the sub-folders.

    Presumably this is a permissions issue, but as the subject is somewhat arcane to me, can anyone advise how I can get in to the DCIM folder on the phone?

    This was the same whether the phone was plugged in via USB cable, or connected by Bluetooth.

    Any advice gratefully received.

    I normally use https://localsend.org/ as a simple way to move files to and
    from mobile devices. It's an app you install at both ends (there's a Linux-arm64 release that should work on Pis), then you just select the files you want via the GUI at the sending end, approve the transfer at the
    receiving end, and they are transferred. It doesn't need any special networking setup, it figures that out itself.

    As it uses the phone's existing wifi connection it's typically faster than using Bluetooth or USB 2 on the phone.

    Theo
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From The Natural Philosopher@tnp@invalid.invalid to comp.sys.raspberry-pi on Mon May 11 14:00:16 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 10/05/2026 22:40, Brian Howlett wrote:
    Hi.

    I recently had cause to try getting some photos off my phone on to my Pi5.
    I was able to see the root folder on the phone when allowing PTP transport
    on the phone, but was unable to navigate to any of the sub-folders.

    Presumably this is a permissions issue, but as the subject is somewhat
    arcane to me, can anyone advise how I can get in to the DCIM folder on the phone?

    This was the same whether the phone was plugged in via USB cable, or connected by Bluetooth.

    Any advice gratefully received.

    I use mtp to talk to my phone. No issues
    --
    rCLIdeas are inherently conservative. They yield not to the attack of
    other ideas but to the massive onslaught of circumstance"

    - John K Galbraith


    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Jim Diamond@zsd@jdvb.ca to comp.sys.raspberry-pi on Mon May 11 11:56:43 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 2026-05-10 at 18:40 ADT, Brian Howlett <news-spamtrap@brianhowlett.me.uk> wrote:
    Hi.

    I recently had cause to try getting some photos off my phone on to my Pi5.
    I was able to see the root folder on the phone when allowing PTP transport on the phone, but was unable to navigate to any of the sub-folders.

    Presumably this is a permissions issue, but as the subject is somewhat arcane to me, can anyone advise how I can get in to the DCIM folder on the phone?

    This was the same whether the phone was plugged in via USB cable, or connected by Bluetooth.

    Any advice gratefully received.

    I have termux on my phone, which lets you use ssh to log in to the phone
    from your laptop, and also lets you use scp to transfer files back and
    forth.

    termux' sshd is not run by default, but you can either run it from the
    termux window or you could put a call to it in the shell's init file.

    I find it much nicer to ssh in and cd around than to hunt using a gui file manager, but YMMV.

    Jim
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Robert Riches@spamtrap42@jacob21819.net to comp.sys.raspberry-pi on Mon May 11 16:51:59 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 2026-05-10, Brian Howlett <news-spamtrap@brianhowlett.me.uk> wrote:
    Hi.

    I recently had cause to try getting some photos off my phone on to my Pi5.
    I was able to see the root folder on the phone when allowing PTP transport on the phone, but was unable to navigate to any of the sub-folders.

    Presumably this is a permissions issue, but as the subject is somewhat arcane to me, can anyone advise how I can get in to the DCIM folder on the phone?

    This was the same whether the phone was plugged in via USB cable, or connected by Bluetooth.

    Any advice gratefully received.

    If none of the other options suggested so far by others work, if
    your phone runs Android you might be able to use the Android
    Debug Bridge (adb). It takes a bunch of key presses to enable
    USB debug access on the phone--and disable it when finished--but
    it does provide non-root access to the phone's file tree.
    --
    Robert Riches
    spamtrap42@jacob21819.net
    (Yes, that is one of my email addresses.)
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.sys.raspberry-pi on Mon May 11 23:07:46 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 11 May 2026 16:51:59 GMT, Robert Riches wrote:

    If none of the other options suggested so far by others work, if
    your phone runs Android you might be able to use the Android Debug
    Bridge (adb).

    Yeah, IrCOm just using adb. I have decided not to configure a Google
    account into my less-than-a-year-old 4G phone.

    You can use it to move files in both directions (e.g. upload books to
    read while waiting at the dentistrCOs office etc). (Tip: use rCLadb pull
    -arCY to preserve timestamps when retrieving files.) You can even save
    .apk files from the Android device back to your host machine. The
    directory where theyrCOre kept has execute-only access for some reason,
    but there is a separate adb function for listing what they are anyway.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.sys.raspberry-pi on Mon May 11 23:09:09 2026
    From Newsgroup: comp.sys.raspberry-pi

    On Mon, 11 May 2026 11:14:42 +0100, Daniel James wrote:

    On my Android devices (Sony phone and Samsung tablet, both Android
    16) the I select "File transfer" rather than "PTP", and I can
    navigate anywhere. ISTRT the required setting on an earlier device
    was "MTP".

    PTP is a rather more specialized (i.e. limited) protocol and seems
    to be designed to enable the PC to use the phone as a digital camera
    -- you'd have to be running something on the PC that understood
    cameras rather than a general-purpose file manager.

    I thought PTP was the earlier protocol, while MTP was the later
    generalization:

    PTP -- transfer only pictures
    MTP -- rCLMrCY for media -- transfer other stuff, not just pictures
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Daniel James@daniel@me.invalid to comp.sys.raspberry-pi on Tue May 12 09:43:21 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 12/05/2026 00:09, Lawrence DrCOOliveiro wrote:
    PTP is a rather more specialized (i.e. limited) protocol and seems
    to be designed to enable the PC to use the phone as a digital
    camera -- you'd have to be running something on the PC that
    understood cameras rather than a general-purpose file manager.

    I thought PTP was the earlier protocol, while MTP was the later generalization:

    Yes, indeed.

    I don't think that contradicts what I wrote. PTP was the earlier
    protocol, specifically for cameras, which was later generalized to
    support full file transfer as a replacement for USB mass-storage.

    Sorry for any confusion.
    --
    Cheers,
    Daniel.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Jim Jackson@jj@franjam.org.uk to comp.sys.raspberry-pi on Tue May 12 08:59:27 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 2026-05-11, Jim Diamond <zsd@jdvb.ca> wrote:
    On 2026-05-10 at 18:40 ADT, Brian Howlett <news-spamtrap@brianhowlett.me.uk> wrote:
    Hi.

    I recently had cause to try getting some photos off my phone on to my Pi5. >> I was able to see the root folder on the phone when allowing PTP transport >> on the phone, but was unable to navigate to any of the sub-folders.

    Presumably this is a permissions issue, but as the subject is somewhat
    arcane to me, can anyone advise how I can get in to the DCIM folder on the >> phone?

    This was the same whether the phone was plugged in via USB cable, or
    connected by Bluetooth.

    Any advice gratefully received.

    I have termux on my phone, which lets you use ssh to log in to the phone
    from your laptop, and also lets you use scp to transfer files back and
    forth.

    termux' sshd is not run by default, but you can either run it from the
    termux window or you could put a call to it in the shell's init file.

    I find it much nicer to ssh in and cd around than to hunt using a gui file manager, but YMMV.

    Indeed. Even nicer is using sshfs to mount the phones files into your
    own work space on a the pi or, e.g. on my linux desktop.

    https://www.geeksforgeeks.org/linux-unix/how-to-use-sshfs-on-linux/


    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From The Natural Philosopher@tnp@invalid.invalid to comp.sys.raspberry-pi on Tue May 12 14:06:19 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 12/05/2026 09:43, Daniel James wrote:
    On 12/05/2026 00:09, Lawrence DrCOOliveiro wrote:
    PTP is a rather more specialized (i.e. limited) protocol and seems to
    be designed to enable the PC to use the phone as a digital
    camera -- you'd have to be running something on the PC that
    understood cameras rather than a general-purpose file manager.

    I thought PTP was the earlier protocol, while MTP was the later
    generalization:

    Yes, indeed.

    I don't think that contradicts what I wrote. PTP was the earlier
    protocol, specifically for cameras, which was later generalized to
    support full file transfer as a replacement for USB mass-storage.

    I didnt know that,
    Sorry for any confusion.

    NP
    --
    There is nothing a fleet of dispatchable nuclear power plants cannot do
    that cannot be done worse and more expensively and with higher carbon emissions and more adverse environmental impact by adding intermittent renewable energy.

    --- Synchronet 3.22a-Linux NewsLink 1.2