How to Sign Apps

From wizarPOS

WizarPOS sign necessity

Basicly, In Android system, all the application should be signed before installed to terminal. The key used to sign apk is the private key of a RSA key pair in a keystore. So in the keystore, there is a key pair (private key/ public key) and the public key's certificate. Please refer to Google's resource for detail. In the signed apk, the certificate relevant to the signing private key is included in the package. WizarPOS terminals are based on Android System. There are two mode of terminal:

  • production/user mode terminal

In the production terminal, the public key of the signing private key of the apk will be checked, it should be issued by the app root public key. by default, there is default wizarpos root public key in the terminal. So you can request production public key to us for your keystore (which will be used to sign apk). The apply step is describe in the document wizarPOSDevCertificateApplyGuide_en.pdf.After get the response file from us, you should import the file to your keystore, then all the apk signed by this keystore can be installed to production terminal.

  • developing/engineer mode terminal

The developing terminal do not check public key. It's for the developer to debug their app, so it has USB connection and can use adb debug.

Please notice, because of this difference, if your developing terminal switch to production terminal, all the application you installed in terminal, which is also not signed by above keystore, will be removed automatically. Of cause, the default wizarpos root public key can be updated to terminal owner's root public key in future. So the terminal owner can control there apk certificate by themselves.

How to sign app

sign in an application project

Please refer to Google Sign APP

sign an apk