microsoftconnect / ms-intune-app-sdk-android

Intune App SDK for Android enables data protection features and mobile app management via Microsoft Intune
43 stars 17 forks source link

android:exported required when intent filters are present in Manifest - Android 12 #72

Closed javidran closed 2 years ago

javidran commented 3 years ago

Describe the bug: When the app targets API 30, the next error occurs when executing the app:

Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl211025264.tmp/base.apk (at Binary XML file line #97): com.microsoft.intune.mam.client.service.MAMBackgroundReceiver: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'

To Reproduce

  1. Include intune aar package on the app dependencies.
  2. Target API 31 on build.gradle
  3. Execute App on Android 31 device/emulator.

Expected behavior: The expected behavior is that the app at least initiates correctly.

Screenshots and logs:

Smartphone (please complete the following information):

Intune App SDK for Android (please complete the following information):

Additional context: This bug is related with one of the Android 12 behavior changes listed on the official Android 12 Beta website: https://developer.android.com/about/versions/12/behavior-changes-12#exported

Exported attributes are now mandatory to be declared for every intent-filter. We updated the ones included in our app, but the libraries we are using also need to declare them if they use intent-filters too.

svarnik commented 3 years ago

I think MS will publish new SDK version with Android 12 support.

meghandaly commented 3 years ago

The SDK does not currently support Android 12. A future release will have Android 12 support.

javidran commented 3 years ago

Is there an expected date for its release?

meghandaly commented 3 years ago

Aye, we are targeting mid-September!

javidran commented 2 years ago

Any updates on this?

meghandaly commented 2 years ago

SDK 8.0 is now available! Version 8.0