I output my myApp version 12 project with: cordova build android --release
It was output as myApp/platforms/android/ant-build/myApp-release-unsigned.apk
I changed the name to the final apk name: myApp-release-unsigned.apk = myApp.apk
I copied the myApp.keystore file used on earlier myApps to the same folder.
Starting with that folder, I ran: jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore myApp.keystore myApp.apk myApp
I successfully verified it with: jarsigner -verify -verbose -certs myApp.apk
When I uploaded the myApp.apk to Google Play, it said that the file needed to be zipaligned.
The verbose output shows zipalign being done. So is there a bug when the apk is made via cordova build android --release?
Is there a step missing that I should be taking? Unfortunately, all the instructions for this on the Internet assume I'm not using Cordova.