Set “allow” permission by default in “Asus auto start manager” from code

你离开我真会死。 提交于 2019-11-27 10:52:23

问题


I have an application which needs to run in the background, so I'm using a WakeFullService for that. But in Asus Zenfone it's not working because Auto start manager does not allow the app to run. My expectation is:

  1. To set "allow permission" in auto start manager during our app install or at the time of app opening.

  2. Is there any API available from ASUS Auto Start Manager which can help me check the permission status of my app so that I can notify the user via normal text alert to turn on the permission.


回答1:


Someone did it for Huawei:

"Protected Apps" setting on Huawei phones, and how to handle it

It would be nice a library / class to detect most common "task killers" (preinstalled or not) and letting user know that they need to disable them (and why) to let some feature work, like beacon detection.



来源:https://stackoverflow.com/questions/38843579/set-allow-permission-by-default-in-asus-auto-start-manager-from-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!