title: Flutter and Android release aab 'android:exported = true' not working
body: <p>I tried to upload the AAB file to the play console but giving the uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without '<code>android:exported</code>' property set. This file can't be installed on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported error. I set the <code>exported= true</code> property to the activity too. And also add the <code>android:exported=&quot;true&quot; tools:node=&quot;merge&quot;</code>.</p>
  <p><a href="https://i.stack.imgur.com/nfoHW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nfoHW.png" alt="enter image description here" /></a></p>
  <p>I made the changes in the manifest as per suggestions then also getting same issue.</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
          xmlns:tools=&quot;http://schemas.android.com/tools&quot;
          package=&quot;com.example.example&quot;&gt;
      
          &lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot; /&gt;
          &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;/&gt;
      
      
      
          &lt;!-- io.flutter.app.FlutterApplication is an android.app.Application that
               calls FlutterMain.startInitialization(this); in its onCreate method.
               In most cases you can leave this as-is, but you if you want to provide
               additional functionality it is fine to subclass or reimplement
               FlutterApplication and put your custom class here. --&gt;
          &lt;application
              android:label=&quot;Demo&quot;
              android:icon=&quot;@mipmap/ic_launcher_foreground&quot;&gt;
              &lt;activity
                  android:name=&quot;.MainActivity&quot;
                  android:launchMode=&quot;singleTop&quot;
                  android:theme=&quot;@style/LaunchTheme&quot;
                  android:configChanges=&quot;orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode&quot;
                  android:hardwareAccelerated=&quot;true&quot;
                  android:windowSoftInputMode=&quot;adjustResize&quot;
                  android:exported=&quot;true&quot;
                  tools:node=&quot;merge&quot;
                  &gt;
                  &lt;!-- Specifies an Android theme to apply to this Activity as soon as
                       the Android process has started. This theme is visible to the user
                       while the Flutter UI initializes. After that, this theme continues
                       to determine the Window background behind the Flutter UI. --&gt;
                  &lt;meta-data
                      android:name=&quot;io.flutter.embedding.android.NormalTheme&quot;
                      android:resource=&quot;@style/NormalTheme&quot;
                      /&gt;
                  &lt;!-- Displays an Android View that continues showing the launch screen
                       Drawable until Flutter paints its first frame, then this splash
                       screen fades out. A splash screen is useful to avoid any visual
                       gap between the end of Android's launch screen and the painting of
                       Flutter's first frame. --&gt;
                  &lt;meta-data
                      android:name=&quot;io.flutter.embedding.android.SplashScreenDrawable&quot;
                      android:resource=&quot;@drawable/launch_background&quot;
                      /&gt;
      
      
                  &lt;meta-data
                      android:name=&quot;com.google.firebase.messaging.default_notification_channel_id&quot;
                      android:value=&quot;demo&quot;/&gt;
                  &lt;intent-filter&gt;
                      &lt;action android:name=&quot;FLUTTER_NOTIFICATION_CLICK&quot;/&gt;
                      &lt;category android:name=&quot;android.intent.category.DEFAULT&quot;/&gt;
                  &lt;/intent-filter&gt;
      
                  &lt;intent-filter&gt;
                      &lt;action android:name=&quot;android.intent.action.MAIN&quot;/&gt;
                      &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot;/&gt;
                  &lt;/intent-filter&gt;
              &lt;/activity&gt;
              &lt;!-- Don't delete the meta-data below.
                   This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --&gt;
              &lt;meta-data
                  android:name=&quot;flutterEmbedding&quot;
                  android:value=&quot;2&quot;
                  /&gt;
      
              &lt;meta-data
                  android:name=&quot;com.facebook.sdk.ApplicationId&quot;
                  android:value=&quot;@string/facebook_app_id&quot; /&gt;
          &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>