ms-intune-app-sdk-android icon indicating copy to clipboard operation
ms-intune-app-sdk-android copied to clipboard

`intune_mam_manifest.xml` Resource Obfuscation in Release Builds Beginning in AGP 4.2 Prevents Accurate "MAM Enabled" Status in Endpoint Manager

Open dtarnawsky opened this issue 1 year ago • 6 comments

Describe the bug: When uploading an APK to Microsoft Endpoint Manager Admin Center if the build is debug it will report as "MAM Enabled: Yes" but if built as release it will report as "MAM Enabled: No"

To Reproduce Steps to reproduce the behavior with a release build APK:

  1. Go to All Services -> Apps -> Add App -> Line of Business App - Choose APK
  2. Notice that MAM Enabled: No

Expected behavior: Release builds can be uploaded as MAM Enabled.

Screenshots and logs: Debug: debug

Release: release

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

  • What version of the Intune SDK are you using? Are you using the latest version?

  • 8.3.0

  • What platform is your app based in (Java, Xamarin based, Cordova, etc)? Capacitor

Additional context: In testing the signature of the APK the MAM Enabled flag isn't affected by the signature used in the androidmanifest.xml. It seems to be specifically that release android builds report MAM Enabled = no while the debug build reports yes.

dtarnawsky avatar Jul 20 '22 19:07 dtarnawsky