kellinwood / zip-signer

Official source of the ZipSigner app for Android
35 stars 10 forks source link

SPLITS APK signing failed, Install_parse_failed_unexpected_exception #2

Open Jasi2169 opened 4 years ago

Jasi2169 commented 4 years ago

Hi, try CCleaner from play store, it has splits apk, if you try to sign just base.apk it wont get installed after signing stating above error.

More info example errors are like this: Failed reading classes.dex in android.util.jar.StrictJarFile@74838: META-INF/MANIFEST.MF has invalid digest for classes.dex in classes.dex

Jasi2169 commented 4 years ago

@kellinwood hi why dont you release a full binary which we can import in gradle and provide just input or output stream or keystore if user wants?

kellinwood commented 4 years ago

I don't have enough time to maintain ZipSigner , but recently imported the code here and got the build working again. See the build.gradle file in the zipsigner-cmdline module... it can do what you want, or at least provides a good starting point for being able to sign via a gradle build.

Jasi2169 commented 4 years ago

I don't have enough time to maintain ZipSigner , but recently imported the code here and got the build working again. See the build.gradle file in the zipsigner-cmdline module... it can do what you want, or at least provides a good starting point for being able to sign via a gradle build.

Your v3.4 still works, but i sign only single.apk, if apk is created with app bundle with splits apk for example ccleaner, glasswire which has multiple apks , you can backup just main base.apk of split, it says signing successful but on installing it shows above digest failure error.

I used ur source codes same error, seems like digest updating code has issues in zipsinger lib

Anyway this is ccleaner splits backup.apks

https://www.mediafire.com/file/r9wakoyvvlv37dw/CCleaner.ver.4.22.0.build.800006789.apks/file

Apks is just zip but include all splits needs to run app

Base.apk is main apk, or you can support splits apk signing?

Jasi2169 commented 4 years ago

ISSUE Fixed; before signing i just deleted the MANIFEST.MF file now issue gor fixed, dont know why it is creating issue only on split apks not on singleuniversal.apk