HarmonyOS NEXT already does something like this for driver support and I believe real phones already use it.