How to get MIUI Security app auto start permission programmatically?

后端 未结 2 838
慢半拍i
慢半拍i 2020-12-02 13:04

I am not getting BOOT_COMPLETE broadcast in my Xiaomi Redmi 2 Prime mobile.

My BroadcastReciever is ---

public class OnBoot         


        
2条回答
  •  执念已碎
    2020-12-02 13:08

    You need to give permissions in the in build security application for xiaomi.

    1. open the security app
    2. go to permissions
    3. go to auto start
    4. enable the applications that you want to keep running in the background!
    

    This worked for me..!

提交回复
热议问题