亲朋打僵尸 v1.0版本的 MD5 值为:027c73d6bc1ac0a24f96eaed77a689a4
以下内容为反编译后的 d.java 源代码,内容仅作参考
package mm.purchasesdk.l;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.telephony.TelephonyManager;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.WindowManager;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Enumeration;
import mm.purchasesdk.PurchaseCode;
import mm.purchasesdk.fingerprint.IdentifyApp;
import mm.purchasesdk.ui.aa;
public class d {
public static int ad;
public static int ae;
private static int af;
public static float k;
private static Context mContext;
private static boolean m = false;
public static int ab = -1;
private static String az = "";
private static String aA = "";
private static int ac = 1;
private static String E = "";
private static String aB = "";
private static String aC = "";
private static String aD = "";
private static Boolean h = false;
private static Boolean i = true;
private static Boolean j = false;
private static String aE = null;
private static String aF = com.alipay.sdk.cons.a.e;
private static String aG = "";
private static String Q = "0";
private static String aH = null;
private static String aI = null;
private static String aJ = "";
private static String al = null;
private static String aK = "";
private static boolean l = false;
private static String aL = "";
private static boolean n = true;
private static String aM = "";
private static String aN = "";
private static String aO = "";
private static Boolean f38k = false;
public static String C() {
return aJ;
}
public static String D() {
return aH;
}
public static String E() {
return aG;
}
public static String F() {
return az;
}
public static String G() {
return aA;
}
public static String H() {
return aK;
}
public static String I() {
return n ? j.booleanValue() ? com.alipay.sdk.cons.a.e : "2" : "4";
}
public static String J() {
return aE;
}
public static void J(String str) {
aJ = str;
}
public static String K() {
return aF;
}
public static void K(String str) {
aH = str;
}
public static String L() {
aM = ((TelephonyManager) mContext.getSystemService("phone")).getSubscriberId();
if (aM == null) {
aM = "10086";
}
e.a(0, "MMBillingSDk", "Imsi-->" + aM);
return aM;
}
public static void L(String str) {
aI = str;
}
public static String M() {
return aN;
}
public static void M(String str) {
aG = str;
}
public static String N() {
return aO;
}
public static void N(String str) {
aL = str;
}
public static String O() {
e.a(0, "MMBillingSDk", "Copyright url-->http://ospd.mmarket.com:80/taac");
return "http://ospd.mmarket.com:80/taac";
}
public static void O(String str) {
aE = str;
}
public static String P() {
PackageInfo packageInfo;
try {
packageInfo = getContext().getPackageManager().getPackageInfo(getContext().getPackageName(), 0);
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
packageInfo = null;
}
return packageInfo.versionName;
}
public static void P(String str) {
aF = str;
}
public static String Q() {
Context context = getContext();
getContext();
NetworkInfo activeNetworkInfo = ((ConnectivityManager) context.getSystemService("connectivity")).getActiveNetworkInfo();
if (activeNetworkInfo == null) {
e.e("MMBillingSDk", "network not exists, pls check network");
return "";
}
String typeName = activeNetworkInfo.getTypeName();
return (typeName.compareTo("MOBILE") == 0 || typeName.compareTo("mobile") == 0) ? "GPRS" : typeName;
}
public static void Q(String str) {
}
public static String R() {
try {
Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces();
while (networkInterfaces.hasMoreElements()) {
Enumeration<InetAddress> inetAddresses = networkInterfaces.nextElement().getInetAddresses();
while (inetAddresses.hasMoreElements()) {
InetAddress nextElement = inetAddresses.nextElement();
if (!nextElement.isLoopbackAddress()) {
return nextElement.getHostAddress().toString();
}
}
}
} catch (SocketException e) {
Log.e("WifiPreference IpAddress", e.toString());
}
return "";
}
public static void R(String str) {
aN = str;
}
public static String S() {
Context context = getContext();
getContext();
return ((WifiManager) context.getSystemService("wifi")).getConnectionInfo().getSSID();
}
public static void S(String str) {
aO = str;
}
public static String T() {
return "ospd.mmarket.com";
}
public static void T(String str) {
aC = str;
}
public static String U() {
return "80";
}
public static void U(String str) {
aB = str;
}
public static String V() {
return "MIICZzCCAdKgAwIBAgIDNJv2MAsGCSqGSIb3DQEBBTAzMQswCQYDVQQGEwJDTjEkMCIGA1UEAwwbQ01DQSBhcHBsaWNhdGlvbiBzaWduaW5nIENBMB4XDTExMDMyNDAyMjExOFoXDTMxMDMyNDAyMjExOFowXjELMAkGA1UEBhMCQ04xMzAxBgNVBAMMKuS4reWbveenu+WKqOe7iOerr+W6lOeUqOeJiOadg+S/neaKpOWjsOaYjjEaMBgGA1UEBRMRMjAxMTAzMjQxMDI0MjIyMjUwgZ0wCwYJKoZIhvcNAQEBA4GNADCBiQKBgQDb7UlB5k4kdWACNBmHM+Dw9NSD0Q4o7CR3gTaciZQlXeoCCwuYSAWuhoI5ujQsM47eH12OlIn2IwKYObwa6iVY6CLVnEhPkqQfLXPNCoOI+fFdKqLO1YD0+RRj+4oUXi7vAVBEASeyhZesT8P6m2nPpiExlZjDqJYzX/MKYcIkvwIDAQABo2QwYjATBgNVHSUEDDAKBggrBgEFBQcDAzAfBgNVHSMEGDAWgBSXIbIlzOk/0qZTaEGW5ldxZ9uyjTALBgNVHQ8EBAMCB4AwHQYDVR0OBBYEFDTw9zOSP/ZHrahKl9qApKmRNJZiMAsGCSqGSIb3DQEBBQOBgQB6KJgdTQoNXy4xErgbtiRXz7L+J05HM3K6ZFBUE4/cOFcEXiEuu2YekT+pAZcPm2A6iRdYSKo7LCMIDEZUXdMKzTzkxmk39wy05QAyS6QjW8AWp9A9ufvd741IOnjnRGfN4hzuxPjRHEG86T/+nkmYkVgl7gfLJ7mBpyRNKkzIDg==";
}
public static void V(String str) {
aD = str;
}
public static String W() {
return IdentifyApp.generateTransactionID(F(), H(), M(), L());
}
public static void W(String str) {
if (str.trim().equals("0")) {
f38k = false;
} else {
f38k = true;
}
}
public static String X() {
return aC;
}
public static String Y() {
return aB;
}
public static String Z() {
return aD;
}
public static int a() {
return ac;
}
public static DisplayMetrics m43a() {
new DisplayMetrics();
return getContext().getResources().getDisplayMetrics();
}
public static void a(Boolean bool) {
h = bool;
}
public static boolean a(int i2) {
boolean z = true;
synchronized (d.class) {
try {
if (m) {
z = false;
} else {
m = true;
ab = i2;
}
} finally {
}
}
return z;
}
public static String aa() {
String L = L();
return (L == null || L.trim().length() <= 6) ? "" : L.substring(0, 5);
}
public static String ab() {
String str = Build.MODEL;
return (str == null || str.trim().length() <= 0) ? "" : str;
}
public static String ac() {
String str = Build.VERSION.RELEASE;
return (str == null || str.trim().length() <= 0) ? "" : str;
}
public static String b() {
return E;
}
public static void b(String str) {
E = str;
}
public static void b(String str, String str2) {
az = str;
aA = str2;
}
public static Boolean c() {
return f38k;
}
public static String c(Context context) {
NetworkInfo activeNetworkInfo = ((ConnectivityManager) context.getSystemService("connectivity")).getActiveNetworkInfo();
if (activeNetworkInfo == null) {
e.e("MMBillingSDk", "network not exists, pls check network");
return null;
}
activeNetworkInfo.getExtraInfo();
return "http://ospd.mmarket.com:80/trust";
}
public static String d(Context context) {
NetworkInfo activeNetworkInfo = ((ConnectivityManager) context.getSystemService("connectivity")).getActiveNetworkInfo();
if (activeNetworkInfo == null) {
e.e("MMBillingSDk", "network not exists, pls check network");
return null;
}
activeNetworkInfo.getExtraInfo();
return "http://ospd.mmarket.com:80/trusted3";
}
public static void d(Boolean bool) {
j = bool;
}
public static boolean d() {
return n;
}
public static String e(String str) {
aK = str;
return str;
}
public static void e(int i2) {
af = i2;
}
public static void e(Boolean bool) {
i = bool;
}
public static boolean e() {
return l;
}
public static void enableCache(boolean z) {
l = z;
}
public static String f(String str) {
String str2 = "";
try {
MessageDigest messageDigest = MessageDigest.getInstance("MD5");
messageDigest.update(str.getBytes());
byte[] digest = messageDigest.digest();
StringBuffer stringBuffer = new StringBuffer("");
for (int i2 = 0; i2 < digest.length; i2++) {
int i3 = digest[i2];
if (i3 < 0) {
i3 += PurchaseCode.AUTH_LICENSE_ERROR;
}
if (i3 < 16) {
stringBuffer.append("0");
}
stringBuffer.append(Integer.toHexString(i3));
}
str2 = stringBuffer.toString().substring(8, 24).toUpperCase();
try {
Log.e("555", "result: " + str2);
} catch (NoSuchAlgorithmException e) {
e = e;
e.printStackTrace();
return str2;
}
} catch (NoSuchAlgorithmException e2) {
e = e2;
}
return str2;
}
public static void f(int i2) {
ac = i2;
}
public static Boolean g() {
return j;
}
public static void g(boolean z) {
n = z;
}
public static Context getContext() {
return mContext;
}
public static String getErrMsg() {
return al;
}
public static String getPackageName() {
PackageInfo packageInfo;
try {
packageInfo = getContext().getPackageManager().getPackageInfo(getContext().getPackageName(), 0);
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
packageInfo = null;
}
return packageInfo.packageName;
}
public static Boolean h() {
return i;
}
public static Boolean i() {
return h;
}
public static int j() {
return af;
}
public static String n() {
return Q;
}
private static void reset() {
mm.purchasesdk.c.a.m = 60;
mm.purchasesdk.c.a.n = 15;
aa.V = 10;
aa.U = 10;
aa.R = 10;
aa.T = 20;
aa.f = 1.0f;
aa.d = 1.0f;
aa.g = 16.0f;
aa.h = 15.0f;
aa.i = 16.0f;
aa.j = 18.0f;
}
public static void setContext(Context context) {
mContext = context;
}
public static void setErrMsg(String str) {
al = str;
}
public static String t() {
return aL;
}
public static void unlock() {
synchronized (d.class) {
try {
m = false;
ab = -1;
y();
} catch (Throwable th) {
throw th;
}
}
}
public static void y() {
mContext = null;
aC = "";
ac = 1;
aB = "";
E = "";
aK = "";
Q = "0";
h = false;
i = false;
j = true;
f38k = false;
al = null;
reset();
}
public static void y(String str) {
Q = str;
}
public static void z() {
reset();
aa.x();
DisplayMetrics displayMetrics = new DisplayMetrics();
((WindowManager) getContext().getSystemService("window")).getDefaultDisplay().getMetrics(displayMetrics);
k = displayMetrics.density;
ae = displayMetrics.heightPixels;
ad = displayMetrics.widthPixels;
aa.L = ad;
if (k < 1.0f) {
aa.R = 5;
}
if (mContext.getResources().getConfiguration().orientation == 2) {
aa.d = ae / 480.0f;
aa.f = 39.0f;
aa.S = (int) ((aa.f * ae) / 100.0f);
aa.c = 31.0f;
aa.M = (int) ((aa.c * ae) / 100.0f);
aa.e = (ad * 100) / 800;
aa.V = (int) ((aa.e * aa.V) / 100.0f);
aa.U = (int) ((aa.e * aa.U) / 100.0f);
aa.R = (int) ((aa.e * aa.R) / 100.0f);
aa.T = (int) ((aa.e * aa.T) / 100.0f);
aa.f40d = true;
if (k == 1.0f) {
aa.j *= aa.d;
aa.h = (aa.h * aa.e) / 100.0f;
aa.i *= aa.d;
}
mm.purchasesdk.c.a.n = (int) ((mm.purchasesdk.c.a.n * aa.d) / 100.0f);
mm.purchasesdk.c.a.m = (int) (mm.purchasesdk.c.a.m * aa.d);
return;
}
aa.d = ae / 800.0f;
aa.f = 42.0f;
aa.S = (int) ((aa.f * ae) / 100.0f);
aa.c = 35.0f;
aa.M = (int) ((aa.c * ae) / 100.0f);
aa.e = (ae * 100) / 800;
aa.V = (int) ((aa.e * aa.V) / 100.0f);
aa.U = (int) ((aa.e * aa.U) / 100.0f);
aa.R = (int) ((aa.e * aa.R) / 100.0f);
aa.T = (int) ((aa.e * aa.T) / 100.0f);
if (k == 1.0f) {
aa.j *= aa.d;
aa.h = (aa.h * aa.e) / 100.0f;
aa.i *= aa.d;
}
aa.f40d = false;
mm.purchasesdk.c.a.n = (int) (mm.purchasesdk.c.a.n * aa.d);
mm.purchasesdk.c.a.m = (int) (mm.purchasesdk.c.a.m * aa.d);
}
}