PseudoApkSigner icon indicating copy to clipboard operation
PseudoApkSigner copied to clipboard

No exception, but apk can not be installed.

Open ommiao opened this issue 4 years ago • 6 comments

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]

ommiao avatar Dec 08 '19 14:12 ommiao

Are you sure your private key file matches your template file?

Aefyr avatar Dec 09 '19 16:12 Aefyr

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

ommiao avatar Dec 10 '19 06:12 ommiao

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?

Aefyr avatar Dec 10 '19 16:12 Aefyr

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 avatar Dec 10 '19 16:12 Aefyr

@Aefyr @ommiao Can you please try this to get the Signature Block. GenSBT.java.txt

HemanthJabalpuri avatar Sep 19 '20 05:09 HemanthJabalpuri

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.

sunilpaulmathew avatar Mar 04 '21 10:03 sunilpaulmathew