Why does Azure consider my debug.apk as MAM-handled but not my release-apk?

Anonymous
2023-03-20T09:08:41.3433333+00:00

0

I am trying to implement Intune SDK to an existing LOB-app using Android Studio and Azure seems to accept my debug-apk as MAM-handled but not my release-apk. I am not super familiar with Android studio but from what I can tell my build.gradle looks correct. I also consider that perhaps the code I added perhaps needs to be written differently in order for the release apk to work but I wanted to rule out the simplest errors if possible first.

my build.gradle

apply plugin: 'com.android.application'
apply plugin: 'com.microsoft.intune.mam'

def versionMajor = 22
def versionMinor = 1
def versionPatch = 999
def versionBuild = 7

android {
    signingConfigs {
        debug {
            storeFile file('**.jks')
            storePassword '****'
            keyAlias '***'
            keyPassword '****'
        }
        config {
            keyAlias '****'
            keyPassword '****'
            storeFile file('****.jks')
            storePassword '****'
        }
    }
    compileSdkVersion 31
    defaultConfig {
        applicationId "a.client"
        minSdkVersion 18
        targetSdkVersion 31
        multiDexEnabled true
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_7
            targetCompatibility JavaVersion.VERSION_1_7
        }
        versionCode versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild
        versionName "${versionMajor}.${versionMinor}.${versionPatch}.${versionBuild}"
        manifestPlaceholders = [
                'appAuthRedirectScheme': 'com.onmicrosoft.demo.exampleapp'
        ]
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
            signingConfig signingConfigs.config
        }
    }
    lintOptions {
        checkReleaseBuilds false
    }
    productFlavors {
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
    implementation files('libs/IntermecDataCollection.jar')
    implementation project(':HoneywellDataCollection')
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'org.apache.commons:commons-text:1.6'
    implementation 'de.proglove:connect-sdk:1.5.0'
    implementation 'net.openid:appauth:0.8.1'
    implementation 'com.squareup.okio:okio:2.10.0'

    // Include the MAM SDK
    implementation files('libs/Microsoft.Intune.MAM.SDK.aar')

    // Include MSAL
    implementation 'com.microsoft.identity.client:msal:2.0.8'
}
I have tried adding a seperate buildType with debuggable true and set debuggable to false i
Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
263 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,692 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lu Dai-MSFT 28,366 Reputation points
    2023-03-21T01:24:43.72+00:00

    @David Nilsson-Löfvall Thanks for posting in our Q&A.

    Honestly, I'm not familiar with SDK issue. It is more related to develop scope. With Q&A limitation resource, it is suggested to create a Premier or Unified support ticket to get more help. Here is the support link:

    https://learn.microsoft.com/en-us/mem/get-support#premier-and-unified-support-options

    Thanks for your understanding and hope everything goes well with you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.