Skip to main content

Steps To Build KeyStore For Release Signed APK

Signing in Release Mode


In release mode, you sign your app with your own certificate:

  1. Create a keystore. A keystore is a binary file that contains a set of private keys. You must keep your keystore in a safe and secure place.
  2. Create a private key. A private key represents the entity to be identified with the app, such as a person or a company.
  3. Add the signing configuration to the build file for the app module:
  4. ...
  5. android {
  6.    ...
  7.    defaultConfig { ... }
  8.    signingConfigs {
  9.        release {
  10.            storeFile file("myreleasekey.keystore")
  11.            storePassword "password"
  12.            keyAlias "MyReleaseKey"
  13.            keyPassword "password"
  14.        }
  15.    }
  16.    buildTypes {
  17.        release {
  18.            ...
  19.            signingConfig signingConfigs.release
  20.        }
  21.    }
  22. }


Example : ant.properties
# Turn on or off logging.
config.logging=true
#
# Set the keystore properties for signing the application.
#
key.store=santosh.keystore
key.alias=santoshshinde
key.store.password=santosh
key.alias.password=santosh


C:\Users\Admin>keytool -genkey -v -keystore santosh.keystore -alias Myappname  -keyalg RSA -keysize 2048 -validity 10000

Enter keystore password: santosh
Re-enter new password: santosh
What is your first and last name?
 [Unknown]:   Santosh
What is the name of your organizational unit?
 [Unknown]:   Student
What is the name of your organization?
 [Unknown]:   Student
What is the name of your City or Locality?
 [Unknown]:   Pune
What is the name of your State or Province?
 [Unknown]:     Maharashtra
What is the two-letter country code for this unit?
 [Unknown]:   91
Is CN=Santosh, OU=Student, O=Student, L=Pune, ST=       
Maharashtra, C=91 correct?
 [no]:   yes

Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA)
with a validity of 10,000 days
      
for: CN=Santosh, OU=Student, O=Student, L=Pune, ST=   
 Maharashtra, C=91

Enter key password for <Myappname>
       (RETURN if same as keystore password):

[Storing my-release-key.keystore]

Comments

Popular posts from this blog

What exactly means MVW design pattern ?

What is a MVW framework? The abbreviation stands for 'Model - View - Whatever'.  Well there are many different JavaScript frameworks available , all invented for the same purpose. They all try to separate the presentation logic from the business logic where JavaScript holds the model and logic, and html the presentation layer. Quick overview : You can change the model without changing the view and vice-versa Unit testing is easy These are the core benefits of using such a framework. By separating presentation and business logic changes to the code are easier to implement and take less time. Another benefit is that code can be reused from a controller thus saving more time. Angularjs makes the code also shorter in comparison to other frameworks, which improves code stability. Less code means minor potential for bugs. For several years +AngularJS was closer to MVC (or rather one of its client-side variants), but over time and thanks to many refactorings...

File Upload & Download With ng-cordova File Transfer Plugin In Ionic Framework

Using the AngularJS extension set , ngCordova , with Ionic Framework and the Apache Cordova File Transfer plugin, you can easily upload files to a remote server and download files from a remote server. 1.Create the project ionic start Test blank cd Test ionic platform add android 2.Add Plugin org.apache.cordova.file-transfer https://github.com/apache/cordova-plugin-file-transfer This plugin allows you to upload and download files. This plugin defines global FileTransfer, FileUploadOptions Constructors. Although in the global scope, they are not available until after the deviceready event . Installation cordova plugin add cordova plugin add cordova-plugin-file-transfer     2.    org.apache.cordova.file             https://github.com/apache/cordova-plugin-file             This plugin implements a Fi...

Steps To Create Cordova Plugin

Introduction A plugin is a package of injected code that allows the Cordova webview within which the app renders to communicate with the native platform on which it runs. Plugins comprise a single JavaScript interface along with corresponding native code libraries for each supported platform. Due to following reason, we will go for plugin development To get the native capabilities of the device in the cordova based app Build the common functionality across the number of Cordova application(Reusability) Prerequisites For the creation of plugin you need to install plugman . npm install -g plugman Plugin Structure Decide Plugin ID & Name The plugin ID should be unique Plugin name should follow the convention “cordova.plugin.[your.plugin.name]” Create the structure Use the following command to create the plugin with plugin ID “cordova.plugin.test” and name “Test”. plugman create --name Test --...