summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLifu Tang <lifu@google.com>2023-07-05 13:03:00 -0700
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-10-18 20:31:57 +0000
commit1c8d6b0ea68b7047c8c75f37901849ff890c7f96 (patch)
treeab1e3df6c73d548c671347cfc3e4079dcccc3129
parent53047fb33f4f3d676a4c3bbf05121987dd59dd5a (diff)
downloadbase-1c8d6b0ea68b7047c8c75f37901849ff890c7f96.tar.gz
Fix bypass BAL via `requestGeofence`
Bug: 273729172 Test: manually (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7f9be7c3c859dc82d37452570d9878b58f6437a9) Merged-In: Ia8094244f908b20d42711b6ea8f58f9b3345b563 Change-Id: Ia8094244f908b20d42711b6ea8f58f9b3345b563
-rw-r--r--services/core/java/com/android/server/PendingIntentUtils.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/PendingIntentUtils.java b/services/core/java/com/android/server/PendingIntentUtils.java
index 1600101b20f4..a72a4d254a2a 100644
--- a/services/core/java/com/android/server/PendingIntentUtils.java
+++ b/services/core/java/com/android/server/PendingIntentUtils.java
@@ -34,6 +34,7 @@ public class PendingIntentUtils {
public static Bundle createDontSendToRestrictedAppsBundle(@Nullable Bundle bundle) {
final BroadcastOptions options = BroadcastOptions.makeBasic();
options.setDontSendToRestrictedApps(true);
+ options.setPendingIntentBackgroundActivityLaunchAllowed(false);
if (bundle == null) {
return options.toBundle();
}