Issue:
You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without 'android:exported' property set. This file can't be installed on Android 12 or higher.
Solution:
If your app targets Android 12 or higher and contains activities
, services
, or broadcast receivers
that use intent filters
, you must explicitly declare the android:exported
attribute for these app components. If the app component includes the LAUNCHER
category, set android:exported
to true
. In most other cases, set android:exported
to false
.
Open AndroidManifest.xml
file and set the value of the android:exported
attribute to all of the above components:
Activity
example:
<activity
android:name=".MainActivity"
...
android:exported="true">
Receiver
example:
<receiver
android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
Service
example:
<service
android:name="com.example.app.backgroundService"
android:exported="true">
<intent-filter>
<action android:name="com.example.app.START_BACKGROUND" />
</intent-filter>
</service>
Links:
GitHub: https://github.com/AlexeyShpavda
YouTube: https://www.youtube.com/c/alexeyshpavdaMain
Google Play: https://play.google.com/store/apps/dev?id=7235693910501061926