Differences

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

Link to this comparison view

kb:andorid [2019/05/31 08:27] (current)
yehuda created
Line 1: Line 1:
 +====== Android ======
 +
 +<code bash>
 +# xx
 +keytool -genkey -v -keystore <keystore>.keystore -alias <alias> -keyalg RSA -keysize 2048 -validity 20000
 +
 +# Convert to pkcs12
 +keytool -importkeystore -srckeystore <keystore>.keystore -destkeystore <keystore>-pkcs12.keystore -deststoretype pkcs12
 +
 +# Sign jar
 +cp <path to app-release-unsigned.apk> <path to app-release-pre-signed.apk>
 +jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <keystore>.keystore <path to app-release-pre-signed.apk> <alias>
 +
 +# Zip align // you can apt install or // use from ~/Android/Sdk/build-tools/x.x.x/zipalign // x.x.x = version
 +~/Android/Sdk/build-tools/x.x.x/zipalign -v 4 <path to app-release-pre-signed.apk> <path to app-release.apk>
 +</code>
  
kb/andorid.txt ยท Last modified: 2019/05/31 08:27 by yehuda
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0