Android Question get sign file info?

ArminKH

Well-Known Member
hi
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?
B4X:
#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) {
         e.printStackTrace();
         }

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

         Return sigChk;
         }
    End Sub
#End If
 

MarcoRome

Expert
Licensed User
Longtime User
hi
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?
B4X:
#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) {
         e.printStackTrace();
         }

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

         Return sigChk;
         }
    End Sub
#End If

You have news : Library Check Signature
 
Upvote 0
Top