Currently I'm getting the apk signed with the private keystore file but I want to sign that apk with different keystore file. How can I resign that apk..?
|
|
you should check below SO thread Can I resign an .apk with a different certificate or this one also may help you |
|||||
|
|
You can resign your apk with different keystore. Follow these steps: Signing for release: Step 1: Removing any previous signing
Step 2: Signing with release.keystore: Command:
Example:
Step 3: Aligning Command: Example:
Step 4: Cleaning up Command: Additional Commands might help:
keytool -genkey -alias -keystore
keytool -list -keystore Note: To sign our apks we have downgraded JDK from 1.7 to 1.6.0_43 update. Reason: As of JDK 7, the default signing algorithim has changed, requiring you to specify the signature and digest algorithims (-sigalg and -digestalg) when you sign an APK. Command:
|
||||
|
|
|
You can also use the open-source apk-resigner script, which is very easy to use. APK-resigner: https://code.google.com/p/apk-resigner/
Also if you want to sign the APK with your debug key, you may use.
|
||||
|
|