>java -jar uber-apk-signer-1.3.0.jar -a api.apk --ks ./emacs.keystore -o api-signed.apk
must provide alias if keystore is given for sign config 0
>"C:\Program Files\Java\jre1.8.0_361\bin\keytool.exe" -list -v -keystore emacs.keystore
keytool error: java.io.IOException: toDerInputStream rejects tag type 60
java.io.IOException: toDerInputStream rejects tag type 60
at sun.security.util.DerValue.toDerInputStream(Unknown Source)
at sun.security.pkcs12.PKCS12KeyStore.isPasswordless(Unknown Source)
at sun.security.tools.keytool.Main.doCommands(Unknown Source)
at sun.security.tools.keytool.Main.run(Unknown Source)
at sun.security.tools.keytool.Main.main(Unknown Source)
Please enter the key password for config [0] alias 'Emacs keystore' and keystore './emacs.keystore':
[0] f2f5a9df E:\New folder\emacs.keystore (RELEASE_CUSTOM)
01. api.apk
- already signed SKIP
[Mon May 27 16:34:38 CST 2024][v1.3.0]
Successfully processed 0 APKs and 1 errors in 0.35 seconds.
这里的提示是already signed SKIP,我得先去掉termux-api.apk的签名,才能重新签对吗?
E:\New folder
λ java -jar uber-apk-signer-1.3.0.jar -a api.apk --ks ./emacs.keystore --ksAlias "Emacs keystore" -o api-signed.apk
source:
E:\New folder
binary-lib/windows-33_0_2/libwinpthread-1.dll
C:\Users\ADMINI~1\AppData\Local\Temp\uapksigner-1008921029735434035
zipalign location: BUILT_IN
C:\Users\ADMINI~1\AppData\Local\Temp\uapksigner-1008921029735434035\win-zipalign_33_0_2.exe2132147367002101563.tmp
keystore:
Please enter the keystore password for config [0] './emacs.keystore':
Please enter the key password for config [0] alias 'Emacs keystore' and keystore './emacs.keystore':
[0] f2f5a9df E:\New folder\emacs.keystore (RELEASE_CUSTOM)
01. api.apk
SIGN
file: E:\New folder\api.apk (2.6 MiB)
checksum: 60461669a5b414feaf4859bb034bd7a0f4c68e2027c640963023340c3369219 (sha256)
- zipalign success
Failed to load signer "signer #1"
java.io.IOException: Invalid keystore format
at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
at sun.security.provider.KeyStoreDelegator.engineLoad(Unknown Source)
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at com.android.apksigner.SignerParams.loadKeyStoreFromFile(SignerParams.java:362)
at com.android.apksigner.SignerParams.loadPrivateKeyAndCertsFromKeyStore(SignerParams.java:248)
at com.android.apksigner.SignerParams.loadPrivateKeyAndCerts(SignerParams.java:181)
at com.android.apksigner.ApkSignerTool.getSignerConfig(ApkSignerTool.java:419)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:336)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:92)
at at.favre.tools.apksigner.SignTool.sign(SignTool.java:314)
at at.favre.tools.apksigner.SignTool.execute(SignTool.java:150)
at at.favre.tools.apksigner.SignTool.mainExecute(SignTool.java:45)
at at.favre.tools.apksigner.SignTool.main(SignTool.java:33)