How to enable auto start for an app in xiaomi programmatically

前端 未结 2 1683
滥情空心
滥情空心 2020-12-01 17:10

I would like to know whether the background service for any application can be provided by xiaomi? I have service in my app which need to be running in background all the ti

2条回答
  •  [愿得一人]
    2020-12-01 18:09

    you wont be able to do that from code until and unless there is some api from xiaomi that gives you access to that functionality. I am guessing auto start manager is an app( with privileges of that of a system app, since part of xiaomi modified os) , hence not possible. On the other-hand if the device is rooted you can actually disable autostart manager.

    Still whatsapp , facebook and many more apps doing this may be because of they have tie ups with Xiaomi to be in the whitelist. But its just a guess.

提交回复
热议问题