So I'm generating a key for my Android Play store release using a command as below. It asked for a password and confirm the password. I guess this is called the key password.
keytool -genkey -v -keystore ~/my_key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
Using this command to build a .aab bundle
flutter build appbundle --no-shrink --verbose
Then using command to get an APK
java -jar bundletool-all-0.15.0.jar build-apks --bundle=build/app/outputs/bundle/release/app.aab --output=build/app/outputs/bundle/release/app.apks \
--ks=~/my_key.jks \
--ks-pass=pass:<...> \
--ks-key-alias=key \
--key-pass=pass:<...>
This is where I got confused? I see both ks-pass
and key-pass
, not sure which is which.