Android Question get sign file info?

Discussion in 'Android Questions' started by ArminKH, Aug 21, 2015.

  1. ArminKH

    ArminKH Well-Known Member

    is there any way to get available information about signature file?
    or any body has inline java knowledge please let me to know the correct code of following source and also how to use this by using inline java?
    #If JAVA
        Public static boolean MySigCheck(Context context) {
             boolean sigChk = false;

             Signature[] signature = new Signature[0];

             Try {

             signature = context.getPackageManager().getPackageInfo(context.getPackageName(), PackageManager.GET_SIGNATURES).signatures;

             Log.d("sign hashcode",signature[0].hashCode()+"");

             } Catch (Exception e) {

             If (signature[0].hashCode() == 0000000000){
             sigChk = true;

             Return sigChk;
        End Sub
    #End If
  2. MarcoRome

    MarcoRome Expert Licensed User

    You have news : Library Check Signature
    ArminKH likes this.
  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