@vgaetera, how weird that it is expected that a user knows this stuff merely to use adb, especially since it breaks WebUSB support, meaning that using the command line is actually easier than what should be the noob-proof version - using the browser!
I would expect that installing android-tools would invoke:
The service is automatically triggered by the udev rules when you connect a matching device.
Why do you need to enable the service forcing it to start when no device is connected?
So the only question is: why ship the udev rules inactive in the docs directory, and not have a separate package android-udev-rules placing it in the active one?
This would then automatically start the adb service and everything should be fine?
@vgaetera, that appeared to be the common consensus for how to provide this functionality in the thread. Have you a preferable method of enabling WebUSB support?
Not to my knowledge - certainly not explicitly - because I’m unfamiliar with what that entails.
I’m not sure that elevating privileges is a good idea from a security perspective.
In fact, ADB can run as a normal user without privilege elevation.
Apparently there are built-in udev rules setting up ACLs for USB devices.
To make it run persistently, create a user unit and enable it like this:
@vgaetera, that’s very comprehensive. Many thanks. However, before I run that on my machine, might I know where you got that code from? I’m surprised I wasn’t able to locate it if it’s in official documentation. If it’s undocumented, then I’m even more interested in how you ascertained that.
With years of Linux administration and some RPM packaging experience, this comes naturally, as reading various manuals and studying different RPM spec files can give you an idea of how things work in other projects, so you can utilize those methods for your own need.