summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2023-01-21 05:01:52 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-01-21 05:01:52 +0000
commite6ffbc91fbd1f3e04f7c388b65e0f68659d55576 (patch)
treeb56798e356a1149a97004edcc84e87ec7ea68d24
parent1d1446d53b486d9297eb76de8fc902ed4cafa8b1 (diff)
parent48acfb0f1d71912e757cadd505901471c1df4d4c (diff)
downloadbase-e6ffbc91fbd1f3e04f7c388b65e0f68659d55576.tar.gz
Merge "Revert "Ensure that only SysUI can override pending intent launch flags"" into qt-dev
-rw-r--r--services/core/java/com/android/server/am/PendingIntentRecord.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/services/core/java/com/android/server/am/PendingIntentRecord.java b/services/core/java/com/android/server/am/PendingIntentRecord.java
index 44d67ed0d642..54504c3c1e24 100644
--- a/services/core/java/com/android/server/am/PendingIntentRecord.java
+++ b/services/core/java/com/android/server/am/PendingIntentRecord.java
@@ -317,16 +317,11 @@ public final class PendingIntentRecord extends IIntentSender.Stub {
resolvedType = key.requestResolvedType;
}
- // Apply any launch flags from the ActivityOptions. This is used only by SystemUI
- // to ensure that we can launch the pending intent with a consistent launch mode even
- // if the provided PendingIntent is immutable (ie. to force an activity to launch into
- // a new task, or to launch multiple instances if supported by the app)
+ // Apply any launch flags from the ActivityOptions. This is to ensure that the caller
+ // can specify a consistent launch mode even if the PendingIntent is immutable
final ActivityOptions opts = ActivityOptions.fromBundle(options);
if (opts != null) {
- // TODO(b/254490217): Move this check into SafeActivityOptions
- if (controller.mAtmInternal.isCallerRecents(Binder.getCallingUid())) {
- finalIntent.addFlags(opts.getPendingIntentLaunchFlags());
- }
+ finalIntent.addFlags(opts.getPendingIntentLaunchFlags());
}
// Extract options before clearing calling identity