My aim is to receive BOOT_COMPLETE through a broadcast receiver. I have implemented it according to Piyush's answer in BOOT_COMPLETED not working Android and it is working on a Nexus5. But it doesn't work on my Xiaomi mi5s even though I have turned on autostart for my app in MIUI's security app.
p.s: I am on MIUI 8.2.1.0.