中建乐购 v3.2.3版本的 MD5 值为:3856d0da11f056931d64951d23a4b3b8
以下内容为反编译后的 a.java 源代码,内容仅作参考
package bv;
import android.content.Context;
import com.taobao.dp.DeviceSecuritySDK;
import com.taobao.dp.http.IUrlRequestService;
import java.util.HashMap;
import java.util.LinkedList;
public class a {
private static a f4592a;
private static Object f4593b = new Object();
private Context f4594c;
private String f4595d;
private Thread f4598g;
private boolean f4596e = false;
private boolean f4597f = false;
private LinkedList<b> f4599h = new LinkedList<>();
public interface InterfaceC0036a {
void a(c cVar);
}
public class b {
private int f4601b;
private String f4602c;
private String f4603d;
private InterfaceC0036a f4604e;
public b(int i2, String str, String str2, InterfaceC0036a interfaceC0036a) {
this.f4601b = i2;
this.f4602c = str;
this.f4603d = str2;
this.f4604e = interfaceC0036a;
}
public void a() {
String str;
if (a.this.f4597f) {
return;
}
a.this.f4597f = true;
try {
a.this.f4596e = false;
DeviceSecuritySDK.getInstance(a.this.f4594c).initAsync("", this.f4601b, (IUrlRequestService) null, new d(this));
for (int i2 = dg.b.f14355c; !a.this.f4596e && i2 > 0; i2 -= 10) {
Thread.sleep(10L);
}
String securityToken = DeviceSecuritySDK.getInstance(a.this.f4594c).getSecurityToken();
if (!bu.a.a(securityToken)) {
a.this.f4595d = securityToken;
}
switch (this.f4601b) {
case 1:
str = "http://aliusergw-1-64.test.alipay.net/mgw.htm";
break;
case 2:
str = "https://aliusergw.alipay.com/mgw.htm";
break;
default:
str = "https://aliusergw.alipay.com/mgw.htm";
break;
}
br.a.f4578a = str;
HashMap hashMap = new HashMap();
hashMap.put("enable", "1");
hashMap.put(ca.b.f4812c, this.f4603d);
hashMap.put(ca.b.f4816g, this.f4602c);
hashMap.put("umid", a.this.f4595d);
e.a(a.this.f4594c, hashMap);
if (this.f4604e != null) {
c cVar = new c();
cVar.f4607c = bp.a.b(a.this.f4594c);
cVar.f4606b = bp.a.a(a.this.f4594c);
cVar.f4605a = a.this.f4595d;
this.f4604e.a(cVar);
}
} catch (Throwable unused) {
}
a.this.f4597f = false;
}
}
public class c {
public String f4605a;
public String f4606b;
public String f4607c;
public c() {
}
}
private a(Context context) {
this.f4594c = context;
}
public static a a(Context context) {
a aVar;
synchronized (f4593b) {
if (f4592a == null) {
f4592a = new a(context);
}
aVar = f4592a;
}
return aVar;
}
public static Thread b(a aVar) {
aVar.f4598g = null;
return null;
}
public c a() {
if (bu.a.a(this.f4595d)) {
this.f4595d = DeviceSecuritySDK.getInstance(this.f4594c).getSecurityToken();
}
c cVar = new c();
try {
cVar.f4607c = bp.a.b(this.f4594c);
cVar.f4606b = bp.a.a(this.f4594c);
cVar.f4605a = this.f4595d;
} catch (Throwable unused) {
}
return cVar;
}
public synchronized void a(int i2, String str, String str2, InterfaceC0036a interfaceC0036a) {
this.f4599h.addLast(new b(i2, str, str2, interfaceC0036a));
if (this.f4598g == null) {
this.f4598g = new Thread(new bv.b(this));
this.f4598g.setUncaughtExceptionHandler(new bv.c(this));
this.f4598g.start();
}
}
}