javiersantos / PiracyChecker

An Android library that prevents your app from being pirated / cracked using Google Play Licensing (LVL), APK signature protection and more. API 14+ required.
Apache License 2.0
1.55k stars 174 forks source link

java.security.spec.InvalidKeySpecException #69

Closed AhmedX6 closed 5 years ago

AhmedX6 commented 5 years ago

Hello,

When passing a random key for google licensing I have : java.security.spec.InvalidKeySpecException: com.android.org.conscrypt.OpenSSLX509CertificateFactory$ParsingException: Error parsing public key. Please could you fix that bug ?

Thanks

jahirfiquitiva commented 5 years ago

you must use the key Google provides in the services section of the developer console

AhmedX6 commented 5 years ago

Yes of course,

But it will be better to catch the error, because for now it crahs.

Thanks

jahirfiquitiva commented 5 years ago

No, it cannot just be caught because: a) the key is wrong and or invalid b) you need to know there's an issue with your key c) if we simply ignore it, you would still blame us because license check won't work at all