Android-release-unsigned.apk to bhagti.apk


::\Users\DPJ-DESKT0P\BhaktiSangrah>jarsigner -verbose -sigalg SHAlwithRSA -diges Calg SHA1 -keystore BhaktiSangrah.keystore android-release-unsigned.apk Sangrah
Enter Passphrase for keystore: provided

jar signed.
No -tsa or -tsacert is provided and this jar is not timestamped. Without a times tamp, users may not be able to validate this jar after the signer certificate’s expiration date (2044-09-06) or after any future revocation date.

c:\Users\DP3-DESKTOP\AppData\Local\Android\sdk\build-tools\25.9.1>zipalign -f anidroid-release-unsigned.apk BhaktiSangrah.apk
zip alignment utility
lopyright © 2009 The Android Open Source Project
Usage: zipalign [-f] [-p] [-v] [-z] zipalign -c [-v]
: alignment in bytes, e.g. ‘4’ provides 32-bit alignment
-c: check alignment only (does not modify file)
-f: overwrite existing
-p: page align stored shared object files
-v: verbose output
-z: recompress using Zopfli
c:\users\dpj-desktop\BhagtiSangrah dir *.apk
The same android-release-unsigned.apk file Found


Hi, @dpjindal.

cordova plugin rm cordova-plugin-console

cordova build <platform> or ionic build <platform> --release android

keytool -genkey -v -keystore my-keystore-file.keystore -alias EMAIL/PACKAGE_NAME/UNIQUE_ID -keyalg RSA -keysize 2048 -validity 10000

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore PATH_TO/my-keystore-file.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk EMAIL/PACKAGE_NAME/UNIQUE_ID

~/Library/Android/sdk/build-tools/23.0.0/zipalign -v 4 platforms/android/build/outputs/apk/android-release-unsigned.apk signed_releases/APP_NAME_$(date +%F).apk

Hope this will solve your issue.

Feel free to mark it as a solution and you can always like the answer by clicking heart icon.