Enforce the PendingIntent mutability flag requirement for chrome
Bug: 178065720 Test: manual Change-Id: Ic78716033fa91f4a16540aab72e3bff73c6391e9
This commit is contained in:
@@ -378,8 +378,7 @@ public final class PendingIntent implements Parcelable {
|
|||||||
if (Compatibility.isChangeEnabled(PENDING_INTENT_EXPLICIT_MUTABILITY_REQUIRED)
|
if (Compatibility.isChangeEnabled(PENDING_INTENT_EXPLICIT_MUTABILITY_REQUIRED)
|
||||||
&& !flagImmutableSet && !flagMutableSet) {
|
&& !flagImmutableSet && !flagMutableSet) {
|
||||||
|
|
||||||
//TODO(b/178065720) Remove check for chrome and enforce this requirement
|
if (mInstrumentation.isInstrumenting()) {
|
||||||
if (packageName.equals("com.android.chrome") || mInstrumentation.isInstrumenting()) {
|
|
||||||
Log.e(TAG, msg);
|
Log.e(TAG, msg);
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(msg);
|
throw new IllegalArgumentException(msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user