summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Orr <brianorr@google.com>2021-04-23 11:34:41 -0700
committerScott Lobdell <slobdell@google.com>2021-04-23 22:39:49 +0000
commitb22baa1593b2ee33200d009f7f56d1c44a75ac6d (patch)
tree99175f8cf48e08902c2be5ecd72d41657648565a
parent81abbc1d7858f29d3344ff6f1702ece80eab8341 (diff)
Revert "Enforce the PendingIntent mutability flag requirement for chrome"
This reverts commit 0cbccf9e012655177090f363bd3e84dd79aedaab. Bug: 186196894 Change-Id: Ifd5cb1dbe5fa4832ed783e13a019b6280d322df8
-rw-r--r--core/java/android/app/PendingIntent.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/app/PendingIntent.java b/core/java/android/app/PendingIntent.java
index 4cf3a8059b3e..f4b95420154b 100644
--- a/core/java/android/app/PendingIntent.java
+++ b/core/java/android/app/PendingIntent.java
@@ -379,7 +379,8 @@ public final class PendingIntent implements Parcelable {
if (Compatibility.isChangeEnabled(PENDING_INTENT_EXPLICIT_MUTABILITY_REQUIRED)
&& !flagImmutableSet && !flagMutableSet) {
- if (mInstrumentation.isInstrumenting()) {
+ //TODO(b/178065720) Remove check for chrome and enforce this requirement
+ if (packageName.equals("com.android.chrome") || mInstrumentation.isInstrumenting()) {
Log.e(TAG, msg);
} else {
throw new IllegalArgumentException(msg);