Re: Help needed for devel/android-tools

From: Tomek CEDRO <tomek_at_cedro.info>
Date: Wed, 13 Nov 2024 23:11:48 UTC
On Wed, Nov 13, 2024 at 10:13 PM Thierry Thomas <thierry@freebsd.org> wrote:
> Le mer. 13 nov. 24 à 21:59:00 +0100, Miroslav Lachman <000.fbsd@quip.cz>
>  écrivait :
> > Isn't just a permissions problem? Does "fastboot devices" or "adb devices
> > -l" work with older version installed?
>
> Yes, permissions may be a problem, but I tried as root to be sure.
> > I am not a USB / Android expert, I just tried to flash Android from FreeBSD
> > about 2 months ago and I remember there were some issues with permissions to
> > USB device nodes.
> Yes, this works with 31.0.3, but this is not supported by the
> installation script of GrapheneOS.
> At least fastboot must know the option `--disable-super-optimization'
> and the partition vendor_kernel_boot.

Yup, some on-device features require also up to date tools. nc@ is the
port maintainer so probably that will be best person possible to ask
about the update :-)

To solve usb permissions use these and add users that are supposed to
have access to the operator group:

***/etc/devfs.rules:
 [localrules=10]
        add path 'ugen*' mode 0660 group operator
        add path 'usb/*'  mode 0660 group operator
        add path 'usb' mode 0770 group operator

 ***/etc/rc.conf:
        devfs_system_ruleset="localrules"

Have fun :-)
Tomek

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info