Slight adjustment signature md5 calculation, to match server
This commit is contained in:
parent
0881142023
commit
c629a6884f
@ -254,11 +254,10 @@ public class AppDetails extends ListActivity {
|
|||||||
if (pref_expert && mInstalledSignature != null) {
|
if (pref_expert && mInstalledSignature != null) {
|
||||||
try {
|
try {
|
||||||
tv = (TextView) findViewById(R.id.signature);
|
tv = (TextView) findViewById(R.id.signature);
|
||||||
byte[] sig = mInstalledSignature.toByteArray();
|
|
||||||
MessageDigest md;
|
MessageDigest md;
|
||||||
md = MessageDigest.getInstance("MD5");
|
md = MessageDigest.getInstance("MD5");
|
||||||
byte[] md5sum = new byte[32];
|
byte[] md5sum = new byte[32];
|
||||||
md.update(sig, 0, sig.length);
|
md.update(mInstalledSignature.toCharsString().getBytes());
|
||||||
md5sum = md.digest();
|
md5sum = md.digest();
|
||||||
BigInteger bigInt = new BigInteger(1, md5sum);
|
BigInteger bigInt = new BigInteger(1, md5sum);
|
||||||
String md5hash = bigInt.toString(16);
|
String md5hash = bigInt.toString(16);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user