OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 StaticSdk.java 源代码,内容仅作参考
package com.excelliance.kxqp.sdk.staticslio;
import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import com.alipay.sdk.packet.e;
import com.excean.bytedancebi.manager.BiManager;
import com.excelliance.kxqp.GameUtilBuild;
import com.excelliance.kxqp.avds.AvdSplashCallBackImp;
import com.excelliance.kxqp.e.a.a;
import com.excelliance.kxqp.util.a.b;
import com.excelliance.staticslio.StatisticsManager;
public class StaticSdk {
public static StaticSdk f12915a;
private Context f12916b;
public StaticSdk(Context context) {
this.f12916b = context;
}
public static StaticSdk a(Context context) {
if (f12915a == null) {
f12915a = new StaticSdk(context);
}
return f12915a;
}
public void a(String str, String str2, String str3, int i) {
StatisticsManager.initBasicInfo(str, str2, str3, i);
StatisticsManager.getInstance(this.f12916b);
StatisticsManager.getInstance(this.f12916b);
StatisticsManager.setProductId(6000);
StatisticsManager.getInstance(this.f12916b);
StatisticsManager.setNewUserValidTime(172800000L);
StatisticsManager.getInstance(this.f12916b);
StatisticsManager.setCheckPeriod(5000L, 1);
StatisticsManager.getInstance(this.f12916b);
StatisticsManager.setBehaveUrl("https://api.ourplay.com.cn/statistic/index");
StatisticsManager.getInstance(this.f12916b);
StatisticsManager.enableLog(false);
StatisticsManager.getInstance(this.f12916b);
StatisticsManager.saveToFile(false);
StatisticsManager.getInstance(this.f12916b);
StatisticsManager.setBehaveNewUrl("http://statis.ourplay.com.cn/behavecount");
StatisticsManager.getInstance(this.f12916b).putExtra_common_info(BiManager.UQID, a());
StatisticsManager.getInstance(this.f12916b).putExtra_common_info("cqid", b());
StatisticsManager.getInstance(this.f12916b).putExtra_common_info("imei", b(this.f12916b));
StatisticsManager.getInstance(this.f12916b).putExtra_common_info("manufacturer", b.b());
StatisticsManager.getInstance(this.f12916b).putExtra_common_info("brand", b.d());
StatisticsManager.getInstance(this.f12916b).putExtra_common_info(e.n, Build.DEVICE);
StatisticsManager.getInstance(this.f12916b).putExtra_common_info("product", Build.PRODUCT);
StatisticsManager.getInstance(this.f12916b).putExtra_common_info("bit64", com.excelliance.kxqp.utils.e.a(this.f12916b) ? "1" : com.excelliance.kxqp.utils.e.a() ? "0" : "2");
String oaid = a.f3733b.getOaid(this.f12916b);
if (!TextUtils.isEmpty(oaid)) {
StatisticsManager.getInstance(this.f12916b).putExtra_common_info(AvdSplashCallBackImp.KEY_OAID, oaid);
}
StatisticsManager.getInstance(this.f12916b);
StatisticsManager.setBasicDataUrl("http://statis.ourplay.com.cn/userdata");
}
public String a() {
return this.f12916b.getSharedPreferences("hello", Build.VERSION.SDK_INT < 11 ? 0 : 4).getString("statistics_uqid", "");
}
public String b() {
String string = this.f12916b.getSharedPreferences("hello", Build.VERSION.SDK_INT < 11 ? 0 : 4).getString("statistics_cqid", "");
if (TextUtils.isEmpty(string)) {
return !TextUtils.isEmpty(string) ? GameUtilBuild.getIntance().getInfoFromFile(this.f12916b, "cqid") : string;
}
return string;
}
public static String b(Context context) {
try {
return b.c(context);
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
}