Android apksigner.bat does not accept password

When you sign your Android with jarsigner.exe you have the option to add keystore password but migrating to use apksigner.bat you don’t have that option. You can, however, do the following by adding these

--ks-pass pass:{{ secrets.KEYPASS }} --key-pass pass:{{ secrets.KEYPASS }}

I’m using these in Github Actions, the reason why I’m using the brackets and secrets. The final command would look something like this

apksigner sign --ks Keystore/keyname.keystore --ks-key-alias %my_alias% release.apk --ks-pass --ks-pass pass:${{ secrets.KEYPASS }} --key-pass pass:${{ secrets.KEYPASS }}

Source: https://developer.android.com/studio/command-line/apksigner#options-sign