Hi All, I m trying to access an app's signature/certificate from it's inside, so that when it runs, it can verify itself/do something with the certificate. I googled a bit, and found some code bellow:
Class c = getClass(); ProtectionDomain pd = c.getProtectionDomain(); CodeSource cs = pd.getCodeSource(); Certificate[] signingCertificates = cs.getCertificates(); String st = signingCertificates[0].toString(); but here c.getProtectionDomain() returns null. any other way to do it? Many thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

