Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Add -sigalg and -digestalg options for jarsigner to be able to sign an apk in jdk 7 #187

Merged
merged 1 commit into from Aug 8, 2013

Conversation

shinichy
Copy link

@shinichy shinichy commented Aug 7, 2013

The default digest algorithm of jarsigner for Java 1.7 is SHA256withRSA which isn't supported in Android, while for Java 1.6 it's MD5withRSA
So "-sigalg SHA1withRSA -digestalg SHA1" options are needed to sign correctly in jdk 7.

See this discussion for more details.

http://stackoverflow.com/questions/8739564/what-is-the-difference-between-the-java-1-6-and-1-7-jarsigner

jberkel added a commit that referenced this pull request Aug 8, 2013
Add -sigalg and -digestalg options for jarsigner to be able to sign an apk in jdk 7
@jberkel jberkel merged commit 7e6f15e into jberkel:master Aug 8, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants