title: Apps targeting Android 12 and higher required to specify an explicit value for `android:exported` [Cordova]
body: <p>When I am running to make the Apk in GitHub I got the error. As I am building the Apk in GitHub. There is no way to define something inside manifest as it is building every time fresh. All I can do is inside the Config.Xml file. After Adding <code>android:exported=&quot;false&quot;</code> to it, also getting same error. Both images for this question reference attached here. <a href="https://i.stack.imgur.com/LLMnt.png" rel="noreferrer">GitHub Error</a> and <a href="https://i.stack.imgur.com/yBSTy.png" rel="noreferrer">Config.Xml</a>. Help will be appreciated.
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="com.likehub.sweetheart" version="1.1.64" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;name&gt;sweetheart&lt;/name&gt;
      &lt;description&gt;making love bird together&lt;/description&gt;
      &lt;author email="mynamey9er@gmail.com" href=""&gt;likehub&lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;access origin="*" /&gt;
      &lt;allow-intent href="http://*/*" /&gt;
      &lt;allow-intent href="https://*/*" /&gt;
      &lt;allow-intent href="tel:*" /&gt;
      &lt;allow-intent href="sms:*" /&gt;
      &lt;allow-intent href="mailto:*" /&gt;
      &lt;allow-intent href="geo:*" /&gt;
      &lt;preference name="AndroidXEnabled" value="true" /&gt;
      &lt;preference name="WebViewBounce" value="false" /&gt;
      &lt;preference name="UIWebViewBounce" value="false" /&gt;
      &lt;preference name="DisallowOverscroll" value="true" /&gt;
      &lt;preference name="LoadUrlTimeoutValue" value="700000" /&gt;
      &lt;preference name="ScrollEnabled" value="false" /&gt;
      &lt;preference name="SplashMaintainAspectRatio" value="true" /&gt;
      &lt;preference name="FadeSplashScreenDuration" value="1000" /&gt;
      &lt;preference name="FadeSplashScreen" value="true" /&gt;
      &lt;preference name="SplashShowOnlyFirstTime" value="false" /&gt;
      &lt;preference name="SplashScreen" value="screen" /&gt;
      &lt;preference name="SplashScreenDelay" value="5000" /&gt;
      &lt;preference name="AutoHideSplashScreen" value="true" /&gt;
      &lt;preference name="ShowSplashScreen" value="false" /&gt;
      &lt;preference name="ShowSplashScreenSpinner" value="false" /&gt;
      &lt;preference name="android-minSdkVersion" value="22" /&gt;
      &lt;preference name="BackupWebStorage" value="none" /&gt;
      &lt;preference name="Orientation" value="portrait" /&gt;
      &lt;preference name="AndroidPersistentFileLocation" value="Compatibility" /&gt;
      &lt;preference name="GradlePluginKotlinEnabled" value="true" /&gt;
      &lt;preference name="GradlePluginKotlinCodeStyle" value="official" /&gt;
      &lt;preference name="GradlePluginKotlinVersion" value="1.3.50" /&gt;
      &lt;preference name="AndroidLaunchMode" value="singleTask" /&gt;
      &lt;feature name="StatusBar"&gt;
          &lt;param name="ios-package" onload="true" value="CDVStatusBar" /&gt;
      &lt;/feature&gt;
      &lt;platform  name="android"&gt;
          &lt;preference name="android-targetSdkVersion" value="31" /&gt;
          &lt;edit-config  file="app/src/main/AndroidManifest.xml" mode="merge" android:exported="true" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android"&gt;
              &lt;application android:usesCleartextTraffic="true" /&gt;
              &lt;application android:networkSecurityConfig="@xml/network_security_config" /&gt;
              
              &lt;intent-filter&gt;
                  &lt;action  android:name="MainActivity" android:exported="false"/&gt;
                  &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;/intent-filter&gt;
          &lt;/edit-config&gt;
          &lt;resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" /&gt;
          &lt;allow-intent href="market:*" /&gt;
          &lt;icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" /&gt;
          &lt;icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" /&gt;
          &lt;icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" /&gt;
          &lt;icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" /&gt;
          &lt;icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" /&gt;
          &lt;icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" /&gt;
          &lt;splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" /&gt;
          &lt;splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" /&gt;
          &lt;splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" /&gt;
          &lt;splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" /&gt;
          &lt;splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" /&gt;
          &lt;splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" /&gt;
          &lt;splash density="ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" /&gt;
          &lt;splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" /&gt;
          &lt;splash density="mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" /&gt;
          &lt;splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" /&gt;
          &lt;splash density="hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" /&gt;
          &lt;splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" /&gt;
          &lt;splash density="xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" /&gt;
          &lt;splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" /&gt;
          &lt;splash density="xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" /&gt;
          &lt;splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" /&gt;
          &lt;splash density="xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" /&gt;
          &lt;splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" /&gt;
      &lt;/platform&gt;
      &lt;platform name="ios"&gt;
          &lt;allow-intent href="itms:*" /&gt;
          &lt;allow-intent href="itms-apps:*" /&gt;
          &lt;icon height="57" src="resources/ios/icon/icon.png" width="57" /&gt;
          &lt;icon height="114" src="resources/ios/icon/icon@2x.png" width="114" /&gt;
          &lt;icon height="29" src="resources/ios/icon/icon-small.png" width="29" /&gt;
          &lt;icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" /&gt;
          &lt;icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" /&gt;
          &lt;icon height="20" src="resources/ios/icon/icon-20.png" width="20" /&gt;
          &lt;icon height="40" src="resources/ios/icon/icon-20@2x.png" width="40" /&gt;
          &lt;icon height="60" src="resources/ios/icon/icon-20@3x.png" width="60" /&gt;
          &lt;icon height="48" src="resources/ios/icon/icon-24@2x.png" width="48" /&gt;
          &lt;icon height="55" src="resources/ios/icon/icon-27.5@2x.png" width="55" /&gt;
          &lt;icon height="29" src="resources/ios/icon/icon-29.png" width="29" /&gt;
          &lt;icon height="58" src="resources/ios/icon/icon-29@2x.png" width="58" /&gt;
          &lt;icon height="87" src="resources/ios/icon/icon-29@3x.png" width="87" /&gt;
          &lt;icon height="40" src="resources/ios/icon/icon-40.png" width="40" /&gt;
          &lt;icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" /&gt;
          &lt;icon height="120" src="resources/ios/icon/icon-40@3x.png" width="120" /&gt;
          &lt;icon height="88" src="resources/ios/icon/icon-44@2x.png" width="88" /&gt;
          &lt;icon height="50" src="resources/ios/icon/icon-50.png" width="50" /&gt;
          &lt;icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" /&gt;
          &lt;icon height="60" src="resources/ios/icon/icon-60.png" width="60" /&gt;
          &lt;icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" /&gt;
          &lt;icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" /&gt;
          &lt;icon height="72" src="resources/ios/icon/icon-72.png" width="72" /&gt;
          &lt;icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" /&gt;
          &lt;icon height="76" src="resources/ios/icon/icon-76.png" width="76" /&gt;
          &lt;icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" /&gt;
          &lt;icon height="167" src="resources/ios/icon/icon-83.5@2x.png" width="167" /&gt;
          &lt;icon height="172" src="resources/ios/icon/icon-86@2x.png" width="172" /&gt;
          &lt;icon height="196" src="resources/ios/icon/icon-98@2x.png" width="196" /&gt;
          &lt;icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" /&gt;
          &lt;splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" /&gt;
          &lt;splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" /&gt;
          &lt;splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" /&gt;
          &lt;splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" /&gt;
          &lt;splash height="1125" src="resources/ios/splash/Default-Landscape-2436h.png" width="2436" /&gt;
          &lt;splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" /&gt;
          &lt;splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" /&gt;
          &lt;splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" /&gt;
          &lt;splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" /&gt;
          &lt;splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" /&gt;
          &lt;splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" /&gt;
          &lt;splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" /&gt;
          &lt;splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" /&gt;
          &lt;splash height="2436" src="resources/ios/splash/Default-2436h.png" width="1125" /&gt;
          &lt;splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" /&gt;
          &lt;icon height="216" src="resources/ios/icon/icon-108@2x.png" width="216" /&gt;
          &lt;splash height="2688" src="resources/ios/splash/Default-2688h~iphone.png" width="1242" /&gt;
          &lt;splash height="1242" src="resources/ios/splash/Default-Landscape-2688h~iphone.png" width="2688" /&gt;
          &lt;splash height="1792" src="resources/ios/splash/Default-1792h~iphone.png" width="828" /&gt;
          &lt;splash height="828" src="resources/ios/splash/Default-Landscape-1792h~iphone.png" width="1792" /&gt;
      &lt;/platform&gt;
      &lt;plugin name="cordova-plugin-googleplus" spec="^8.4.0"&gt;
          &lt;variable name="WEB_APPLICATION_CLIENT_ID" value="0000000000000-wwwwwwwmkv51oxxxxxxxxxxx.apps.googleusercontent.co" /&gt;
      &lt;/plugin&gt;
      &lt;platform name="android"&gt;
          &lt;preference name="GoogleAndroidClientId" value="888809hhju-i9hd0hc6v51obgdubbgxwbnhiywgdiueh.apps.googleusercontent.com" /&gt;
      &lt;/platform&gt;
      &lt;plugin name="cordova-plugin-whitelist" spec="1.3.5" /&gt;
      &lt;plugin name="cordova-plugin-statusbar" spec="2.4.3" /&gt;
      &lt;plugin name="cordova-plugin-device" spec="2.0.3" /&gt;
      &lt;plugin name="cordova-plugin-splashscreen" spec="6.0.0" /&gt;
      &lt;plugin name="cordova-plugin-ionic-webview" spec="5.0.0" /&gt;
      &lt;plugin name="cordova-plugin-ionic-keyboard" spec="^2.2.0" /&gt;
  &lt;/widget&gt;</code></pre>
  </div>
  </div>
  </p>
  <blockquote>
  <p>Apps targeting Android 12 and higher are required to specify an explicit value for <code>android:exported</code> when the corresponding component has an intent filter defined. See <a href="https://developer.android.com/guide/topics/manifest/activity-element#exported" rel="noreferrer">https://developer.android.com/guide/topics/manifest/activity-element#exported</a> for details.</p>
  </blockquote>