title: The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED android 12
body: <p>Getting the following error when trying to install the app in android 12 device.</p>
  <pre><code>Installation did not succeed.
  The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
  </code></pre>
  <p><strong>Error</strong></p>
  <pre><code>Installation failed due to: 'INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl1707272647.tmp/base.apk (at Binary XML file line #98): aero.sita.airsideapp.activities.MainActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'
  </code></pre>
  <p>Have following target and complie sdk verions</p>
  <pre><code> compileSdkVersion: 31,
   buildToolsVersion: &quot;28.0.2&quot;,
   minSdkVersion    : 16,
   targetSdkVersion : 31,
  </code></pre>
  <p>Reducing the <strong>version to 30 works fine</strong>, but then I can't use <code>android:windowSplashScreenBackground</code> splash screen background change parameters for android 12 device</p>
  <p><strong>Edit</strong> : Adding <code>android:exported=&quot;true&quot;</code> to all  <code>&lt;activity&gt;</code>,<code>&lt;service&gt;</code>, or <code>&lt;receiver&gt;</code> components that have <code>&lt;intent-filters&gt;</code> , crashes the application on launch</p>
  <p><strong>Crash Logs</strong></p>
  <pre><code>   java.lang.IllegalArgumentException: aero.sita.airsideapp.oneapp: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
  Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
      at android.app.PendingIntent.checkFlags(PendingIntent.java:375)
      at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:645)
      at android.app.PendingIntent.getBroadcast(PendingIntent.java:632)
      at androidx.work.impl.utils.ForceStopRunnable.getPendingIntent(ForceStopRunnable.java:273)
      at androidx.work.impl.utils.ForceStopRunnable.isForceStopped(ForceStopRunnable.java:151)
      at androidx.work.impl.utils.ForceStopRunnable.forceStopRunnable(ForceStopRunnable.java:171)
      at androidx.work.impl.utils.ForceStopRunnable.run(ForceStopRunnable.java:102)
      at androidx.work.impl.utils.SerialExecutor$Task.run(SerialExecutor.java:91)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
      at java.lang.Thread.run(Thread.java:920)
     
  </code></pre>