Use custom USB device with Android emulator by using custom built kernel on Ubuntu 18.04
The android emulator doesn't support all usb devices because they are disabled in the kernel. So we need to build it with another configuration. My goal was to build the same version as it was before, but with just configuration modifications.
Find current android version
Start the emulator without modifications, go into
Configuration > System > About emulated device > Android version