0

I have done my app. It is working well in debugging mode. I am using cordova cli to build apk.

cordova build android

However i have worried about app signing process. Cordova documentation is not clear to me at all. In their documentation confusion arise to me. I have search many time, and find many people suggest many process. So i need actual process. I don't understand what is keystore and what is alise_name too.

So anyone please simply describe the process of app signing with latest cordova in step by step easy process. That will so much helpful to me. Please give an example clearly, by which i can understand properly.

I have found something

In this documentation, i like method 2. But i can't realize it properly. If anyone understand, please give an example about it. Thanks.

2 Answers2

2

I think this link will tell you all what you need about it how-to-create-signed-apk

Community
  • 1
  • 1
Samvel Petrosov
  • 7,580
  • 2
  • 22
  • 46
  • You provide a link more than 5 years old. Lot of change happened. I respect your answer. But i want something that cordova suggest me. jarsigner may be java sdk related. – Mahbubur Rahman Khan May 20 '16 at 05:12
  • 2
    how-to-create-signed-apk-file-using-cordova-command-line-interface http://stackoverflow.com/questions/26449512/how-to-create-signed-apk-file-using-cordova-command-line-interface – Samvel Petrosov May 20 '16 at 05:18
  • please read http://ilee.co.uk/Sign-Releases-with-Cordova-Android/ Here method 2 i preffered. But i can't understand it @S.Petrosov – Mahbubur Rahman Khan May 20 '16 at 05:41
  • By default Cordova uses Gradle to build apk , but according to your link you create an Ant properties file. So this properties would not work. I think, you need to set build tool of the Cordova to Ant if you want to do by this method. I think here you can find helpfull information about configuration https://cordova.apache.org/docs/en/latest/reference/cordova-cli/index.html#cordova-build-command – Samvel Petrosov May 20 '16 at 06:36
-1

I finally made it work:

  1. In cordova CLI...

    cordova build --release android

  2. make a keystore by:

    keytool -genkey -v -keystore "E:/Renascence Soft/Running Projrct/apps keystore/renascence.keystore" -alias renascence -keyalg RSA -keysize 2048 -validity 10000
    
  3. copy renascence.keystore to C:/program file/java/jdk 1.6/bin file:

    jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore renascence.keystore "E:/Renascence Soft/Running Projrct/Renascence App/platforms/android/build/outputs/apk/android-release-unsigned.apk" renascence
    
  4. copy android-release-unsigned.apk file in F:/Public/Android Sdk/sdk/build-tools/23.0.1

  5. Finally Run...

    zipalign -v 4 android-release-unsigned.apk Renascence.apk
    
piet.t
  • 11,718
  • 21
  • 43
  • 52