summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Achim Thesmann <achim@google.com> 2024-10-03 23:27:04 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-10-03 23:27:04 +0000
commit98e0bab7ab1e73373a2ec93a1b5cfa78d0821c46 (patch)
tree63108647fc63d9d612de23954abafae95305d327
parent53aebb03325b85ddaeb76ff3e71593b2097e8274 (diff)
parentbd0053a245b4ea13ff2bca1f3277178119e68899 (diff)
Merge "Don't consider FOREGROUND exemption for visibility checks" into main
-rw-r--r--services/core/java/com/android/server/wm/BackgroundLaunchProcessController.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/BackgroundLaunchProcessController.java b/services/core/java/com/android/server/wm/BackgroundLaunchProcessController.java
index 1073713cca52..264c8beb44bf 100644
--- a/services/core/java/com/android/server/wm/BackgroundLaunchProcessController.java
+++ b/services/core/java/com/android/server/wm/BackgroundLaunchProcessController.java
@@ -146,7 +146,7 @@ class BackgroundLaunchProcessController {
"process bound by foreground uid");
}
// Allow if the caller has an activity in any foreground task.
- if (checkConfiguration.checkVisibility && hasActivityInVisibleTask
+ if (checkConfiguration.checkOtherExemptions && hasActivityInVisibleTask
&& appSwitchState != APP_SWITCH_DISALLOW) {
return new BalVerdict(BAL_ALLOW_FOREGROUND, /*background*/ false,
"process has activity in foreground task");