Sign a compiled apk for apktool

Create a key:

keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias joel

Sign:

apksigner sign --ks my-release-key.jks --out newsigned.apk newsc.apk

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.