switch to libinit for device recognition, taken and modified from https://github.com/Evolution-X-Devices/device_xiaomi_marble/commits/udc/libinit