Android install error...

Previous topic - Next topic

MrPlow

My app is telling users its not signed correctly...any idea what I need to do to make sure its signed?

The play store accepts it but users get an error trying to install - but my nexus device installs it just fine...


https://play.google.com/store/apps/details?id=com.sigmasolutions.knightclock&hl=en



Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

I use the following to sign and create a release version... Is there something wrong...
Also, I haven't update java in a while since forum members seem to sticking with earlier versions to avoid issues...

Code (glbasic) Select

copy glbasic-release-unsigned.apk glbasic-debug.zip
pause
"C:\Program Files\7-Zip\7z.exe" d glbasic-debug.zip META-INF\manifest.mf META-INF\CERT.SF META-INF\CERT.RSA
pause
copy glbasic-debug.zip glbasic-debug.apk
"C:\Program Files\Java\jdk1.7.0_04\bin\keytool.exe" -genkey -alias kwapps.keystore -sigalg MD5withRSA -keyalg RSA -validity 20000 -keystore kwapps.keystore

"C:\Program Files\Java\jdk1.7.0_04\bin\jarsigner.exe" -verbose -keystore kwapps.keystore -signedjar glbasic-signed.apk glbasic-debug.apk kwapps.keystore

"C:\Program Files\Android\android-sdk\tools\zipalign.exe " -v 4 glbasic-signed.apk glbasic-release.apk


Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Can anyone offer any help here....   :noggin:
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

I'll see what happens on mine...

MrPlow

Really appreciate it...Thanks!
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrTAToad

My mobile phone states that it hasn't be signed properly, unfortunately... The same with my tablet.

If you are using the newer version of Java, you will have to use the new signing system I posted a while ago, as Sun changed a few things...

If you aren't then it sounds like bits of the meta files aren't being replaced

SnooPI

try without MD5withRSA algorithm

MrTAToad

It is needed with the latest version of Java unfortunately

SnooPI

#8
 :(

try -keysize 2048



MrTAToad

The latest key signing system is this :

Code (glbasic) Select
erase "%1.zip" /Q
erase "%1_signed.apk" /Q
erase "%1_unsigned.apk" /Q
erase "%1_release.apk" /Q
copy "%1.apk" "%1.zip"
"C:\Program Files\7-Zip\7z.exe" d "%1.zip" META-INF\manifest.mf META-INF\CERT.SF META-INF\CERT.RSA
copy "%1.zip" "%1_unsigned.apk"
keytool -genkey -alias keys/mykey.keystore -validity 20000 -sigalg MD5withRSA -keyalg RSA -keysize 1024 -keystore keys/mykey.keystore
jarsigner -verbose -keystore keys/mykey.keystore -sigalg MD5withRSA -digestalg SHA1 -signedjar "%1_signed.apk" "%1_unsigned.apk" keys/mykey.keystore
zipalign -v 4 "%1_signed.apk" "%1_release.apk"
move "%1_release.apk" "Release/%1_release.apk"
@echo "Finished"
pause

spacefractal

im still uses that one from slb_code_sign.bat, which have works fine here. The main issue in the sign file here, is the 7z.exe, which is not standard to have that....
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

I use 7z has I couldn't get WinRar to delete files from the compressed package...

SnooPI

Just a little question..

Do we need to use the latest version of the JDK?   O_O

MrTAToad

I dont think so - V1.6 should be fine

SnooPI