From 5e5c345899b3fe97149e59c31eeff4dda4b88823 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Fri, 25 May 2018 13:12:12 -0700 Subject: [PATCH] Extend startForegroundService() fg transition timeout to 10 seconds Change-Id: I5e09205218e5ddb2ff536f7f5c20ac31c0c03bb1 Fixes: 80309073 Test: atest CtsAndroidAppTestCases --- services/core/java/com/android/server/am/ActiveServices.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/am/ActiveServices.java b/services/core/java/com/android/server/am/ActiveServices.java index 4c2a94092e232..faa245c58d61d 100644 --- a/services/core/java/com/android/server/am/ActiveServices.java +++ b/services/core/java/com/android/server/am/ActiveServices.java @@ -119,7 +119,7 @@ public final class ActiveServices { // How long the startForegroundService() grace period is to get around to // calling startForeground() before we ANR + stop it. - static final int SERVICE_START_FOREGROUND_TIMEOUT = 5*1000; + static final int SERVICE_START_FOREGROUND_TIMEOUT = 10*1000; final ActivityManagerService mAm;