On Sat, Jun 09, 2018 at 07:00:50AM -0400, MLH wrote: > Manuel Bouyer wrote: > > On Fri, Jun 08, 2018 at 08:07:45PM -0400, MLH wrote: > > > My old Android phone which allowed writes to the removable sd card > > > was stolen and I had to get a new one, which only allows certain > > > things to be written there (not enough). > > > > > > I can't find any MTP utilities that would allow access via usb that > > > work and I don't have wireless on the NetBSD box so have been > > > attempting to get bluetooth working (typically via OBEX). > > > > > > libmtp (and associated utilities) works for me on netbsd-7 ... > > It's slow if there is lots of files on the phone. > > using > > [ 297159.8136557] umodem0 at uhub2 port 1 configuration 1 interface 1 > [ 297159.8136557] umodem0: SAMSUNG (0x4e8) SAMSUNG_Android (0x6860), rev > 2.00/4.00, addr 4, iclass 2/2 > [ 297159.8136557] umodem0: data interface 2, has no CM over data, has no break > [ 297159.8136557] umodem0: status change notification available > [ 297159.8136557] ucom0 at umodem0 > > or > > [ 297385.7335674] ugen0 at uhub2 port 1 > [ 297385.7335674] ugen0: motorola (0x22b8) Moto G (5) Plus (0x2e76), rev > 2.00/3.18, addr 3 > > $ mtp-connect > > No devices. > > $ mtp-folders > Attempting to connect device(s) > mtp-folders: no devices found
Maybe because your phone is not in the right mode. On mine (which is not samsung, but is running a recent android), I can choose how the USB port should be used (charging only, connection sharing or file transfers). Did you check that you can read/write to /dev/ugen0 ? Maybe you need access to /dev/usb* too -- Manuel Bouyer <bou...@antioche.eu.org> NetBSD: 26 ans d'experience feront toujours la difference --