萝莉来了 v1.2.1版本的 MD5 值为:6055c21e001561c5b114d0da5b392fcb
以下内容为反编译后的 d.java 源代码,内容仅作参考
package mm.purchasesdk.k;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.telephony.TelephonyManager;
import android.util.DisplayMetrics;
import android.view.WindowManager;
import cn.cmgame.billing.ui.OpeningAnimation;
import mm.purchasesdk.fingerprint.IdentifyApp;
import mm.purchasesdk.ui.y;
public class d {
public static int Z;
public static int aa;
public static float k;
private static Context mContext;
private static boolean l = false;
public static int X = -1;
private static String ay = "";
private static String az = "";
private static int Y = 1;
private static String E = "";
private static String aA = "";
private static String aB = "";
private static String aC = "";
private static Boolean h = false;
private static Boolean i = true;
private static Boolean j = false;
private static String aD = null;
private static String aE = "1";
private static String aF = "";
private static String Q = "0";
private static String aG = null;
private static String aH = null;
private static String aI = "";
private static boolean f38k = false;
private static String aJ = "";
private static boolean m = true;
private static String aK = "";
private static String aL = "";
private static String aM = "";
private static Boolean f37k = false;
public static String A() {
return aF;
}
public static String B() {
return ay;
}
public static String C() {
return az;
}
public static String D() {
return aI;
}
public static String E() {
return m ? j.booleanValue() ? "1" : "2" : "4";
}
public static String F() {
return aD;
}
public static String G() {
return aE;
}
public static String H() {
aK = ((TelephonyManager) mContext.getSystemService("phone")).getSubscriberId();
if (aK == null) {
aK = "10086";
}
e.a(0, "MMBillingSDk", "Imsi-->" + aK);
return aK;
}
public static String I() {
return aL;
}
public static String J() {
return aM;
}
public static void J(String str) {
aG = str;
}
public static String K() {
e.a(0, "MMBillingSDk", "Copyright url-->http://ospd.mmarket.com:8089/taac");
return "http://ospd.mmarket.com:8089/taac";
}
public static void K(String str) {
aH = str;
}
public static String L() {
return "ospd.mmarket.com";
}
public static void L(String str) {
aF = str;
}
public static String M() {
return "8089";
}
public static void M(String str) {
aJ = str;
}
public static String N() {
return "MIICZzCCAdKgAwIBAgIDNJv2MAsGCSqGSIb3DQEBBTAzMQswCQYDVQQGEwJDTjEkMCIGA1UEAwwbQ01DQSBhcHBsaWNhdGlvbiBzaWduaW5nIENBMB4XDTExMDMyNDAyMjExOFoXDTMxMDMyNDAyMjExOFowXjELMAkGA1UEBhMCQ04xMzAxBgNVBAMMKuS4reWbveenu+WKqOe7iOerr+W6lOeUqOeJiOadg+S/neaKpOWjsOaYjjEaMBgGA1UEBRMRMjAxMTAzMjQxMDI0MjIyMjUwgZ0wCwYJKoZIhvcNAQEBA4GNADCBiQKBgQDb7UlB5k4kdWACNBmHM+Dw9NSD0Q4o7CR3gTaciZQlXeoCCwuYSAWuhoI5ujQsM47eH12OlIn2IwKYObwa6iVY6CLVnEhPkqQfLXPNCoOI+fFdKqLO1YD0+RRj+4oUXi7vAVBEASeyhZesT8P6m2nPpiExlZjDqJYzX/MKYcIkvwIDAQABo2QwYjATBgNVHSUEDDAKBggrBgEFBQcDAzAfBgNVHSMEGDAWgBSXIbIlzOk/0qZTaEGW5ldxZ9uyjTALBgNVHQ8EBAMCB4AwHQYDVR0OBBYEFDTw9zOSP/ZHrahKl9qApKmRNJZiMAsGCSqGSIb3DQEBBQOBgQB6KJgdTQoNXy4xErgbtiRXz7L+J05HM3K6ZFBUE4/cOFcEXiEuu2YekT+pAZcPm2A6iRdYSKo7LCMIDEZUXdMKzTzkxmk39wy05QAyS6QjW8AWp9A9ufvd741IOnjnRGfN4hzuxPjRHEG86T/+nkmYkVgl7gfLJ7mBpyRNKkzIDg==";
}
public static void N(String str) {
aD = str;
}
public static String O() {
return IdentifyApp.generateTransactionID(B(), D(), I(), H());
}
public static void O(String str) {
aE = str;
}
public static String P() {
return aB;
}
public static void P(String str) {
}
public static String Q() {
return aA;
}
public static void Q(String str) {
aL = str;
}
public static String R() {
return aC;
}
public static void R(String str) {
aM = str;
}
public static String S() {
String H = H();
return (H == null || H.trim().length() <= 6) ? "" : H.substring(0, 5);
}
public static void S(String str) {
aB = str;
}
public static String T() {
String str = Build.MODEL;
return (str == null || str.trim().length() <= 0) ? "" : str;
}
public static void T(String str) {
aA = str;
}
public static String U() {
String str = Build.VERSION.RELEASE;
return (str == null || str.trim().length() <= 0) ? "" : str;
}
public static void U(String str) {
aC = str;
}
public static void V(String str) {
if (str.trim().equals("0")) {
f37k = false;
} else {
f37k = true;
}
}
public static int a() {
return Y;
}
public static void a(Boolean bool) {
h = bool;
}
public static synchronized boolean a(int i2) {
boolean z = true;
synchronized (d.class) {
if (l) {
z = false;
} else {
l = true;
X = i2;
}
}
return z;
}
public static String b() {
return E;
}
public static void b(String str) {
E = str;
}
public static void b(String str, String str2) {
ay = str;
az = str2;
}
public static Boolean c() {
return f37k;
}
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:8089/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:8089/trusted3";
}
public static void d(Boolean bool) {
j = bool;
}
public static boolean d() {
return m;
}
public static String e(String str) {
aI = str;
return str;
}
public static void e(int i2) {
Y = i2;
}
public static void e(Boolean bool) {
i = bool;
}
public static boolean e() {
return f38k;
}
public static void enableCache(boolean z) {
f38k = z;
}
public static void f(boolean z) {
m = z;
}
public static Boolean g() {
return j;
}
public static Context getContext() {
return mContext;
}
public static Boolean h() {
return i;
}
public static Boolean i() {
return h;
}
public static String n() {
return Q;
}
public static String r() {
return aJ;
}
private static void reset() {
y.R = 10;
y.Q = 10;
y.N = 10;
y.P = 20;
y.f = 1.0f;
y.d = 1.0f;
y.g = 16.0f;
y.h = 15.0f;
y.i = 16.0f;
y.j = 18.0f;
}
public static void setContext(Context context) {
mContext = context;
}
public static synchronized void unlock() {
synchronized (d.class) {
l = false;
X = -1;
v();
}
}
public static void v() {
mContext = null;
aB = "";
Y = 1;
aA = "";
E = "";
aI = "";
Q = "0";
h = false;
i = false;
j = true;
f37k = false;
reset();
}
public static void w() {
reset();
y.u();
DisplayMetrics displayMetrics = new DisplayMetrics();
((WindowManager) getContext().getSystemService("window")).getDefaultDisplay().getMetrics(displayMetrics);
k = displayMetrics.density;
aa = displayMetrics.heightPixels;
Z = displayMetrics.widthPixels;
y.H = Z;
if (k < 1.0f) {
y.N = 5;
}
if (mContext.getResources().getConfiguration().orientation != 2) {
y.d = aa / 800.0f;
y.f = 42.0f;
y.O = (int) ((y.f * aa) / 100.0f);
y.c = 35.0f;
y.I = (int) ((y.c * aa) / 100.0f);
y.e = (aa * 100) / OpeningAnimation.HDPI_HEIGHT;
y.R = (int) ((y.e * y.R) / 100.0f);
y.Q = (int) ((y.e * y.Q) / 100.0f);
y.N = (int) ((y.e * y.N) / 100.0f);
y.P = (int) ((y.e * y.P) / 100.0f);
if (k == 1.0f) {
y.j *= y.d;
y.h = (y.h * y.e) / 100.0f;
y.i *= y.d;
}
y.f83d = false;
return;
}
y.d = aa / 480.0f;
y.f = 39.0f;
y.O = (int) ((y.f * aa) / 100.0f);
y.c = 31.0f;
y.I = (int) ((y.c * aa) / 100.0f);
y.e = (Z * 100) / OpeningAnimation.HDPI_HEIGHT;
y.R = (int) ((y.e * y.R) / 100.0f);
y.Q = (int) ((y.e * y.Q) / 100.0f);
y.N = (int) ((y.e * y.N) / 100.0f);
y.P = (int) ((y.e * y.P) / 100.0f);
y.f83d = true;
if (k == 1.0f) {
y.j *= y.d;
y.h = (y.h * y.e) / 100.0f;
y.i *= y.d;
}
}
public static void y(String str) {
Q = str;
}
public static String z() {
return aG;
}
}