Intune Distribution of an Android APK

51 Views Asked by At

We have an issue with the distribution of an APK with Microsoft Intune (Android).

The original APK works fine.

For Microsoft Intune Distribution we need to wrap it with a Microsoft Powershell script:

Microsoft script wrapped the original APK in a new one; next we need to zipalign and resign it with apk signer (as the script's output also say).

The wrapped APK installs correctly on enrolled devices but fails to open (blank screen). You can't even see the initial page.

Analyzing the LogCat we noticed that after initial checks there are 3 errors repeating many times till a fatal exception (maximum call stack exceeded).

The three errors (MAMTrace) are:

  1. Already tracing scenario ONLINE_FIRST_HOOKED_ACTIVITY_STARTUP
  2. Tried to start tracing for sub-operation onCreate common for scenario ONLINE_FIRST_HOOKED_ACTIVITY_STARTUP that is already being traced.
  3. Tried to start tracing for sub-operation onMAMCreate for scenario ONLINE_FIRST_HOOKED_ACTIVITY_STARTUP that is already being traced.

After many loops...

  • FATAL EXCEPTION: main
  • Process: com.xxx, PID: 21139
  • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx/sap.mdkclient.MDKAndroidActivity}: com.tns.NativeScriptException: Calling js method onCreate failed
  • RangeError: Maximum call stack size exceeded

Any idea experts?

The wrapped APK installs correctly on enrolled devices but fails to open (blank screen). You can't even see the initial page. We're expecting the application to start.

0

There are 0 best solutions below