I'm using an Android (Huewei) tablet to control a digital music synthesiser over USB using HTML/Javascript on the Chrome browser with the webmidi extensions. This works fine but I have to open the Settings panel and set the USB port to MIDI before using it each time which is slow and painful. Is there any way to programatically either force the USB port into MIDI mode, or at least offer a window to the user to agree to set this mode ?
I've Developer options enabled so it's not that.