正在查看: 用信花 v1.1.3 应用的 l.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 用信花 v1.1.3 应用的 l.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package h1;
import android.content.Context;
import android.os.Process;
import android.os.SystemClock;
import cn.com.chinatelecom.account.api.CtAuth;
import cn.com.chinatelecom.account.api.TraceLogger;
import com.chuanglan.shanyan_sdk.listener.InitCallbacks;
import i1.v;
import java.util.Arrays;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import org.json.JSONObject;
public class l {
public static volatile l f4057j;
public InitCallbacks f4058a;
public String f4059b;
public Context f4060c;
public ExecutorService f4061d;
public ExecutorService f4062e;
public Map<String, Object> f4063f;
public g1.b f4064g;
public int f4065h;
public String f4066i;
public class a implements Runnable {
public final long f4067a;
public final long f4068b;
public a(long j4, long j5) {
this.f4067a = j4;
this.f4068b = j5;
}
@Override
public void run() {
if (l.this.f4061d == null || l.this.f4061d.isShutdown()) {
l.this.f4061d = new ThreadPoolExecutor(8, Integer.MAX_VALUE, 120L, TimeUnit.SECONDS, new LinkedBlockingDeque());
}
l.this.f4061d.execute(new i1.q().a());
Process.setThreadPriority(-20);
l.this.f(1, this.f4067a, this.f4068b);
}
}
public class b extends g1.a {
public final int f4070b;
public final long f4071c;
public final long f4072d;
public final long f4073e;
public b(int i4, long j4, long j5, long j6) {
this.f4070b = i4;
this.f4071c = j4;
this.f4072d = j5;
this.f4073e = j6;
}
@Override
public void c(String str, String str2) {
if (l.this.f4065h != 0) {
InitCallbacks initCallbacks = l.this.f4058a;
c1.b bVar = c1.b.REQUEST_FAILED_CODE;
initCallbacks.initFailed(bVar.a(), bVar.b(), str2, bVar.d(), this.f4070b, this.f4071c, this.f4072d, this.f4073e);
} else {
int i4 = c1.a.f1042d0;
l lVar = l.this;
lVar.f4064g = new g1.b("https://fs.cl2009.com/flash/thin/accountInit/v3", lVar.f4060c);
i1.o.c(c1.d.f1118e, "init onFailure again", str, "https://fs.cl2009.com/flash/thin/accountInit/v3".substring(0, 15), Integer.valueOf(l.this.f4065h));
l.this.f4065h = 1;
l.this.o(this.f4070b, this.f4071c, this.f4072d, this.f4073e);
}
}
@Override
public void h(String str) {
Context context;
long parseLong;
Context context2;
String str2;
char c4 = 2;
try {
i1.o.b(c1.d.f1118e, "initStart params", l.this.f4063f, "\nresult==", str);
} catch (Exception e4) {
e = e4;
c4 = 1;
}
try {
if (i1.e.h(str)) {
JSONObject jSONObject = new JSONObject(str);
int optInt = jSONObject.optInt(c1.e.Z);
if (optInt == 0) {
JSONObject optJSONObject = jSONObject.optJSONObject(c1.e.f1128b0);
if (optJSONObject != null) {
String optString = optJSONObject.optString("r5");
String optString2 = optJSONObject.optString(c1.e.f1138g0);
String optString3 = optJSONObject.optString(c1.e.f1171x0);
String optString4 = optJSONObject.optString(c1.e.f1173y0);
String optString5 = optJSONObject.optString(c1.e.f1167v0);
String optString6 = optJSONObject.optString(c1.e.f1136f0);
String optString7 = optJSONObject.optString(c1.e.f1175z0);
String optString8 = optJSONObject.optString(c1.e.f1165u0);
String optString9 = optJSONObject.optString(c1.e.p0);
String optString10 = optJSONObject.optString(c1.e.f1154o0);
String optString11 = optJSONObject.optString(c1.e.f1146k0);
String optString12 = optJSONObject.optString(c1.e.f1150m0);
String optString13 = optJSONObject.optString(c1.e.f1169w0);
String optString14 = optJSONObject.optString(c1.e.f1148l0);
String optString15 = optJSONObject.optString(c1.e.f1142i0);
String optString16 = optJSONObject.optString(c1.e.f1144j0);
String optString17 = optJSONObject.optString(c1.e.A0);
String optString18 = optJSONObject.optString(c1.e.f1157q0);
String optString19 = optJSONObject.optString(c1.e.E0);
String optString20 = optJSONObject.optString(c1.e.F0);
String optString21 = optJSONObject.optString(c1.e.B0);
String optString22 = optJSONObject.optString(c1.e.f1163t0);
String optString23 = optJSONObject.optString(c1.e.C0);
String optString24 = optJSONObject.optString(c1.e.D0);
String optString25 = optJSONObject.optString(c1.e.f1159r0);
String optString26 = optJSONObject.optString(c1.e.f1152n0);
String optString27 = optJSONObject.optString(c1.e.f1161s0);
v.b(l.this.f4060c, c1.f.T, SystemClock.uptimeMillis());
v.c(l.this.f4060c, c1.f.f1188j, optString2);
v.c(l.this.f4060c, c1.f.f1204z, optString3);
v.c(l.this.f4060c, c1.f.f1187i, optString6);
v.c(l.this.f4060c, c1.f.B, optString7);
v.c(l.this.f4060c, c1.f.A, optString4);
v.c(l.this.f4060c, c1.f.f1201w, optString5);
v.c(l.this.f4060c, c1.f.f1200v, optString8);
if ("1".equals(optString)) {
v.c(l.this.f4060c, c1.f.f1185g, optString);
InitCallbacks initCallbacks = l.this.f4058a;
c1.b bVar = c1.b.ACCOUNT_DISABLED_CODE;
initCallbacks.initFailed(bVar.a(), bVar.b(), bVar.c(), bVar.d(), this.f4070b, this.f4071c, this.f4072d, this.f4073e);
return;
}
if (i1.e.h(optString26)) {
v.c(l.this.f4060c, c1.f.f1195q, optString26);
}
if (i1.e.h(optString25)) {
v.c(l.this.f4060c, c1.f.f1198t, optString25);
}
if (i1.e.h(optString23)) {
v.c(l.this.f4060c, c1.f.E, optString23);
}
if (i1.e.h(optString24)) {
v.c(l.this.f4060c, c1.f.F, optString24);
}
if (i1.e.h(optString22)) {
v.c(l.this.f4060c, c1.f.f1199u, optString22);
}
if (i1.e.h(optString27) && optString27.contains(",")) {
String[] split = optString27.split(",");
String str3 = split[0];
String str4 = split[1];
String str5 = split[2];
v.a(l.this.f4060c, c1.f.Q, Integer.parseInt(str3));
if (-1 == c1.a.O) {
v.a(l.this.f4060c, c1.f.R, Integer.parseInt(str4));
v.a(l.this.f4060c, c1.f.S, Integer.parseInt(str5));
} else {
v.a(l.this.f4060c, c1.f.R, c1.a.O);
v.a(l.this.f4060c, c1.f.S, c1.a.O);
}
}
if (i1.e.h(optString16)) {
v.b(l.this.f4060c, c1.f.f1191m, Long.parseLong(optString16));
}
if (i1.e.h(optString9)) {
v.b(l.this.f4060c, c1.f.f1197s, Long.parseLong(optString9));
}
if (i1.e.h(optString10)) {
v.b(l.this.f4060c, c1.f.f1196r, Long.parseLong(optString10));
}
if (i1.e.h(optString11)) {
v.a(l.this.f4060c, c1.f.f1192n, Integer.parseInt(optString11));
}
if (i1.e.h(optString12)) {
v.b(l.this.f4060c, c1.f.f1194p, Long.parseLong(optString12));
}
if (i1.e.h(optString13)) {
v.b(l.this.f4060c, c1.f.f1203y, Long.parseLong(optString13));
}
if (i1.e.h(optString14)) {
v.b(l.this.f4060c, c1.f.f1193o, Long.parseLong(optString14));
}
if (i1.e.g(optString15)) {
context = l.this.f4060c;
parseLong = c1.c.f1111a;
} else {
context = l.this.f4060c;
parseLong = Long.parseLong(optString15);
}
v.b(context, c1.f.f1190l, parseLong);
if (i1.e.h(optString17)) {
v.b(l.this.f4060c, c1.f.C, Long.parseLong(optString17));
}
if (i1.e.h(optString21)) {
context2 = l.this.f4060c;
str2 = optString21;
} else {
context2 = l.this.f4060c;
str2 = "0MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJaqWkyQhbQ6EbYBFaxhfblDc3wmzSV27D/CncV6b1dG9DW/9rPqKLP9TvpcxA8OTgQR/WZ1YKwtcHJurR83spkCAwEAAQ==";
}
v.c(context2, c1.f.D, str2);
if (i1.e.h(optString20)) {
v.c(l.this.f4060c, c1.f.I, optString20);
}
l.this.l(optString18, optString19);
i1.i.b().a(l.this.f4060c, true, this.f4070b, this.f4071c);
v.d(l.this.f4060c, c1.f.V, true);
InitCallbacks initCallbacks2 = l.this.f4058a;
c1.b bVar2 = c1.b.INIT_SUCCESS_CODE;
initCallbacks2.initSuccessed(bVar2.a(), bVar2.b(), bVar2.c(), bVar2.d(), this.f4070b, this.f4071c, this.f4072d, this.f4073e);
return;
}
InitCallbacks initCallbacks3 = l.this.f4058a;
c1.b bVar3 = c1.b.REQUEST_DATA_ERROR_CODE;
c4 = 1;
initCallbacks3.initFailed(bVar3.a(), optInt, str, bVar3.d(), this.f4070b, this.f4071c, this.f4072d, this.f4073e);
} else {
c4 = 1;
l.this.f4058a.initFailed(c1.b.REQUEST_DATA_ERROR_CODE.a(), optInt, str, "retCode failed", this.f4070b, this.f4071c, this.f4072d, this.f4073e);
}
} else {
c4 = 1;
InitCallbacks initCallbacks4 = l.this.f4058a;
int a4 = c1.b.REQUEST_DATA_ERROR_CODE.a();
c1.b bVar4 = c1.b.INIT_SUCCESS_CODE;
initCallbacks4.initFailed(a4, bVar4.b(), bVar4.c(), "result isEmpty", this.f4070b, this.f4071c, this.f4072d, this.f4073e);
}
} catch (Exception e5) {
e = e5;
e.printStackTrace();
Object[] objArr = new Object[2];
objArr[0] = "getOperatorData Exception";
objArr[c4] = e;
i1.o.e(c1.d.f1116c, objArr);
InitCallbacks initCallbacks5 = l.this.f4058a;
c1.b bVar5 = c1.b.SDK_EXCEPTION_CODE;
initCallbacks5.initFailed(bVar5.a(), bVar5.b(), bVar5.c(), bVar5.d() + "getOperatorData--Exception_e=" + e, this.f4070b, this.f4071c, this.f4072d, this.f4073e);
}
}
}
public class c implements TraceLogger {
public c() {
}
@Override
public void debug(String str, String str2) {
i1.o.c(c1.d.f1118e, "debug s", str, c1.e.E0, str2);
}
@Override
public void info(String str, String str2) {
i1.o.c(c1.d.f1118e, "info s", str, c1.e.E0, str2);
}
@Override
public void warn(String str, String str2, Throwable th) {
i1.o.c(c1.d.f1118e, "warn s", str, c1.e.E0, str2, "throwable", th);
}
}
public static l c() {
if (f4057j == null) {
synchronized (l.class) {
if (f4057j == null) {
f4057j = new l();
}
}
}
return f4057j;
}
public void f(int i4, long j4, long j5) {
int i5;
?? r11;
InitCallbacks initCallbacks;
int a4;
int b4;
String c4;
String d2;
long uptimeMillis = SystemClock.uptimeMillis();
try {
i1.o.c(c1.d.f1118e, "initStart processName", Integer.valueOf(i4));
c1.a.f1084z.set(c1.a.f1082y);
this.f4058a = new f1.c(this.f4060c);
boolean h4 = v.h(this.f4060c, c1.f.V, false);
i5 = i1.i.b();
r11 = this.f4060c;
i5.a(r11, h4, i4, j4);
String g4 = v.g(this.f4060c, c1.f.f1200v, "");
String g5 = v.g(this.f4060c, c1.f.L, "");
if (!i1.e.g(this.f4059b)) {
try {
if (h4 && !i1.e.g(g4) && this.f4059b.equals(g5)) {
long f4 = v.f(this.f4060c, c1.f.T, SystemClock.uptimeMillis());
long f5 = v.f(this.f4060c, c1.f.f1190l, c1.c.f1111a);
String g6 = v.g(this.f4060c, c1.f.f1185g, c1.a.f1050h0);
if (!i1.e.h(g6) || !"1".equals(g6)) {
if ((SystemClock.uptimeMillis() - f4) / 1000 < f5) {
InitCallbacks initCallbacks2 = this.f4058a;
c1.b bVar = c1.b.INIT_CACHE_SUCCESS_CODE;
initCallbacks2.initSuccessed(bVar.a(), bVar.b(), bVar.c(), bVar.d(), i4, j4, j5, uptimeMillis);
return;
} else {
InitCallbacks initCallbacks3 = this.f4058a;
c1.b bVar2 = c1.b.INIT_CACHE_SUCCESS_CODE;
initCallbacks3.initSuccessed(bVar2.a(), bVar2.b(), bVar2.c(), bVar2.d(), -1, j4, j5, uptimeMillis);
i5 = 2;
r11 = 0;
g(i4, j4, j5, uptimeMillis);
return;
}
}
c1.a.f1054j0 = false;
initCallbacks = this.f4058a;
c1.b bVar3 = c1.b.ACCOUNT_DISABLED_CODE;
a4 = bVar3.a();
b4 = bVar3.b();
c4 = bVar3.c();
d2 = bVar3.d();
}
i5 = 2;
r11 = 0;
v.c(this.f4060c, c1.f.L, this.f4059b);
g(i4, j4, j5, uptimeMillis);
return;
} catch (Exception e4) {
e = e4;
e.printStackTrace();
Object[] objArr = new Object[i5];
objArr[r11] = "initStart Exception";
objArr[1] = e;
i1.o.e(c1.d.f1116c, objArr);
InitCallbacks initCallbacks4 = this.f4058a;
c1.b bVar4 = c1.b.SDK_EXCEPTION_CODE;
initCallbacks4.initFailed(bVar4.a(), bVar4.b(), bVar4.c(), bVar4.d() + ":initStart--Exception_e=" + e, i4, j4, j5, uptimeMillis);
return;
}
}
initCallbacks = this.f4058a;
c1.b bVar5 = c1.b.APPID_NULL_CODE;
a4 = bVar5.a();
b4 = bVar5.b();
c4 = bVar5.c();
d2 = bVar5.d();
initCallbacks.initFailed(a4, b4, c4, d2, i4, j4, j5, uptimeMillis);
} catch (Exception e5) {
e = e5;
i5 = 2;
r11 = 0;
}
}
public final void g(int i4, long j4, long j5, long j6) {
String str;
i1.o.c(c1.d.f1118e, "getOperatorInfo start");
c1.a.f1064o0.addAll(Arrays.asList(b1.b.f991j, b1.b.f993l, b1.b.f992k, b1.b.f989h));
String g4 = v.g(this.f4060c, c1.f.f1189k, "");
if (i1.e.h(g4)) {
if (v.h(this.f4060c, c1.f.f1186h, false)) {
c1.a.f1064o0.add(0, g4);
} else if (!c1.a.f1064o0.contains(g4)) {
c1.a.f1064o0.add(g4);
}
}
if (c1.a.f1079w0 && !c1.a.f1064o0.contains(b1.b.f990i)) {
c1.a.f1064o0.add(0, b1.b.f990i);
} else if (!c1.a.f1079w0 && !c1.a.f1064o0.contains(b1.b.f990i)) {
c1.a.f1064o0.add(b1.b.f990i);
}
long currentTimeMillis = System.currentTimeMillis();
String a4 = new i1.p().a();
c1.a.Q = (int) (System.currentTimeMillis() - currentTimeMillis);
if (a4 != null) {
c1.e.f1131d = b1.b.f996o + a4 + "" + c1.e.f1129c;
c1.e.f1135f = b1.b.f996o + a4 + "" + c1.e.f1133e;
}
i1.o.c(c1.d.f1118e, "domain name", a4, c1.a.f1064o0);
if (c1.a.f1042d0 == c1.a.f1044e0) {
this.f4063f = g1.g.a().b(this.f4059b, this.f4060c);
str = c1.e.f1131d;
} else {
this.f4063f = g1.g.a().d(this.f4059b, this.f4060c);
str = c1.e.f1135f;
}
this.f4066i = str;
i1.o.c(c1.d.f1118e, "init getOperatorData", this.f4066i.substring(0, 15), Integer.valueOf(this.f4065h));
o(i4, j4, j5, j6);
}
public void h(long j4, long j5) {
a aVar = new a(j4, j5);
if (c1.a.f1082y != c1.a.f1084z.getAndSet(c1.a.f1082y)) {
this.f4062e.execute(aVar);
} else {
i1.o.e(c1.d.f1116c, "Initialization is in progress");
}
}
public void i(Context context, String str) {
ExecutorService executorService = this.f4062e;
if (executorService == null || executorService.isShutdown()) {
this.f4062e = new ThreadPoolExecutor(1, Integer.MAX_VALUE, 120L, TimeUnit.SECONDS, new LinkedBlockingDeque());
}
this.f4059b = str;
this.f4060c = context;
this.f4065h = 0;
d1.c.d(context);
o.b(context);
n.b().g(context, this.f4062e);
m.a().d(context, this.f4062e);
k.b().e(context, str, this.f4062e);
h1.c.b().f(context, str, this.f4062e);
i.c().g(context, str);
q();
i1.f.h(context);
i1.f.i(context);
}
public final void l(String str, String str2) {
Context context;
int i4;
if (!i1.e.h(str) || str.length() < 3) {
v.a(this.f4060c, c1.f.N, c1.c.f1113c);
v.a(this.f4060c, c1.f.O, c1.c.f1113c);
v.a(this.f4060c, c1.f.P, c1.c.f1113c);
} else {
int parseInt = Integer.parseInt(String.valueOf(str.charAt(0)));
int parseInt2 = Integer.parseInt(String.valueOf(str.charAt(1)));
int parseInt3 = Integer.parseInt(String.valueOf(str.charAt(2)));
int e4 = v.e(this.f4060c, c1.f.N, c1.c.f1113c);
int e5 = v.e(this.f4060c, c1.f.O, c1.c.f1113c);
int e6 = v.e(this.f4060c, c1.f.P, c1.c.f1113c);
if (e4 != parseInt || e5 != parseInt2 || e6 != parseInt3) {
f1.f.b().A();
}
v.a(this.f4060c, c1.f.N, parseInt);
v.a(this.f4060c, c1.f.O, parseInt2);
v.a(this.f4060c, c1.f.P, parseInt3);
}
if (!i1.e.h(str2) || str2.length() < 2) {
v.a(this.f4060c, c1.f.G, c1.c.f1112b);
context = this.f4060c;
i4 = c1.c.f1112b;
} else {
int parseInt4 = Integer.parseInt(String.valueOf(str2.charAt(0)));
i4 = Integer.parseInt(String.valueOf(str2.charAt(1)));
int e7 = v.e(this.f4060c, c1.f.G, c1.c.f1112b);
int e8 = v.e(this.f4060c, c1.f.H, c1.c.f1112b);
if (parseInt4 != e7 || i4 != e8) {
f1.f.b().A();
}
v.a(this.f4060c, c1.f.G, parseInt4);
context = this.f4060c;
}
v.a(context, c1.f.H, i4);
}
public void n() {
try {
String g4 = v.g(this.f4060c, c1.f.f1187i, "");
String g5 = v.g(this.f4060c, c1.f.B, "");
i1.o.c(c1.d.f1118e, "start ct init", g4);
if (c1.d.f1114a) {
CtAuth.getInstance().init(this.f4060c, g4, g5, new c());
} else {
CtAuth.getInstance().init(this.f4060c, g4, g5, null);
}
} catch (Throwable th) {
th.printStackTrace();
i1.o.e(c1.d.f1116c, "CtAuth init Exception", th);
}
}
public final void o(int i4, long j4, long j5, long j6) {
g1.b bVar = new g1.b(this.f4066i, this.f4060c);
this.f4064g = bVar;
bVar.e(this.f4063f, new b(i4, j4, j5, j6), Boolean.FALSE, "");
}
public final void q() {
String g4 = v.g(this.f4060c, c1.f.f1184f, "");
if (i1.e.g(g4) || !"2.3.6.4".equals(g4)) {
v.c(this.f4060c, c1.f.f1184f, "2.3.6.4");
f1.f.b().J();
}
}
}