-->

How to make keystore, sign, zipalign, apk android Through cmd

make-keystore-sign-zipalign-apk-android-Through-cmd


Joneszr xyz - How to create, Sign and Zipalign Apk Existing With Existing Key Store File Through Terminal/CMD quickly, well in accordance with the above title, may be among you guys there that often play in the Playstore to upload the APK and it is certainly no stranger to the term in up, right, check out the below may be useful

Update the application in the Play Store  is something that is routine tasks if you want to optimize the application and improve usability for users. When I try to publish updates to an existing application to play, I have to use the existing key storage file when I publish applications PLAY STORE, and of course the keystore applications you upload must comply with the keystore before, if you are updating your application.

When trying to accomplish this, I have been facing some problems, and have found a way to do the same thing via a terminal Command. You can use the same, here are the steps to do so.

I take an example where you have HTML or regular android application called IONIC you want to wake up, sign and zipalign to publish it to play store.

Build the apk using cordova command line
Open a command prompt and navigate to the application folder path.

Run the following command to generate a release build

  • Cordova building android-release
  • Sign an application with an existing keystore
  • Open a command prompt and enter the jarsigner path

To Create Your Own Keystore Via Terminal:

 keytool -genkey -v -keystore d:\joneszr.keystore -alias joneszr -keyalg RSA -keysize 2048 -validity 10000

D: is the location where the keystore will be stored Jarsigner will usually be found in the jdk's bin folder

Run the following command:

<JDK path> \ bin> jarsigner -verbose -keystore <path file keystore> <apk path with the name of file apk> <key store alias>

Below is the command that I used:

 jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore joneszr.keystore joneszr.apk joneszr 

You will be prompted to enter the password of the key storage file. Write down a password
APK will be signed but no APK recently to be generated, and will be overwritten

Zipalign file apk
Open a command prompt and go to the zip align path could be found in the android sdks-the build-tools   <version>or directly here
C:/Users/joneszr/AppDataLocalAndroidSdkbuild-tools27.0.1</version>


Run the following command
<android SDK path> \ android-sdks \ build-tools \ 25.0.3
The new file will be generated in the apk specified path
The output file is the last step of the apk be published to play store.

Below is the command that I used:

 zipalign -v 4 jones.apk joneszr.apk 

Jones. apk is not yet in the apk zip while joneszr. apk is the apk zip uploaded and ready in the PLAYSTORE

BOOT ONE-CLICK COMMAND:


 cd C:\Program Files\Java\jdk1.8.0_60\bin && jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore joneszr.keystore 1.apk joneszr && copy "C:\Program Files\Java\jdk1.8.0_60\bin\1.apk" "C:\Users\joneszr\AppData\Local\Android\Sdk\build-tools\27.0.1" && cd C:\Users\joneszr\AppData\Local\Android\Sdk\build-tools\27.0.1 && zipalign -v 4 1.apk release.apk 

NOTEPAD For THE IONIC FRAMEWORK:
npm install
ionic cordova platform add android
ionic serve
ionic cordova build android --prod --release --minifyjs --minifycss --optimizejs --aot
ionic cordova run android --device
ionic cordova resources android


BE SURE TO RUN CMD WITH ADMIN MODE
Related Keywords:
how to create keystore.jks file in android studio,
play encrypt private key tool,
generate apk android studio,
android studio build release apk,
android sign apk command line,
generate signed apk android studio,
android sign apk command line,
google play app signing,
tutorial google play app signing,
google play app signing disable,
google play app signing,
google play app signing tutorial,
android studio build release apk,
generate apk android studio,
generate unsigned apk android studio,
generate signed apk react native,
make sign apk through windows terminal,
make zipalign through terminal,
make keystore through terminal,


Thank you for visiting our how to create a Keystore, Sign And Zipalign Apk Existing With Existing Key Store File Through Terminal/CMD, I hope you can find what you need here. If you like this article please feel free to share it to your friends.

Click here to open the comment

No comments

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel

SUBSCRIBE OUR NEWSLETTER