百度手机卫士 v8.1.5版本的 MD5 值为:15af71eae74e2f2b5b9f845fe77a4804

以下内容为反编译后的 pl.java 源代码,内容仅作参考


package dxoptimizer;

import android.content.Context;
import com.baidu.kirin.KirinConfig;
import com.taobao.dp.DeviceSecuritySDK;
import com.taobao.dp.http.IUrlRequestService;
import java.util.HashMap;

public class pl {
    final ph a;
    private int b;
    private String c;
    private String d;
    private String e;
    private pk f;

    public pl(ph phVar, int i, String str, String str2, String str3, pk pkVar) {
        Context context;
        this.a = phVar;
        this.b = i;
        this.e = str3;
        if (sl.a(str)) {
            context = phVar.c;
            this.c = ph.b(context);
        } else {
            this.c = str;
        }
        this.d = str2;
        this.f = pkVar;
    }

    public void a() {
        boolean z;
        String str;
        Context context;
        Context context2;
        Context context3;
        String str2;
        Context context4;
        Context context5;
        boolean z2;
        Context context6;
        z = this.a.f;
        if (z) {
            return;
        }
        this.a.f = true;
        switch (this.b) {
            case 1:
                ox.a = "http://mobilegw.stable.alipay.net/mgw.htm";
                break;
            case 2:
                ox.a = "https://mobilegw.alipay.com/mgw.htm";
                break;
            case 3:
                ox.a = "http://mobilegw-1-64.test.alipay.net/mgw.htm";
                break;
            default:
                ox.a = "https://mobilegw.alipay.com/mgw.htm";
                break;
        }
        try {
            try {
                this.a.e = false;
                int i = this.b;
                int i2 = i != 3 ? i : 1;
                context5 = this.a.c;
                DeviceSecuritySDK.getInstance(context5).initAsync("", i2, (IUrlRequestService) null, new pm(this));
                for (int i3 = KirinConfig.CONNECT_TIME_OUT; !z2 && i3 > 0; i3 -= 10) {
                    Thread.sleep(10L);
                }
                context6 = this.a.c;
                String securityToken = DeviceSecuritySDK.getInstance(context6).getSecurityToken();
                if (!sl.a(securityToken)) {
                    this.a.d = securityToken;
                }
            } catch (Exception e) {
            }
            HashMap hashMap = new HashMap();
            hashMap.put("enable", com.baidu.location.c.d.ai);
            hashMap.put("tid", this.d);
            hashMap.put("utdid", this.c);
            str = this.a.d;
            hashMap.put("umid", str);
            hashMap.put("userId", this.e);
            context = this.a.c;
            po.a(context, hashMap);
            if (this.f != null) {
                pn pnVar = new pn(this.a);
                context2 = this.a.c;
                pnVar.c = om.b(context2);
                context3 = this.a.c;
                pnVar.b = om.a(context3);
                str2 = this.a.d;
                pnVar.a = str2;
                context4 = this.a.c;
                pnVar.d = pg.a(context4);
                this.f.a(pnVar);
            }
            this.a.f = false;
        } catch (Throwable th) {
            this.a.f = false;
            throw th;
        }
    }
}