site  contact  subhomenews

Considering MTP access to an Android phone

December 06, 2020 — BarryK

This post is just some links, just for the record while I consider this further...

EasyOS and EasyPup have 'adbfs' file access with a phone, via the "share" icon on the desktop. That requires a USB cable, and works well for me. Then there is BluePup, for file transfer via bluetooth.

Easy has (supposedly) automatic detection when a camera is attached via USB cable, for PTP file transfer. There is a udev rule, /etc/udev/rules.d/88-puppy-autodetect.rules, that detects the camera and runs "/usr/sbin/puppyautodetect camera".

MTP is a mechanism similar to PTP, that can be used to transfer files with a mobile phone. Forum member 'mistfire' has created 'pupmtp', a PET that uses 'simple-mtpfs':

Project page for simple-mtpfs:

'pupmtp' has also been put into woof-CE:

...they have added a rule to '88-puppy-autodetect.rules' for MTP detection.

Hmmm, I downloaded 'simple-mtpfs' 0.4.0, but got a 'configure' syntax error. Looking around, rather a lot of problems reported with 'simple-mtpfs'. On the forum. 'rcrsn51' suggested might be good to consider 'jmtpfs' -- which is in the Debian repo.

There is a comment on the forum that 01micko created something for MTP, but I don't know what.

'jmtpfs' project pages:

MTP and PTP are explained here:

Success compiling 'simple-mtpfs' 0.4.0:

# ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc
./configure: line 3477: syntax error near unexpected token `noext'
./configure: line 3477: `AX_CXX_COMPILE_STDCXX_17(noext)'

...all I did was comment-out the line with "AX_CXX_COMPILE_STDCXX_17(noext)"

Ah ha, found this PET, which has the executable 'mtpdevice':

It requires 'go-mtpfs', which is in the Debian repo. No information who created 'mtp_detect'!

OK, it is done. I have put /usr/sbin/pupmtp into woofQ (with slight mods), also have modified /usr/sbin/pupautodetect-run and /etc/udev/rules.d/88-puppy-autodetect.rules. 'simple-mtpfs' is now a PET and added to the package-list. Thanks to 'mistfire' for doing all the work on this!

Not yet tested.  

Tags: easy