整点视频 v3.3.0版本的 MD5 值为:cba0457dc37421eed445b30f92de25d3
以下内容为反编译后的 bl.java 源代码,内容仅作参考
package armadillo;
import android.content.Context;
import armadillo.ml;
import armadillo.tk;
import java.util.List;
import java.util.Map;
public final class bl {
public static bl f;
public static String g;
public final List<pk> a;
public final jn b;
public final zk c;
public zk d = null;
public Context e;
public bl(Context context, List<pk> list) {
String str;
this.e = context;
if (xk.a(context) != null) {
String str2 = xk.a(context).a0;
if ("oversea".equals(str2)) {
str = "http://astat.bugly.qcloud.com/rqd/async";
} else if ("na_https".equals(str2)) {
str = "https://astat.bugly.cros.wr.pvp.net/:8180/rqd/async";
} else if ("na_http".equals(str2)) {
str = "http://astat.bugly.cros.wr.pvp.net/:8180/rqd/async";
}
zk.w = str;
zk.x = str;
}
this.c = new zk();
this.a = list;
this.b = jn.b();
}
public static synchronized bl a(Context context, List<pk> list) {
bl blVar;
synchronized (bl.class) {
if (f == null) {
f = new bl(context, list);
}
blVar = f;
}
return blVar;
}
public static synchronized bl c() {
bl blVar;
synchronized (bl.class) {
blVar = f;
}
return blVar;
}
public final void a(km kmVar) {
if (kmVar == null) {
return;
}
zk zkVar = this.d;
if (zkVar == null || kmVar.i != zkVar.m) {
zk zkVar2 = new zk();
zkVar2.d = kmVar.b;
zkVar2.f = kmVar.d;
zkVar2.e = kmVar.c;
if (mn.a(g) || !mn.b(g)) {
if (mn.b(kmVar.e)) {
kn.c("[Strategy] Upload url changes to %s", kmVar.e);
zkVar2.o = kmVar.e;
}
if (mn.b(kmVar.f)) {
kn.c("[Strategy] Exception upload url changes to %s", kmVar.f);
zkVar2.p = kmVar.f;
}
}
jm jmVar = kmVar.g;
if (jmVar != null && !mn.a(jmVar.b)) {
zkVar2.r = kmVar.g.b;
}
long j = kmVar.i;
if (j != 0) {
zkVar2.m = j;
}
Map<String, String> map = kmVar.h;
if (map != null && map.size() > 0) {
Map<String, String> map2 = kmVar.h;
zkVar2.s = map2;
String str = map2.get("B11");
if (str == null || !str.equals("1")) {
zkVar2.g = false;
} else {
zkVar2.g = true;
}
String str2 = kmVar.h.get("B3");
if (str2 != null) {
zkVar2.v = Long.valueOf(str2).longValue();
}
int i = kmVar.m;
zkVar2.n = i;
zkVar2.u = i;
String str3 = kmVar.h.get("B27");
if (str3 != null && str3.length() > 0) {
try {
int parseInt = Integer.parseInt(str3);
if (parseInt > 0) {
zkVar2.t = parseInt;
}
} catch (Exception e) {
if (!kn.a(e)) {
e.printStackTrace();
}
}
}
String str4 = kmVar.h.get("B25");
if (str4 == null || !str4.equals("1")) {
zkVar2.i = false;
} else {
zkVar2.i = true;
}
}
kn.a("[Strategy] enableCrashReport:%b, enableQuery:%b, enableUserInfo:%b, enableAnr:%b, enableBlock:%b, enableSession:%b, enableSessionTimer:%b, sessionOverTime:%d, enableCocos:%b, strategyLastUpdateTime:%d", Boolean.valueOf(zkVar2.d), Boolean.valueOf(zkVar2.f), Boolean.valueOf(zkVar2.e), Boolean.valueOf(zkVar2.g), Boolean.valueOf(zkVar2.h), Boolean.valueOf(zkVar2.k), Boolean.valueOf(zkVar2.l), Long.valueOf(zkVar2.n), Boolean.valueOf(zkVar2.i), Long.valueOf(zkVar2.m));
this.d = zkVar2;
if (!mn.b(kmVar.e)) {
kn.c("[Strategy] download url is null", new Object[0]);
this.d.o = "";
}
if (!mn.b(kmVar.f)) {
kn.c("[Strategy] download crashurl is null", new Object[0]);
this.d.p = "";
}
cn.a().b(2);
en enVar = new en();
enVar.b = 2;
enVar.a = zkVar2.b;
enVar.e = zkVar2.c;
enVar.g = mn.a(zkVar2);
cn.a().a(enVar);
a(zkVar2, true);
}
}
public final void a(zk zkVar, boolean z) {
ml c;
jn b;
kn.c("[Strategy] Notify %s", uk.class.getName());
tk tkVar = uk.i;
if (tkVar != null && !z && (b = jn.b()) != null) {
b.a(new tk.b());
}
if (zkVar != null) {
long j = zkVar.n;
if (j > 0) {
uk.d = j;
}
int i = zkVar.t;
if (i > 0) {
uk.b = i;
}
long j2 = zkVar.u;
if (j2 > 0) {
uk.c = j2;
}
}
for (pk pkVar : this.a) {
try {
kn.c("[Strategy] Notify %s", pkVar.getClass().getName());
ok okVar = (ok) pkVar;
if (zkVar != null && (c = ml.c()) != null) {
c.c.a(zkVar);
c.d.a(zkVar);
c.f.b();
jn.b().a(new ml.a(), 3000L);
}
} catch (Throwable th) {
if (!kn.a(th)) {
th.printStackTrace();
}
}
}
}
public final synchronized boolean a() {
return this.d != null;
}
public final zk b() {
zk zkVar = this.d;
if (zkVar != null) {
if (!mn.b(zkVar.o)) {
this.d.o = zk.w;
}
if (!mn.b(this.d.p)) {
this.d.p = zk.x;
}
return this.d;
}
if (!mn.a(g) && mn.b(g)) {
zk zkVar2 = this.c;
String str = g;
zkVar2.o = str;
zkVar2.p = str;
}
return this.c;
}
}