中建乐购 v3.2.2版本的 MD5 值为:0553721e6bc6ba8dd67004696a555b81

以下内容为反编译后的 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 f4589a;
    private static Object f4590b = new Object();
    private Context f4591c;
    private String f4592d;
    private Thread f4595g;
    private boolean f4593e = false;
    private boolean f4594f = false;
    private LinkedList<b> f4596h = new LinkedList<>();

    public interface InterfaceC0036a {
        void a(c cVar);
    }

    public class b {
        private int f4598b;
        private String f4599c;
        private String f4600d;
        private InterfaceC0036a f4601e;

        public b(int i2, String str, String str2, InterfaceC0036a interfaceC0036a) {
            this.f4598b = i2;
            this.f4599c = str;
            this.f4600d = str2;
            this.f4601e = interfaceC0036a;
        }

        public void a() {
            String str;
            if (a.this.f4594f) {
                return;
            }
            a.this.f4594f = true;
            try {
                a.this.f4593e = false;
                DeviceSecuritySDK.getInstance(a.this.f4591c).initAsync("", this.f4598b, (IUrlRequestService) null, new d(this));
                for (int i2 = 3000; !a.this.f4593e && i2 > 0; i2 -= 10) {
                    Thread.sleep(10L);
                }
                String securityToken = DeviceSecuritySDK.getInstance(a.this.f4591c).getSecurityToken();
                if (!bu.a.a(securityToken)) {
                    a.this.f4592d = securityToken;
                }
                switch (this.f4598b) {
                    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.f4575a = str;
                HashMap hashMap = new HashMap();
                hashMap.put("enable", "1");
                hashMap.put(ca.b.f4809c, this.f4600d);
                hashMap.put(ca.b.f4813g, this.f4599c);
                hashMap.put("umid", a.this.f4592d);
                e.a(a.this.f4591c, hashMap);
                if (this.f4601e != null) {
                    c cVar = new c();
                    cVar.f4604c = bp.a.b(a.this.f4591c);
                    cVar.f4603b = bp.a.a(a.this.f4591c);
                    cVar.f4602a = a.this.f4592d;
                    this.f4601e.a(cVar);
                }
            } catch (Throwable unused) {
            }
            a.this.f4594f = false;
        }
    }

    public class c {
        public String f4602a;
        public String f4603b;
        public String f4604c;

        public c() {
        }
    }

    private a(Context context) {
        this.f4591c = context;
    }

    public static a a(Context context) {
        a aVar;
        synchronized (f4590b) {
            if (f4589a == null) {
                f4589a = new a(context);
            }
            aVar = f4589a;
        }
        return aVar;
    }

    public static Thread b(a aVar) {
        aVar.f4595g = null;
        return null;
    }

    public c a() {
        if (bu.a.a(this.f4592d)) {
            this.f4592d = DeviceSecuritySDK.getInstance(this.f4591c).getSecurityToken();
        }
        c cVar = new c();
        try {
            cVar.f4604c = bp.a.b(this.f4591c);
            cVar.f4603b = bp.a.a(this.f4591c);
            cVar.f4602a = this.f4592d;
        } catch (Throwable unused) {
        }
        return cVar;
    }

    public synchronized void a(int i2, String str, String str2, InterfaceC0036a interfaceC0036a) {
        this.f4596h.addLast(new b(i2, str, str2, interfaceC0036a));
        if (this.f4595g == null) {
            this.f4595g = new Thread(new bv.b(this));
            this.f4595g.setUncaughtExceptionHandler(new bv.c(this));
            this.f4595g.start();
        }
    }
}