Jump to content
Welcome to our new Citrix community!
  • 0

Wrapping Android app to MDX


Question

Hello everyone.

I received an apk to wapp and upload to XenMobile.

 

I did the MDX toolkit process without any error, and MDX is installed normally in the android phone.

 

When the user opens the MDX app, it crashs returning no errors in the devices' screen. I've captured the adb logs, and I checked these logs:

04-30 11:32:03.256 29731 29731 I dex2oat : <FIVE>: S T A R T I N G . . .
04-30 11:32:03.256 29731 29731 I ApkToolkit: Can't extract Android Manifest: Entry not found
04-30 11:32:03.256 29731 29731 I ApkToolkit: FiveSign starts: zip_fd = 42, fd = 48.
04-30 11:32:03.256 29731 29731 I ApkToolkit: FiveSignOat: non-Apk (Jar) case
04-30 11:32:03.257 29731 29731 E ApkToolkit: FIVE can't sign a non-APK file (result=3, errno 11: Try again).
04-30 11:32:03.257 29731 29731 I ApkToolkit: FiveSign finished: 3.
04-30 11:32:03.257 29731 29731 E dex2oat : FIVE can't sign a file: source_fd=42 oat_fd_=48, error: Try again
04-30 11:32:03.257 29731 29731 I dex2oat : FIVE current integrity: 0x0
04-30 11:32:03.257 29731 29731 I ApkToolkit: FiveSign starts: zip_fd = 42, fd = 47.
04-30 11:32:03.257 29731 29731 I ApkToolkit: FiveSignOat: non-Apk (Jar) case
04-30 11:32:03.257 29731 29731 E ApkToolkit: FIVE can't sign a non-APK file (result=3, errno 11: Try again).
04-30 11:32:03.257 29731 29731 I ApkToolkit: FiveSign finished: 3.
04-30 11:32:03.257 29731 29731 E dex2oat : FIVE can't sign a file: source_fd=42 output_vdex_fd_=47, error: Try again
04-30 11:32:03.257 29731 29731 I dex2oat : FIVE current integrity: 0x0
04-30 11:32:03.258 29731 29731 I dex2oat : <FIVE>: END
 

 

I've checked the original APK file signature using the command jarsigner.exe -verify -verbose -certs "APKFILE.apk" and this command returned the following output:

 

- Signed by "CN="DEVELOPER COMPANY NAME, OU=ORGANIZATION, O=ORGANIZATION, L=CITY, S=STATE, C=REGION""
    Digest algorithm: SHA-256
    Signature algorithm: SHA256withRSA, 2048-bit key

 

 

Can I use MDXToolkit to convert signed apk apps into MDX apps?

 

Can I proceed in this case?

 

Thank you all!

Link to comment

1 answer to this question

Recommended Posts

  • 0

Hi Alessandro,

 

It is best to obtain an unsigned APK directly from the vendor, if possible.

From https://docs.citrix.com/en-us/mdx-toolkit/wrapping-android.html#enterprise-android-app-wrapping-with-the-command-line

"You can use enterprise app wrapping to wrap custom (in-house) apps and some third-party apps. You should acquire third-party apps directly from the app vendor."

 

and https://docs.citrix.com/en-us/mdx-toolkit/wrapping-ios.html#enterprise-ios-app-wrapping-using-the-command-line

"Be sure to obtain third-party apps directly from the app vendor. iOS apps downloaded from the Apple store are encrypted and cannot be wrapped."

 

If some more manual troubleshooting is required, I would suggest the APKTool method described at https://docs.citrix.com/en-us/mdx-toolkit/developer-guide-overview/best-practices-android-apps.html#debugging-tips. When going through this process step by step, you should be able to find the true root cause of this problem.

 

Best regards,

David

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...