Considering MTP access to an Android phone
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':
http://oldforum.puppylinux.com/puppy/viewtopic.php?t=116262
Project page for simple-mtpfs:
https://github.com/phatina/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:
https://github.com/kiorky/jmtpfs
https://github.com/JasonFerrara/jmtpfs
MTP and PTP are explained here:
https://www.howtogeek.com/192732/android-usb-connections-explained-mtp-ptp-and-usb-mass-storage/
EDIT:
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)"
EDIT:
Ah ha, found this PET, which has the executable 'mtpdevice':
http://distro.ibiblio.org/puppylinux/pet_packages-noarch/mtp_detect-0.12-noarch.pet
It requires 'go-mtpfs', which is in the Debian repo. No information who created 'mtp_detect'!
EDIT:
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