Set “allow” permission by default in “Asus auto st

2019-01-21 17:39发布

问题:

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.