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 can also use the open-source apk-resigner script, which is very easy to use.
APK-resigner: https://github.com/onbiron/apk-resigner
./signapk.sh calculator.apk ~/.android/debug.keystore android androiddebugkey
Also if you want to sign the APK with your debug key, you may use.
./signapk.sh calculator.apk