PseudoApkSigner
PseudoApkSigner copied to clipboard
No exception, but apk can not be installed.
I removed last 256 bytes, because my RSA key size is 2048. There is no any exception when I signed for apk file but it can not be installed. Failed info:
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Failed to collect certificates from /data/app/vmdl697591214.tmp/base.apk: /data/app/vmdl697591214.tmp/base.apk failed verification of META-INF/CERT.SF: Failed to verify signature: no verified SignerInfos]
Are you sure your private key file matches your template file?
I have only one key store, with only one key alias. Maybe I generated my private key with wrong way? How to get proper private key? Thanks for any help. @Aefyr
Actually I don't know since I've only ever used this lib with testkey, but according to Google you can use KeyStore Explorer. By the way, how did you make your template file? Did you take .RSA from a signed APK or did you just use a RSA public key?
Also you could try signing 2 different APKs with your key using apksigner and diffing their .RSA files to see if maybe there're more/less than 256 bytes in .SF file signature (maybe that depends on the hashing algorithm, I'm not too sure)
@Aefyr @ommiao Can you please try this to get the Signature Block. GenSBT.java.txt
Nice work @Aefyr Managed to sign and install APK's, both using the test key/template from your asset folder, as well as with a private key/RSA template. Took some time to figure out making a working template file. Probably, good documentation will be great.