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

App Upload Issue "Signature Invalid or does not exists" #63

Closed vishal-shukla-viitorcloud closed 2 years ago

vishal-shukla-viitorcloud commented 2 years ago

Issue:

Our Client using Managed Google play console where he upload signed APK which is wrapped with intune.

So when uploading app first time, they are getting issue "Signature invalid or does not exist"

Steps to generate & wrap app:

  1. Generate Signed apk from android studio

  2. Generate unsigned apk from intune wrap

    • Invoke-AppWrappingTool -InputPath ".apk" -OutputPath "outfolder*.apk" -KeyStorePath ".jks" -KeyAlias **
  3. Sign APK

    • jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -storepass * -keystore \unsigned.apk alias
  4. Verify APK

    • zipalign -v 4 \unsigned.apk \app-intune.apk

These 4 steps worked successfully.

Query/Note: This app is being uploaded first time so is there any problem with signing key?

their account managing many apps. so it may happen that they have their own signgkey map with account and used for all apps being uploaded?

OR it will take current keystore details from signed apk?

Help me asap. Thanks.

image

vishal-shukla-viitorcloud commented 2 years ago

Anyone can help?

rygo-msft commented 2 years ago

@vishal-shukla-viitorcloud if you do not wish to sign you apk, you should not provide any of the keystore parameters to the wrapping tool. Signing using the App Wrapping Tool is deprecated and you should leverage the Android SDK signing tools instead.

https://developer.android.com/studio/publish/app-signing https://developer.android.com/studio/command-line/apksigner

We are unable to provide support here for tools other than the App Wrapping Tool itself. If you would like assistance with publishing, you can contact MEM support https://docs.microsoft.com/en-us/mem/get-support