Fix .apk signs when using OpenJDK7 (Android builds)

This fix the "jarsigner error: java.security.SignatureException: private
key algorithm is not compatible with signature algorithm" when compiling
Android builds using OpenJDK7. This patch explicit how keytools make a
debug key so it is compatible with the changes in jarsigner made on
OpenJDK7. It is still working with OpenJDK6.

For those who already have a debug key, it will be necessary to remove
the previous key located on ~/.android.

Change-Id: Ifa4d37d0bda76e8937dc18572a7e8586c1a18a63
Reviewed-on: http://gerrit.rockbox.org/359
Reviewed-by: Frank Gevaerts <frank@gevaerts.be>
This commit is contained in:
Thiago Kenji Okada 2012-11-28 23:26:55 -02:00 committed by Frank Gevaerts
parent d66c16749a
commit a6713a5e36

View file

@ -138,6 +138,7 @@ $(KEYSTORE):
$(call PRINTS,KEYTOOL debug.keystore)keytool -genkey \ $(call PRINTS,KEYTOOL debug.keystore)keytool -genkey \
-alias androiddebugkey -keystore $@ \ -alias androiddebugkey -keystore $@ \
-storepass android -keypass android -validity 365 \ -storepass android -keypass android -validity 365 \
-sigalg MD5withRSA -keyalg RSA -keysize 1024 \
-dname "CN=Android Debug,O=Android,C=US" -dname "CN=Android Debug,O=Android,C=US"
ifdef NODEPS ifdef NODEPS