16

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.

Suresh
  • 1,199
  • 2
  • 12
  • 36
  • have you already found any solutions? – natsumiyu Nov 07 '16 at 09:26
  • To handle this (not solve) I create an intent like this: Intent intent = new Intent(); intent.setClassName("com.asus.mobilemanager", "com.asus.mobilemanager.MainActivity"); And check if the intent is valid. (Only tried it on an ASUS AR) – Kong Far Oct 18 '17 at 08:49
  • Did you find a solution to this problem? – AmirNorouzpour Sep 17 '18 at 04:06
  • Any solution so far? This battery optimization is killing our apps and killing customers trust on us. It is one of the worst solutions from Android. They should make an standard api to remove our apps from optimization. Just like any other run-time permission. – Ton May 03 '19 at 07:50

1 Answers1

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.

FrancescoR
  • 520
  • 1
  • 4
  • 12