User Tools

Site Tools


wiki:sign_android_apk_terminal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:sign_android_apk_terminal [2021/01/19 16:53] – created antisawiki:sign_android_apk_terminal [2021/02/07 14:01] (current) – add Zipalign the apk antisa
Line 7: Line 7:
  
   keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000   keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
 +
 +===== Migrate keystore to PKCS12 =====
 +Above command will recommend this so do it:
 +
 +  keytool -importkeystore -srckeystore my-release-key.keystore -destkeystore my-release-key.keystore -deststoretype pkcs12
      
 ===== Sign the apk ===== ===== Sign the apk =====
Line 12: Line 17:
  
   jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name   jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name
 +
 +===== Zipalign the apk =====
 +This is required for uploading to the Play Store. It aligns the data in apk to start on 4 byte boundaries for faster memory access and reduced memory consumption.
 +
 +Install tool
 +
 +  sudo apt install zipalign
 +
 +Align
 +
 +  zipalign -v 4 my_application.apk-signed.apk my_application.apk-signed-aligned.apk
  
 ====== Tested on ====== ====== Tested on ======
-  * +  * Xubuntu 20.04.1 
 +  * Buildozer 1.2.0 
 +  * kivy 2.0.0
  
-====== See also ====== 
  
 ====== References ====== ====== References ======
wiki/sign_android_apk_terminal.1611071630.txt.gz · Last modified: 2021/01/19 16:53 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki