Re: fusefs-jmtpfs-g20190420 cannot mount smartphone after FreeBSD 13
Date: Mon, 26 Jun 2023 19:04:32 UTC
On Sun, 25 Jun 2023 22:24:05 -0700 jin guojun <jguojun@gmail.com> wrote: > I > tried [system=10] + devfs_system_ruleset="localrules", [system=10] + > devfs_system_ruleset="system", > and > [localrules=10] + devfs_system_ruleset="localrules", but no one works :-( > From regular user, it always says: > % env LIBUSB_DEBUG=1 aft-mtp-cli > LIBUSB_FUNCTION: libusb_init complete > device not found (filter = '' > > On Fri, Jun 23, 2023 at 8:46 AM Vlad Markov <dvoich@optonline.net> wrote: > > > On Wed, 21 Jun 2023 19:47:47 +0200 > > Tomek CEDRO <tomek@cedro.info> wrote: > > > > > On Wed, Jun 21, 2023 at 7:13 PM Jin Guojun[VFF] wrote: > > > > Thanks for help and LIBUSB_DEBUG=0 makes cli quiet. > > > > > > > > One slight issue is that the android-file-transfer has to be run as > > root. > > > > > > That is up to USB file permissions in /dev.. you can set this up with > > > devfs, example below :-) > > > > > > Add your user to operator group: > > > > > > # pw groumod operator -m your_username > > > > > > Add this to /etc/devfs.rules: > > > > > > [system=10] > > > add path 'usb/*' mode 0660 group operator > > > > > > Then add this to /etc/rc.conf: > > > > > > devfs_system_ruleset="localrules" > > > devfs_enable="YES" > > > > > > :-) > > > > > > -- > > This is close but: > > > > devfs_system_ruleset="localrules" should be devfs_system_ruleset="system" > > > > It has to match what is in the brackets. > > > > Next question: > > > > How do I get thumbnails to show up in the app? > > > > My phone requires me to open the phone. Provided that the usb is plugged in, it then has me select from a few choices. If I do not select "transfer files", then the phone is not found by android_file_transfer. You don't say whether root can access the phone, can root access the phone? my setup: devfs.rules: [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups add path 'lpt*' mode 0660 group cups add path 'usb/X.Y.Z' mode 0660 group cups add path 'usb/*' mode 0660 group operator add path 'da*s*' mode 0660 group operator rc.conf: devfs_system_ruleset="system" devfs_enable="YES" Perhaps the user is not part of the operator group? -- I dream of a better tomorrow, where chickens can cross the road and not be questioned about their motives.” – Ralph Waldo Emerson