Yes, they did it by default in their MIUI. In order to enable some app to work in background you need to go to their security app and enable needed app to startup automatically, in this case this app will work in background. I enabled Eset to run in background by this method on my Xiaomi smartphone.