Foreground Service killed on Huawei (GRA-UL00) - Protected Apps Enabled
问题 My foreground sticky service is killed after a few hours without being restarted. I know this has been asked a couple of times, and I have read and verified all the checks on my device. Its important to note that this seems to occur only on Huawei devices. So allow me to provide the following details. Periodic Service public class PeriodicService extends Service { @Override public void onCreate() { super.onCreate(); acquireWakeLock(); foregroundify(); } private void foregroundify() { //