VegeFruits v7.1版本的 MD5 值为:2ff167dfba698c783e879938fe00b9ce
以下内容为反编译后的 co.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 co {
String a;
private String b;
private SSLSocketFactory c;
private fj d = new fj() {
@Override
public String a() {
return co.this.b;
}
};
private static class a {
static final co a = new co();
}
public static co a() {
return a.a;
}
co() {
}
public synchronized SSLSocketFactory b() {
return this.c;
}
public synchronized boolean c() {
return this.c != null;
}
public synchronized void a(Context context, String str, String str2) {
String str3;
boolean z = true;
synchronized (this) {
if (TextUtils.isEmpty(str2)) {
str3 = "https://certificate.mobile.yandex.net/api/v1/pins";
} else {
str3 = str2 + "/api/v1/pins";
}
if (!TextUtils.isEmpty(str)) {
}
z = false;
if (z) {
this.b = str;
this.a = str3;
fd fdVar = new fd(this.d, true, true);
X509Certificate d = d();
if (d != null) {
ArrayList arrayList = new ArrayList();
arrayList.add(d);
fdVar.a(this.a, arrayList);
try {
this.c = new ez(new ew(context, fdVar)).a().getSocketFactory();
} catch (Exception e) {
}
}
}
}
}
private static X509Certificate d() {
try {
String[] a2 = com.yandex.metrica.impl.ob.a.a();
if (a2 != null && a2.length > 0) {
return ex.a(a2[0]);
}
} catch (Exception e) {
}
return null;
}
}