APK signature hashcode

Asked

Viewed 52 times

1

I need returns a unique hashcode from the apk signature.

Signature[] sigs = context.getPackageManager().getPackageInfo(context.getPackageName(), PackageManager.GET_SIGNATURES).signatures;
for (Signature sig : sigs)
{
    Trace.i("MyApp", "Signature hashcode : " + sig.hashCode());
}

I conclude that this code returns the hashcode of the signature of . jks, so all apk that use the same . jks will return the same hashcode, but I needed the unique hashcode of apk.

Does anyone know if it is possible to bring the apk signature hashcode that is unique?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.