I’m trying to access serial port of an embedded device using chromium(firefox does not support this feature) but browser can’t recognise any serial ports. It seems like it’s ubuntu specific issue and it’s caused by snap.
There is a serial-port interface, but I don’t think it would be suited for this kind of usage, and it doesn’t allow read access to /run/udev/data/+dmi:id anyway.
If you edit chromium’s generated apparmor profile as suggested in that other bug to allow read access to /run/udev/data/+dmi:id, does it fix the problem?
the serial-port interface should work well (with USB-Serial adapters at least) if you enable hotplug support (which dynamically creates the slot when plugging in the adapter), it probably makes sense to add the plug “just in case” so people can optionally connect it if needed…