diff options
author | Thiago Kenji Okada <thiago.mast3r@gmail.com> | 2012-11-28 23:26:55 -0200 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2012-11-30 11:39:35 +0100 |
commit | a6713a5e3632523de67e2354799e4359efbc7773 (patch) | |
tree | 5ca40929a7cfe2d31677b8f8a9d1c3fca672696d | |
parent | d66c16749a5c07aadcd0eb97b9340d7fa5ea26b0 (diff) |
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>
-rw-r--r-- | android/android.make | 1 |
1 files changed, 1 insertions, 0 deletions
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 |