Loading services/core/java/com/android/server/am/ActiveServices.java +6 −5 Original line number Diff line number Diff line Loading @@ -2118,11 +2118,6 @@ public final class ActiveServices { // anyway, so we just remove the SHORT_SERVICE type. foregroundServiceType &= ~FOREGROUND_SERVICE_TYPE_SHORT_SERVICE; } if (!shouldAllowBootCompletedStart(r, foregroundServiceType)) { throw new ForegroundServiceStartNotAllowedException("FGS type " + ServiceInfo.foregroundServiceTypeToLabel(foregroundServiceType) + " not allowed to start from BOOT_COMPLETED!"); } boolean alreadyStartedOp = false; boolean stopProcStatsOp = false; Loading @@ -2137,6 +2132,12 @@ public final class ActiveServices { mServiceFGAnrTimer.cancel(r); } if (!shouldAllowBootCompletedStart(r, foregroundServiceType)) { throw new ForegroundServiceStartNotAllowedException("FGS type " + ServiceInfo.foregroundServiceTypeToLabel(foregroundServiceType) + " not allowed to start from BOOT_COMPLETED!"); } final ProcessServiceRecord psr = r.app.mServices; try { boolean ignoreForeground = false; Loading Loading
services/core/java/com/android/server/am/ActiveServices.java +6 −5 Original line number Diff line number Diff line Loading @@ -2118,11 +2118,6 @@ public final class ActiveServices { // anyway, so we just remove the SHORT_SERVICE type. foregroundServiceType &= ~FOREGROUND_SERVICE_TYPE_SHORT_SERVICE; } if (!shouldAllowBootCompletedStart(r, foregroundServiceType)) { throw new ForegroundServiceStartNotAllowedException("FGS type " + ServiceInfo.foregroundServiceTypeToLabel(foregroundServiceType) + " not allowed to start from BOOT_COMPLETED!"); } boolean alreadyStartedOp = false; boolean stopProcStatsOp = false; Loading @@ -2137,6 +2132,12 @@ public final class ActiveServices { mServiceFGAnrTimer.cancel(r); } if (!shouldAllowBootCompletedStart(r, foregroundServiceType)) { throw new ForegroundServiceStartNotAllowedException("FGS type " + ServiceInfo.foregroundServiceTypeToLabel(foregroundServiceType) + " not allowed to start from BOOT_COMPLETED!"); } final ProcessServiceRecord psr = r.app.mServices; try { boolean ignoreForeground = false; Loading