UBports installer is the official installer for UBports, it installs Ubuntu touch on supported devices using adb and fastboot. github: https://github.com/ubports/ubports-installer
This needs access to both adb and fastboot in order to work. this does not seems to work with devmode. Adb also needs to spawn a server that does not behave in strict or devmode.
I can confirm that Marius is upstream for ubports. @mariogrip, can you elaborate on why the server in question does not behave in strict confinement? Can you also share the errors encountered if you bundle adb and fastboot into the snap?
The problem with this is that it need direct usb access, and so does fastboot. And they does not seem to get that at all, even in dev mode. There is no real log that i can find, other then both adb and fastboot does not find any devices. nothing in dmesg.
I have to note, this has been working before, but after an update to snapd (or whatever causes this) it does not seem to work anymore. Thats why we want classic mode to not need to worry about any snapd updates that breaks our app.
Classic isnât meant to help you not âworry about any snapd updates that breaks [your] appâ. The raw-usb interface may be sufficient for your needs. Does this work with snapd from candidate (in devmode and strict)? If it works in devmode (there were fixes in 2.29 for that) but not strict, then I wonder if Mir snap not detecting new input devices is affecting you (there seems to be a change in udev that is causing that).
If you need udev rules, then I would suggest we create an interface for your snap. This would include the udev rules you need, the usb access you need, etc.
As for not working in devmode-- is this because your snap isnât staging everything it needs, is expecting things in different places than what is in the snap, something else?
You might join #snappy on Freenode or join rocketchat for realtime help on getting your snap to work in devmode. Once that is working, I can help with strict mode.
@mariogrip have you tested using the raw-usb interface (which you for now will need to snap connect ubports-installer:raw-usb core:raw-usb post-install) to see if that overcomes your issue with adb etc? How did it go?