microsoftconnect / intune-app-wrapping-tool-android

Use the Intune App Wrapping Tool for Android to enable Android apps to be managed by Microsoft Intune
28 stars 11 forks source link

AppWrapper and `androidx.fragment:fragment` 1.5.0+ Incompatibility #75

Closed RamprasathPnr closed 1 year ago

RamprasathPnr commented 1 year ago

**Bug

The Applicaton is crashing post- Intune wrapping**

Steps to reproduce the behavior:

  1. Install intune wrapped APK
  2. Click app from app launcher
  3. The application is crashing when launch itself

Expected behavior: The Application should launch without crashing

Screenshots and logs: intune error

Smartphones

Intune app wrapping tool

Intune app wrapping tool Steps

STEP 1 ------------------------------------------------------------------------->

Open windows powershell

run following--> Import-Module "C:\Program Files (x86)\Microsoft Intune Mobile Application Management\Android\App Wrapping Tool\IntuneAppWrappingTool.psm1"

STEP 2 ------------------------------------------------------------------------->

invoke-AppWrappingTool -InputPath C:\Users\Admin\Desktop\testApp.apk -OutputPath C:\Users\Admin\Desktop\testApp_wrapped-unsigned.apk -Verbose

STEP 3 ------------------------------------------------------------------------->

Go to build-tools path D:\Android\Sdk\build-tools\29.0.3 , open cmd --->

zipalign -v -p 4 "C:\Users\Admin\Desktop\testApp_wrapped-unsigned.apk" "C:\Users\Admin\Desktop\testApp_wrapped-unsigned-aligned.apk"

STEP 4 ------------------------------------------------------------------------->

apksigner sign --ks "C:\Users\Admin\Desktop\Keystore.jks" --ks-key-alias abc --out "C:\Users\Admin\Desktop\testApp_wrapped-signed.apk" "C:\Users\Admin\Desktop\testApp_wrapped-unsigned-aligned.apk"

mcsimons commented 1 year ago

Thanks for the report. If your app is using androidx.fragment:fragment 1.5.0+ there is an incompatibility between the MAM SDK currently used by AppWrapper and androidx.lifecycle:lifecycle-runtime 2.5.0+. (Updating your app to androidx.fragment:fragment 1.5.0+ will include a transitive dependency update from for androidx.lifecycle:lifecycle-* from 2.3.1 to 2.5.0+.) We are aware of this issue and this will be fixed in our next release of AppWrapper which is targeted for the next quarter. Internally tracked by 15017101

meghandaly commented 1 year ago

Latest release with API 32 and 33 support is live! Release 1.0.3935.1 🥳