Related to the MIUI Security app REMOVING THIS WILL BOOTLOOP YOUR DEVICE! NOTE : I don't have a Xiaomi phone on hand anymore but maybe only disabling it will work : adb shell 'pm disable-user com.miui.securityadd' Can someone try ?
Phones target this application