B4A Library Library Check Signature

Discussion in 'Additional libraries, classes and official updates' started by MarcoRome, Sep 6, 2015.

  1. MarcoRome

    MarcoRome Expert Licensed User

    Hi all
    This is simple library to check signature APK.

    CheckSignature
    Author:
    Devil-App
    Version: 1
    • CheckSignature
      Methods:
      • CertificateGetSerialNumber As String
        Get CartificatGetSerialNumber example Serial Number: 15434793569865480918
        Example:<code>
        Dim check As CheckSignature
        Log("Certificate Vendor: " & check.CertificateGetSerialNumber)</code>
      • CertificateIssuer As String
        Get CartificatIssuer example OID.1.2.840.113549.1.9.1=#1616616E67726F69642E6F734073616D73756E672E636F6D,
        CN=Samsung Cert, OU=DMC, O=Samsung Corporation, L=Suwon City, ST=South Korea, C=KR
        Example:<code>
        Dim check As CheckSignature
        Log("Certificate Vendor: " & check.CertificateIssuer)</code>
      • CertificateName As String
        Get CartificatName example ELM Agent
        Example:<code>
        Dim check As CheckSignature
        Log("Certificate Name: " & check.CertificateName)</code>
      • CertificateSubject As String
        Get CartificatSubject example OID.1.2.840.113549.1.9.1=#1616686E64726F69642E6F734073616D73756E672E636F6D
        CN=Samsung Cert, OU=DMC, O=Samsung Corporation, L=Suwon City, ST=South Korea, C=KR
        Example:<code>
        Dim check As CheckSignature
        Log("Certificate Vendor: " & check.CertificateSubject)</code>
      • CertificateVendor As String
        Get CartificatVendor example com.sec.esdk.elm
        Example:<code>
        Dim check As CheckSignature
        Log("Certificate Vendor: " & check.CertificateVendor)</code>
      • KeyHash As String
        Get Signature KeyHash example ggw+21Mf6Fedr0lwKTx36lquaYk=
        Example:<code>
        Dim check As CheckSignature
        Log("Signature KeyHASH: " & check.KeyHash)</code>
      • getPackageName As String
        GetPackageName example get com.devil.app.test
        Example:<code>
        Dim check As CheckSignature
        Log("Name APK: " & check.getPackageName)</code>
      • getPackageVersionCode As Int
        GetPackageVersionCode example get #VersionCode: 1
        Example:<code>
        Dim check As CheckSignature
        Log("VersionCode APK: " & check.getPackageVersionCode)</code>
      • getPackageVersionName As String
        GetPackageVersionName example get #VersionName: 1.0
        Example:<code>
        Dim check As CheckSignature
        Log("VersionName APK: " & check.getPackageVersionName)</code>
      • md5 As String
        Get Signature md5 fingerprint example ce916251b369d91049d9dd36323890a3
        Example:<code>
        Dim check As CheckSignature
        Log("Signature md5 fingerprint: " & check.md5 )</code>
      • sha1 As String
        Get Signature sha1 fingerprint example 826ahedb531ee8579daf4970293c77ea5aae6989
        Example:<code>
        Dim check As CheckSignature
        Log("Signature sha1 fingerprint: " & check.sha1 )</code>

    Code:
    Log("Name APK: " & check.getPackageName)
        
    Log("VersionName APK: " & check.getPackageVersionName)   
        
    Log("VersionCode APK: " & check.getPackageVersionCode)
        
    Log("Signature md5 fingerprint: " & check.md5 )
        
    Log("Signature KeyHASH: " & check.KeyHash)   
        
    Log("Signature sha1 fingerprint: " & check.sha1 )
        
    Log("Certificate Name: " & check.CertificateName)
        
    Log("Certificate Vendor: " & check.CertificateVendor)
        
    Log("Certificate Subject: " & check.CertificateSubject)
        
    Log("Certificate Issuer: " & check.CertificateIssuer)
        
    Log("Certificate Serial Number: " & check.CertificateGetSerialNumber)
    Screenshot 2015-09-06 09.27.35.png
     

    Attached Files:

    jahswani, pesquera, koaunglay and 7 others like this.
  2. ArminKH

    ArminKH Well-Known Member

    thank u marco ;) dameeeeeeet garm
    by using this lib we can check the signator of apps,so this is good news for in-app billing apps
     
    MarcoRome likes this.
  3. MarcoRome

    MarcoRome Expert Licensed User

    ArminKH likes this.
  4. ArminKH

    ArminKH Well-Known Member

    Yes,i'll use your lib in my next app
     
  5. Artur Martins

    Artur Martins Member Licensed User

    Hello,

    This library generates conflict to be used along with the library "mwAdmobInterstitial2".
    How can I solve this problem?
     
  6. MarcoRome

    MarcoRome Expert Licensed User

    Hi, log pls ?
     
  7. Artur Martins

    Artur Martins Member Licensed User

    I may have precipitated me to accuse the conflict with "mwAdmobInterstitial2" but the error only occurs when using the two libraries:

     
  8. MarcoRome

    MarcoRome Expert Licensed User

    Do you have this error in Debug ?
     
  9. Artur Martins

    Artur Martins Member Licensed User

  10. MarcoRome

    MarcoRome Expert Licensed User

    Do you tried compile differently mode ?
     
  11. Artur Martins

    Artur Martins Member Licensed User

    If you are talking about Debug and Release, Yes
     
  12. MarcoRome

    MarcoRome Expert Licensed User

    I havent Error. Look movie:

     
  13. Artur Martins

    Artur Martins Member Licensed User

    The error must be the influence of other aspects of my project.

    Thanks Marco.
     
    MarcoRome likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice