Date: Mon, 26 Jun 2023 15:04:32 -0400 From: Vlad Markov <dvoich@optonline.net> To: jin guojun <jguojun@gmail.com>, questions@freebsd.org Subject: Re: fusefs-jmtpfs-g20190420 cannot mount smartphone after FreeBSD 13 Message-ID: <20230626150432.777dc041@happy.dwarf7.net> In-Reply-To: <CAE6yT5ti=cGZoyReEtqYi4opOSza652P5QGM1o-TjWCDGAs51Q@mail.gmail.com> References: <CAE6yT5tmTYRNpRV4yQxdxc0aTXNxvk522Wu3oVyc4HGdes%2B5Gw@mail.gmail.com> <CAFYkXjnoUyOpSRY%2BpcKu4zeoX_y%2B%2B=EmkORxt_5GXYAokKNobg@mail.gmail.com> <CAE6yT5vYTJ1CkrEiJJ2u=mtYL%2BhBoisZf3fqzyfcyXWcTxQVGQ@mail.gmail.com> <CAFYkXjnhHYAosmL7TkOySM5D-afTDFr2SmDqjWbVNHf1Mm%2B-gg@mail.gmail.com> <c0930438-0909-466d-9470-14b2dabaf9de@gmail.com> <CAFYkXjmXAffrBph8OX_tx2FV_jxUFxf45EQxNnasSmxYgAXSzQ@mail.gmail.com> <20230623114629.48cd8656@happy.dwarf7.net> <CAE6yT5ti=cGZoyReEtqYi4opOSza652P5QGM1o-TjWCDGAs51Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 25 Jun 2023 22:24:05 -0700 jin guojun <jguojun@gmail.com> wrote: > I > tried [system=3D10] + devfs_system_ruleset=3D"localrules", [system=3D10] + > devfs_system_ruleset=3D"system", > and > [localrules=3D10] + devfs_system_ruleset=3D"localrules", but no one works= :-( > From regular user, it always says: > % env LIBUSB_DEBUG=3D1 aft-mtp-cli > LIBUSB_FUNCTION: libusb_init complete > device not found (filter =3D '' >=20 > On Fri, Jun 23, 2023 at 8:46=E2=80=AFAM Vlad Markov <dvoich@optonline.net= > wrote: >=20 > > On Wed, 21 Jun 2023 19:47:47 +0200 > > Tomek CEDRO <tomek@cedro.info> wrote: > > =20 > > > On Wed, Jun 21, 2023 at 7:13=E2=80=AFPM Jin Guojun[VFF] wrote: =20 > > > > Thanks for help and LIBUSB_DEBUG=3D0 makes cli quiet. > > > > > > > > One slight issue is that the android-file-transfer has to be run as= =20 > > root. =20 > > > > > > 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=3D10] > > > add path 'usb/*' mode 0660 group operator > > > > > > Then add this to /etc/rc.conf: > > > > > > devfs_system_ruleset=3D"localrules" > > > devfs_enable=3D"YES" > > > > > > :-) > > > > > > -- =20 > > This is close but: > > > > devfs_system_ruleset=3D"localrules" should be devfs_system_ruleset=3D"s= ystem" > > > > 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 choic= es. 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=3D10] 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=3D"system" devfs_enable=3D"YES" Perhaps the user is not part of the operator group? --=20 I dream of a better tomorrow, where chickens can cross the road and not be = questioned about their motives.=E2=80=9D =E2=80=93 Ralph Waldo Emerson
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230626150432.777dc041>