Wolves Themes v1.0版本的 MD5 值为:cddc92b47f6b7c4a195c9625507eb51c

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


package com.yandex.metrica.impl.ob;

import android.content.Context;
import android.text.TextUtils;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import javax.net.ssl.SSLSocketFactory;
public class eq {
    String a;
    private String b;
    private SSLSocketFactory c;
    private hm d = new hm() {
        @Override
        public String a() {
            return eq.this.b;
        }
    };

    private static class a {
        static final eq a = new eq();
    }

    public static eq a() {
        return a.a;
    }

    eq() {
    }

    public synchronized SSLSocketFactory b() {
        return this.c;
    }

    public synchronized boolean c() {
        return this.c != null;
    }

    private static X509Certificate d() {
        try {
            String[] a2 = com.yandex.metrica.impl.ob.a.a();
            if (a2 == null || a2.length <= 0) {
                return null;
            }
            return ha.a(a2[0]);
        } catch (Exception unused) {
            return null;
        }
    }

    public synchronized void a(Context context, String str, String str2) {
        String str3;
        if (TextUtils.isEmpty(str2)) {
            str3 = "https://certificate.mobile.yandex.net/api/v1/pins";
        } else {
            str3 = str2 + "/api/v1/pins";
        }
        if (!(c() && str3.equals(this.a))) {
            this.b = str;
            this.a = str3;
            hg hgVar = new hg(this.d, true, true);
            X509Certificate d = d();
            if (d != null) {
                ArrayList arrayList = new ArrayList();
                arrayList.add(d);
                hgVar.a(this.a, arrayList);
                try {
                    this.c = new hc(new gz(context, hgVar)).a().getSocketFactory();
                } catch (Exception unused) {
                }
            }
        }
    }
}