microsoftconnect/intune-app-wrapping-tool-android

Latest APK wrap gives an invalid apk file.

Closed this issue · 6 comments

Questions to Ask Before Submission

  1. Does you app launch successfully without wrapping? YES
  2. Have you reviewed the prerequisites for App Wrapping? YES
  3. Does your issue have a solution in the Troubleshooting Guide? NO
  4. Have you checked the Microsoft Intune App SDK for Android repository for similar issues? YES
  5. Are you using the latest version of the App Wrapper? YES

Describe the bug:
A clear and concise description of what the bug is. intunes says the app is successfully wrapped, but it is not. I have an apk I cannot use.

The package name for this app is 'app_name'. If you need to specify the package name during deployment, please use this one.
The application was successfully wrapped.
Please zipalign and sign the application before use.

To Reproduce
Steps to reproduce the behavior:

  1. simply install the latest tooling from git.
  2. import the module
  3. invoke-AppWrappingTool -InputPath .\in.apk -OutputPath .\out.apk -Verbose | Tee-Object -FilePath .\wrap.log

Expected behavior:
A clear and concise description of what you expected to happen.

app to launch and work as per pre-wrapping

Screenshots and logs:

  • If applicable, add screenshots to help explain your problem.
  • If your app is crashing post-wrapping, do you have app logs for the crash itself? Attached below
  • If your app is crashing pre-wrapping, do you have app logs for the wrapper errors? app works fine pre-wrapping... (attached pre-wapping.jpg)

Smartphone (please complete the following information):

  • Device: [e.g. Google Pixel 6] Samsung Note 22 Ultra
  • OS Version: [e.g. Android 13] Android 14

Intune app wrapping tool (please complete the following information):

  • What version of the wrapper are you using? Are you using the latest version? Latest
  • What platform is your app based in (Java, Xamarin based, Cordova, etc)? Cordova
  • For pre-wrapping errors, does the app build without being wrapped? NO
  • For post-wrapping errors, does the app launch without being wrapped? NO
  • Who is the customer? Me
  • Do you see a trend with it only being reproduced on a specific device? No, Tried serveral android devices Note 22.

Additional context:
wrap.log

Add any other context about the problem here.

Log says the app is successfully wrapped, but the app will not install on devices... Error attached.
log

Missing attachments

did you found any fix @E-N-G-XOR

@E-N-G-XOR please see: https://github.com/msintuneappsdk/intune-app-wrapping-tool-android/wiki/Troubleshooting-the-App-Wrapper#issues-during-app-installation

If this does not resolve your issue, please share logcat logs capturing the failed installation or details about what issues your see from your wrapped apk.

To clarify, any modification to app file will break app signing (it wouldn't be a very good signature if it didn't detect modification). As such, all apk files created by the wrapper will be unsigned and must be zip-aligned and signed before use.

You do not need to sign apks with multiple keys, but signing must be the last modification to an app for the signature to be valid.