Inspectopedia Help

Missing PendingIntent mutability flag

Missing PendingIntent mutability flag

Apps targeting Android 12 and higher must specify either FLAG_IMMUTABLE or FLAG_MUTABLE when constructing a PendingIntent.

FLAG_IMMUTABLE is available since target SDK 23, and is almost always the best choice. See for a list of common exceptions to this rule.

Issue id: UnspecifiedImmutableFlag

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3


Android, 2022.3.1 Beta 2

Last modified: 13 July 2023