Banesco VE v1.23.11版本的 MD5 值为:a4aa3f1f54e4fbb4921e2e1235e636aa
以下内容为反编译后的 a4.java 源代码,内容仅作参考
package t4;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Bundle;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.Pair;
import java.net.MalformedURLException;
import java.net.URL;
public final class a4 implements Runnable {
public final int f10469k;
public final h4 f10470l;
public a4(h4 h4Var, int i10) {
this.f10469k = i10;
this.f10470l = h4Var;
}
@Override
public final void run() {
String str;
Pair pair;
boolean z6;
NetworkInfo activeNetworkInfo;
URL url;
int i10 = this.f10469k;
h4 h4Var = this.f10470l;
switch (i10) {
case 0:
h4Var.o();
q3 q3Var = (q3) h4Var.f6242k;
d3 d3Var = q3Var.f10878r;
q3.i(d3Var);
boolean b10 = d3Var.B.b();
u2 u2Var = q3Var.f10879s;
if (!b10) {
d3 d3Var2 = q3Var.f10878r;
q3.i(d3Var2);
long a8 = d3Var2.C.a();
q3.i(d3Var2);
d3Var2.C.b(1 + a8);
if (a8 >= 5) {
q3.k(u2Var);
u2Var.f10950s.a("Permanently failed to retrieve Deferred Deep Link. Reached maximum retries.");
q3.i(d3Var2);
d3Var2.B.a(true);
return;
}
o3 o3Var = q3Var.f10880t;
q3.k(o3Var);
o3Var.o();
l4 l4Var = q3Var.B;
q3.k(l4Var);
q3.k(l4Var);
String u10 = q3Var.p().u();
q3.i(d3Var2);
d3Var2.o();
Object obj = d3Var2.f6242k;
q3 q3Var2 = (q3) obj;
q3Var2.f10884x.getClass();
long elapsedRealtime = SystemClock.elapsedRealtime();
String str2 = d3Var2.f10548q;
if (str2 != null && elapsedRealtime < d3Var2.f10550s) {
pair = new Pair(str2, Boolean.valueOf(d3Var2.f10549r));
} else {
d3Var2.f10550s = q3Var2.f10877q.v(u10, k2.f10685b) + elapsedRealtime;
try {
k1.y a10 = r3.a.a(((q3) obj).f10871k);
d3Var2.f10548q = "";
String str3 = a10.f7060b;
if (str3 != null) {
d3Var2.f10548q = str3;
}
d3Var2.f10549r = a10.f7061c;
} catch (Exception e10) {
u2 u2Var2 = q3Var2.f10879s;
q3.k(u2Var2);
u2Var2.f10954w.b(e10, "Unable to get advertising id");
d3Var2.f10548q = "";
}
pair = new Pair(d3Var2.f10548q, Boolean.valueOf(d3Var2.f10549r));
}
Boolean x6 = q3Var.f10877q.x("google_analytics_adid_collection_enabled");
if (x6 != null && !x6.booleanValue()) {
z6 = false;
} else {
z6 = true;
}
if (z6 && !((Boolean) pair.second).booleanValue() && !TextUtils.isEmpty((CharSequence) pair.first)) {
q3.k(l4Var);
l4Var.q();
q3 q3Var3 = (q3) l4Var.f6242k;
ConnectivityManager connectivityManager = (ConnectivityManager) q3Var3.f10871k.getSystemService("connectivity");
if (connectivityManager != null) {
try {
activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
} catch (SecurityException unused) {
}
if (activeNetworkInfo == null && activeNetworkInfo.isConnected()) {
s5 s5Var = q3Var.f10882v;
q3.i(s5Var);
((q3) q3Var.p().f6242k).f10877q.u();
String str4 = (String) pair.first;
long a11 = d3Var2.C.a() - 1;
Object obj2 = s5Var.f6242k;
try {
com.bumptech.glide.e.k(str4);
com.bumptech.glide.e.k(u10);
String format = String.format("https://www.googleadservices.com/pagead/conversion/app/deeplink?id_type=adid&sdk_version=%s&rdid=%s&bundleid=%s&retry=%s", String.format("v%s.%s", 74029L, Integer.valueOf(s5Var.q0())), str4, u10, Long.valueOf(a11));
if (u10.equals(((q3) obj2).f10877q.p("debug.deferred.deeplink"))) {
format = format.concat("&ddl_test=1");
}
url = new URL(format);
} catch (IllegalArgumentException | MalformedURLException e11) {
u2 u2Var3 = ((q3) obj2).f10879s;
q3.k(u2Var3);
u2Var3.f10947p.b(e11.getMessage(), "Failed to create BOW URL for Deferred Deep Link. exception");
url = null;
}
if (url != null) {
q3.k(l4Var);
p3 p3Var = new p3(q3Var);
l4Var.o();
l4Var.q();
o3 o3Var2 = q3Var3.f10880t;
q3.k(o3Var2);
o3Var2.w(new h.g(l4Var, u10, url, p3Var));
return;
}
return;
}
q3.k(u2Var);
u2Var.f10950s.a("Network is not available for Deferred Deep Link request. Skipping");
return;
}
activeNetworkInfo = null;
if (activeNetworkInfo == null) {
}
q3.k(u2Var);
u2Var.f10950s.a("Network is not available for Deferred Deep Link request. Skipping");
return;
}
q3.k(u2Var);
u2Var.f10954w.a("ADID unavailable to retrieve Deferred Deep Link. Skipping");
return;
}
q3.k(u2Var);
u2Var.f10954w.a("Deferred Deep Link already retrieved. Not fetching again.");
return;
default:
p3 p3Var2 = h4Var.f10638x;
q3 q3Var4 = p3Var2.f10844a;
o3 o3Var3 = q3Var4.f10880t;
q3.k(o3Var3);
o3Var3.o();
if (p3Var2.c()) {
boolean d10 = p3Var2.d();
h4 h4Var2 = q3Var4.f10886z;
d3 d3Var3 = q3Var4.f10878r;
if (d10) {
q3.i(d3Var3);
d3Var3.E.i(null);
Bundle bundle = new Bundle();
bundle.putString("source", "(not set)");
bundle.putString("medium", "(not set)");
bundle.putString("_cis", "intent");
bundle.putLong("_cc", 1L);
q3.j(h4Var2);
h4Var2.w("auto", "_cmpx", bundle);
} else {
q3.i(d3Var3);
d2.p pVar = d3Var3.E;
String h10 = pVar.h();
if (TextUtils.isEmpty(h10)) {
u2 u2Var4 = q3Var4.f10879s;
q3.k(u2Var4);
u2Var4.f10948q.a("Cache still valid but referrer not found");
} else {
long a12 = ((d3Var3.F.a() / 3600000) - 1) * 3600000;
Uri parse = Uri.parse(h10);
Bundle bundle2 = new Bundle();
Pair pair2 = new Pair(parse.getPath(), bundle2);
for (String str5 : parse.getQueryParameterNames()) {
bundle2.putString(str5, parse.getQueryParameter(str5));
}
((Bundle) pair2.second).putLong("_cc", a12);
Object obj3 = pair2.first;
if (obj3 == null) {
str = "app";
} else {
str = (String) obj3;
}
q3.j(h4Var2);
h4Var2.w(str, "_cmp", (Bundle) pair2.second);
}
pVar.i(null);
}
q3.i(d3Var3);
d3Var3.F.b(0L);
return;
}
return;
}
}
}