PendingIntent.FlagAllowUnsafeImplicitIntent Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.PendingIntentFlags enum directly instead of this field.

Flag indicating that the created PendingIntent with #FLAG_MUTABLE is allowed to have an unsafe implicit Intent within.

[Android.Runtime.Register("FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.PendingIntentFlags enum directly instead of this field.", true)]
public const Android.App.PendingIntentFlags FlagAllowUnsafeImplicitIntent = 16777216;
[<Android.Runtime.Register("FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.PendingIntentFlags enum directly instead of this field.", true)>]
val mutable FlagAllowUnsafeImplicitIntent : Android.App.PendingIntentFlags

Field Value

Value = 16777216

Implements

Attributes

Remarks

Flag indicating that the created PendingIntent with #FLAG_MUTABLE is allowed to have an unsafe implicit Intent within.

Starting with android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE, for apps that target SDK android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE or higher, creation of a PendingIntent with #FLAG_MUTABLE and an implicit Intent within will throw an IllegalArgumentException for security reasons. To bypass this check, use #FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT when creating a PendingIntent. However, it is strongly recommended to not to use this flag and make the Intent explicit or the PendingIntent immutable, thereby making the Intent safe.

Java documentation for android.app.PendingIntent.FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to