Loading services/core/java/com/android/server/wm/BackgroundActivityStartController.java +2 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,8 @@ public class BackgroundActivityStartController { /** Apps that fulfill a certain role that can can always launch new tasks */ static final int BAL_ALLOW_ALLOWLISTED_COMPONENT = 3; /** Apps which currently have a visible window */ /** Apps which currently have a visible window or are bound by a service with a visible * window */ static final int BAL_ALLOW_VISIBLE_WINDOW = 4; /** Allowed due to the PendingIntent sender */ Loading services/core/java/com/android/server/wm/BackgroundLaunchProcessController.java +2 −1 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import static com.android.server.wm.ActivityTaskManagerService.APP_SWITCH_FG_ONL import static com.android.server.wm.BackgroundActivityStartController.BAL_ALLOW_BAL_PERMISSION; import static com.android.server.wm.BackgroundActivityStartController.BAL_ALLOW_FOREGROUND; import static com.android.server.wm.BackgroundActivityStartController.BAL_ALLOW_GRACE_PERIOD; import static com.android.server.wm.BackgroundActivityStartController.BAL_ALLOW_VISIBLE_WINDOW; import static com.android.server.wm.BackgroundActivityStartController.BAL_BLOCK; import static java.util.Objects.requireNonNull; Loading Loading @@ -152,7 +153,7 @@ class BackgroundLaunchProcessController { Slog.d(TAG, "[Process(" + pid + ")] Activity start allowed: process bound by foreground uid"); } return BAL_ALLOW_FOREGROUND; return BAL_ALLOW_VISIBLE_WINDOW; } // Allow if the flag was explicitly set. if (isBackgroundStartAllowedByToken(uid, packageName, isCheckingForFgsStart)) { Loading Loading
services/core/java/com/android/server/wm/BackgroundActivityStartController.java +2 −1 Original line number Diff line number Diff line Loading @@ -86,7 +86,8 @@ public class BackgroundActivityStartController { /** Apps that fulfill a certain role that can can always launch new tasks */ static final int BAL_ALLOW_ALLOWLISTED_COMPONENT = 3; /** Apps which currently have a visible window */ /** Apps which currently have a visible window or are bound by a service with a visible * window */ static final int BAL_ALLOW_VISIBLE_WINDOW = 4; /** Allowed due to the PendingIntent sender */ Loading
services/core/java/com/android/server/wm/BackgroundLaunchProcessController.java +2 −1 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import static com.android.server.wm.ActivityTaskManagerService.APP_SWITCH_FG_ONL import static com.android.server.wm.BackgroundActivityStartController.BAL_ALLOW_BAL_PERMISSION; import static com.android.server.wm.BackgroundActivityStartController.BAL_ALLOW_FOREGROUND; import static com.android.server.wm.BackgroundActivityStartController.BAL_ALLOW_GRACE_PERIOD; import static com.android.server.wm.BackgroundActivityStartController.BAL_ALLOW_VISIBLE_WINDOW; import static com.android.server.wm.BackgroundActivityStartController.BAL_BLOCK; import static java.util.Objects.requireNonNull; Loading Loading @@ -152,7 +153,7 @@ class BackgroundLaunchProcessController { Slog.d(TAG, "[Process(" + pid + ")] Activity start allowed: process bound by foreground uid"); } return BAL_ALLOW_FOREGROUND; return BAL_ALLOW_VISIBLE_WINDOW; } // Allow if the flag was explicitly set. if (isBackgroundStartAllowedByToken(uid, packageName, isCheckingForFgsStart)) { Loading