No progress on this over the weekend, as I was busy helping assemble a friend’s CNC cupcake 3d printer.
This evening though, I’ve decided to switch to the USB function drivers for this project; the gadget ones are unmaintaned and are obviously not really a part of the android stack any more. So step #1 is to make them into proper unloadable modules. I’ve already done a fair bit of that with the gadget drivers, so I can port that across quite easily.
They’re a slight mess though; unloading obviously hasn’t been a design consideration, and I need to move some hardcoded function calls and variable accesses.