From a6713a5e3632523de67e2354799e4359efbc7773 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Wed, 28 Nov 2012 23:26:55 -0200 Subject: 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 --- android/android.make | 1 + 1 file changed, 1 insertion(+) (limited to 'android') diff --git a/android/android.make b/android/android.make index 9668902bec..7bbe199e6f 100644 --- a/android/android.make +++ b/android/android.make @@ -138,6 +138,7 @@ $(KEYSTORE): $(call PRINTS,KEYTOOL debug.keystore)keytool -genkey \ -alias androiddebugkey -keystore $@ \ -storepass android -keypass android -validity 365 \ + -sigalg MD5withRSA -keyalg RSA -keysize 1024 \ -dname "CN=Android Debug,O=Android,C=US" ifdef NODEPS -- cgit