I worked for help you to investigate the problem. In the below link (drop box) there are keystore and all apks.
-
I’ve created a new certificate (for_corona.keystore) with this command:
keytool -genkey -v -keystore for\_corona.keystore -alias for\_corona -keyalg RSA -keysize 2048 -validity 80000
Key Store Password is: adka_sd8jda
Key Password for <for_corona>: skd8sksad_
-
Build game (Horse Animation from Samples) with Corona. The app is NOT installed on 4.1.1 with this error:
java.lang.SecurityException: META-INF/TRINACRI.SF has invalid digest for assets/projects/steve\_punk/audio/project/pawn/12.mp3 in /data/app/vmdl-635292339.tmp
I’ve put this file into corona sample project because is one of the file that launch exception: but there are others files like many xml or android library files that i can’t delete or change (holo layout, holo png, …)
-
Build game manualy with this comad from debug apk:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore for\_corona.keystore debug.apk for\_corona
Well! In this case I can istall apk on 4.1.1 device!
Java 6 has different signature algorithm from Java 7:
in Java 6 is SHA1withRSA while in Java 7 is SHA256withRSA. So if certifcate is created with Java 6, signing with Java 7 (or with different algorithm) maybe create this problem over same Android version (4.1.1 and 2.3.3 tested).
Thank you
Examples files link:
https://www.dropbox.com/sh/e5p7qk09e85se30/AACvAUwjvlhL0lM8TpGQ4Yj0a?dl=0