When I verify the signature of my application:
jarsigner -verify -verbose -certs testapp.apk
it gives me the error:
jarsigner: java.lang.SecurityException: invalid SHA1 signature file digest for res/drawable-xhdpi/breadcrumb_grey_white.png
How to resolve this?
make sure to delete the META_INF folder in the apk before signing it. Also, if you are using JDK 7, then include the the option -sigalg MD5withRSA when signing with the jarsigner along with -digestalg SHA1 mentioned by Andrejs
Ripped from here.
Here is the solution:
jarsigner -keystore mykeystore -digestalg SHA1 jarfile alias
To verify:
jarsigner -verify -verbose -certs jarfile
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With