OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.excelliance.kxqp.utils;
import android.content.Context;
import android.content.pm.PackageManager;
public class c {
public static String f15130a = "https://sdk.ourplay.com.cn/chkversion.php";
public static int f15131b = 1;
public static int c = 2;
private static c d;
private static String g;
private Context e;
private int f = -1;
private c(Context context) {
this.e = context.getApplicationContext();
}
public static c a(Context context) {
if (d == null) {
d = new c(context);
}
return d;
}
public int a() {
try {
return this.e.getPackageManager().getPackageInfo(this.e.getPackageName(), 0).versionCode;
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
return -1;
}
}
public int a(boolean z) {
try {
PackageManager packageManager = this.e.getPackageManager();
StringBuilder sb = new StringBuilder();
sb.append(this.e.getPackageName());
sb.append(z ? ".b64" : "");
return packageManager.getPackageInfo(sb.toString(), 0).versionCode;
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
return -1;
}
}
public Boolean a(int i, int i2) {
if (i2 > i) {
return true;
}
return false;
}
}