Boot BroadcastReceiver does not work on Xiaomi devices

I searched around the web and found a solution, I’ve decided to answer my own question. Follow the same code given in the question. In Xiaomi devices, you just have to add your app to Autostart list, to do so, follow these simple steps given below: Open Security app on your phone. Tap on Permissions, … Read more