# xx keytool -genkey -v -keystore <keystore>.keystore -alias <alias> -keyalg RSA -keysize 2048 -validity 20000 # Convert to pkcs12 keytool -importkeystore -srckeystore <keystore>.keystore -destkeystore <keystore>-pkcs12.keystore -deststoretype pkcs12 # Sign jar cp <path to app-release-unsigned.apk> <path to app-release-pre-signed.apk> jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <keystore>.keystore <path to app-release-pre-signed.apk> <alias> # Zip align // you can apt install or // use from ~/Android/Sdk/build-tools/x.x.x/zipalign // x.x.x = version ~/Android/Sdk/build-tools/x.x.x/zipalign -v 4 <path to app-release-pre-signed.apk> <path to app-release.apk>