The following example command demonstrates how to sign an apk app file with the a platform signature from the android_build directory:

java -jar ./out/soong/host/linux-x86/framework/signapk.jar -w platform.x509.pem platform.pk8 APPLICATION.apk myApplication.apk