apksigner not accepting password

use it this way

./apksigner sign --ks test.jks --ks-key-alias test --ks-pass pass:testtest --key-pass pass:testtest Test_Aligned.apk

I cannot vote/comment yet, but +1 for max's fix:

./apksigner sign --ks test.jks --ks-key-alias test --ks-pass pass:testtest --key-pass pass:testtest Test_Aligned.apk

Prefixing my passwords with "pass:" worked for me

--ks-pass pass:MyPassword
--key-pass pass:MyPassword

Here's what worked for me, I changed this:

--ks-pass "MyPassword"

To this:

--ks-pass pass:"MyPassword"

A weird API to work with... but it worked!

Tags:

Android

Sign

Apk