microsoftconnect / Taskr-Sample-Intune-Android-App

Taskr is a simple, open source, Android app designed to let you test out the capabilities of the Microsoft Intune APP SDK.
MIT License
21 stars 18 forks source link

Android Gradle Plugin upgrade indicates "Mam enabled: No" when uploading as lob to intune #35

Closed squale closed 1 year ago

squale commented 1 year ago

Hi there,

I'm having issues when I try to upgrade the AGP ( Android Gradle Plugin ) version of this sample, Step to reproduce :

downloaded latest version of the Taskr sample source code from here, open it with Android Studio, generate signed release apk, uploading the apk to intune as lob app, indicates "MAM Enabled: Yes", everything's fine, current project settings : Gradle version 6.2 AGP : 4.0.2

Upgrading only Gradle version to 6.9.3, keeping AGP to 4.0.2, uploading new generated signed apk to intune, still indicates "MAM Enabled: Yes" ...

Now upgrading AGP to any version to 4.2.0 or any above, ( version till 4.1.3 are OK ) when uploading to intune, it indicates "MAM Enabled: No" ( uploading the debug apk indicates "Yes" )

if modifying it again, and set it back to 4.0.2 or 4.1.3, intune indicates "MAM Enabled: Yes"

Nothing else is modified except the version of these...

My question is : Why the upgrade of AGP fails the enabling of MAM ? Are some additional parameters needed to make it work ?

If I start a new project from scratch with Android Studio, by default Gradle version is 7.5 and AGP is 7.4.1, after integrating msal and intune SDKs, I have the same issue...

Best regards

squale commented 1 year ago

Hi there again,

just noticed this is a known issue :

https://github.com/msintuneappsdk/ms-intune-app-sdk-android/issues/117