-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to keep DPC alive all the time? #23
Comments
Why DPC needs to be running all the time? |
@ming030890 on some ROMs, once DPC be killed, all static broadcasts become inactive state and cannot receive any broadcast, then DPC cannot pull policies from server. Service.startForeground() not working. |
Hmm, so you are saying you can't fetch policy from server in the background? |
Unfortunately, because these methods used to keep application alive in the past, many ROMs disable them when application be killed. |
@ming030890 Sadly, due to the problem of survival, I don't think DPC is a stable solution for real work situation, although we has been developing on it(Device Owner part) for nearly one year, from android 5.0 to android 7.0. I think the biggest advantage of |
Finally, we have to use some bad methods to keep DPC alive to fetch policies on time, that breaks user experience but there is no other way. |
@shizhx can you please tell me which methods did you use finally? Had the similar problem, stuck with foreground services, but they seem to be not reliable solution at all. |
no solution yet, we finally give up and choose SDK provided by phone manufacturer :( |
@shizhx can I ask you a few questions about your DPC architecture?
Now I am using
I have a requirement that the app must recover itself after any kinds of the crash. I think that |
It is well known that many third-party ROMs kill applications frequently, if there is not any way to survive from these massacres, DPC is meaningless.
The text was updated successfully, but these errors were encountered: