Reputation: 5785
Android uses sign.jar file to sign some of its system applications (Eg: setting). Inorder to gain some extra permissions i need to sign my app using the same signature (platform) as that of setting. I did the signing and it works great.
Is it possible to sign my app using jarsigner instead sign.jar ? My project is using maven so switching from jarsigner to sign.jar for this app alone will break compatibly with other apps.
Upvotes: 2
Views: 4271
Reputation: 16180
On Java 1.7 you must user this:
jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore *pathtokey* -storepass *yourpass* -keypass *yourpass* *app.apk* *keyalias*
Upvotes: 9
Reputation: 185
You can use this command line
jarsigner -verbose -keystore yourKeyStore.keystore theFile.apk password
Upvotes: 1