Bash script - Automatically enter user input (password of keystore)
6
votes
2
answers
57669
views
I know this has been asked before but almost only workarounds have been provided. None that solved my problem just yet.
I'm trying to create my own
.sh
file which will generate an apk
. After using jarsigner it asks for a password of my keystore. Now the security on this part doesn't play a role a.t.m. so I was just wondering, how can I (either remove the password of my .keystore
file or enter the password as plain text) achieve this?
The full command:
jarsigner -sigalg SHA1withRSA -digestalg SHA1 -verbose -keystore keyForApk.keystore
apk/android-release-unsigned.apk alias_name
Where it then prompts me the following:
Enter Passphrase for keystore:
Now via which command can I enter this dynamically after the jarsigner command?
Asked by Ivafo
(161 rep)
Oct 17, 2016, 12:35 PM
Last activity: Feb 25, 2022, 11:23 AM
Last activity: Feb 25, 2022, 11:23 AM