Flash Cleaner v1.0.14版本的 MD5 值为:afbed0179616af7c25ad332b251e759c
以下内容为反编译后的 c4.java 源代码,内容仅作参考
package ib;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Pair;
import com.google.android.gms.ads.identifier.AdvertisingIdClient;
import com.google.android.gms.common.internal.Preconditions;
import java.net.MalformedURLException;
import java.net.URL;
import org.litepal.BuildConfig;
public final class c4 implements Runnable {
public final int f10319a;
public final j4 f10320b;
public c4(j4 j4Var, int i10) {
this.f10319a = i10;
this.f10320b = j4Var;
}
@Override
public final void run() {
String str;
Pair pair;
boolean z10;
String str2;
t2 t2Var;
NetworkInfo activeNetworkInfo;
URL url = null;
int i10 = this.f10319a;
j4 j4Var = this.f10320b;
switch (i10) {
case 0:
j4Var.r();
p3 p3Var = (p3) j4Var.f18581b;
c3 c3Var = p3Var.f10651h;
p3.h(c3Var);
boolean b10 = c3Var.f10317s.b();
v2 v2Var = p3Var.f10652i;
if (!b10) {
c3 c3Var2 = p3Var.f10651h;
p3.h(c3Var2);
long a10 = c3Var2.f10318t.a();
p3.h(c3Var2);
c3Var2.f10318t.b(1 + a10);
if (a10 >= 5) {
p3.k(v2Var);
v2Var.f10802j.b("Permanently failed to retrieve Deferred Deep Link. Reached maximum retries.");
p3.h(c3Var2);
c3Var2.f10317s.a(true);
return;
}
o3 o3Var = p3Var.f10653j;
p3.k(o3Var);
o3Var.r();
n4 n4Var = p3Var.f10661r;
p3.k(n4Var);
p3.k(n4Var);
String w10 = p3Var.p().w();
p3.h(c3Var2);
c3Var2.r();
Object obj = c3Var2.f18581b;
p3 p3Var2 = (p3) obj;
long elapsedRealtime = p3Var2.f10657n.elapsedRealtime();
String str3 = c3Var2.f10306h;
if (str3 != null && elapsedRealtime < c3Var2.f10308j) {
pair = new Pair(str3, Boolean.valueOf(c3Var2.f10307i));
} else {
c3Var2.f10308j = p3Var2.f10650g.w(w10, l2.f10494b) + elapsedRealtime;
AdvertisingIdClient.setShouldSkipGmsCoreVersionCheck(true);
try {
AdvertisingIdClient.Info advertisingIdInfo = AdvertisingIdClient.getAdvertisingIdInfo(((p3) obj).f10639a);
c3Var2.f10306h = BuildConfig.FLAVOR;
String id2 = advertisingIdInfo.getId();
if (id2 != null) {
c3Var2.f10306h = id2;
}
c3Var2.f10307i = advertisingIdInfo.isLimitAdTrackingEnabled();
} catch (Exception e10) {
v2 v2Var2 = p3Var2.f10652i;
p3.k(v2Var2);
v2Var2.f10806n.c(e10, "Unable to get advertising id");
c3Var2.f10306h = BuildConfig.FLAVOR;
}
AdvertisingIdClient.setShouldSkipGmsCoreVersionCheck(false);
pair = new Pair(c3Var2.f10306h, Boolean.valueOf(c3Var2.f10307i));
}
Boolean y5 = p3Var.f10650g.y("google_analytics_adid_collection_enabled");
if (y5 != null && !y5.booleanValue()) {
z10 = false;
} else {
z10 = true;
}
if (z10 && !((Boolean) pair.second).booleanValue() && !TextUtils.isEmpty((CharSequence) pair.first)) {
p3.k(n4Var);
n4Var.t();
p3 p3Var3 = (p3) n4Var.f18581b;
ConnectivityManager connectivityManager = (ConnectivityManager) p3Var3.f10639a.getSystemService("connectivity");
if (connectivityManager != null) {
try {
activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
} catch (SecurityException unused) {
}
if (activeNetworkInfo == null && activeNetworkInfo.isConnected()) {
s5 s5Var = p3Var.f10655l;
p3.h(s5Var);
((p3) p3Var.p().f18581b).f10650g.v();
String str4 = (String) pair.first;
long a11 = c3Var2.f10318t.a() - 1;
Object obj2 = s5Var.f18581b;
try {
Preconditions.checkNotEmpty(str4);
Preconditions.checkNotEmpty(w10);
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.t0())), str4, w10, Long.valueOf(a11));
if (w10.equals(((p3) obj2).f10650g.s("debug.deferred.deeplink"))) {
format = format.concat("&ddl_test=1");
}
url = new URL(format);
} catch (IllegalArgumentException | MalformedURLException e11) {
v2 v2Var3 = ((p3) obj2).f10652i;
p3.k(v2Var3);
v2Var3.f10799g.c(e11.getMessage(), "Failed to create BOW URL for Deferred Deep Link. exception");
}
if (url != null) {
p3.k(n4Var);
c9.b bVar = new c9.b(13, p3Var);
n4Var.r();
n4Var.t();
Preconditions.checkNotNull(url);
Preconditions.checkNotNull(bVar);
o3 o3Var2 = p3Var3.f10653j;
p3.k(o3Var2);
o3Var2.y(new k.g(n4Var, w10, url, bVar));
return;
}
return;
}
p3.k(v2Var);
str2 = "Network is not available for Deferred Deep Link request. Skipping";
t2Var = v2Var.f10802j;
}
activeNetworkInfo = null;
if (activeNetworkInfo == null) {
}
p3.k(v2Var);
str2 = "Network is not available for Deferred Deep Link request. Skipping";
t2Var = v2Var.f10802j;
} else {
p3.k(v2Var);
str2 = "ADID unavailable to retrieve Deferred Deep Link. Skipping";
t2Var = v2Var.f10806n;
}
t2Var.b(str2);
return;
}
p3.k(v2Var);
v2Var.f10806n.b("Deferred Deep Link already retrieved. Not fetching again.");
return;
default:
z3 z3Var = j4Var.f10462o;
p3 p3Var4 = z3Var.f10860a;
o3 o3Var3 = p3Var4.f10653j;
p3.k(o3Var3);
o3Var3.r();
if (z3Var.c()) {
boolean d8 = z3Var.d();
j4 j4Var2 = p3Var4.f10659p;
c3 c3Var3 = p3Var4.f10651h;
if (d8) {
p3.h(c3Var3);
c3Var3.T.k(null);
Bundle bundle = new Bundle();
bundle.putString("source", "(not set)");
bundle.putString("medium", "(not set)");
bundle.putString("_cis", "intent");
bundle.putLong("_cc", 1L);
p3.j(j4Var2);
j4Var2.y("auto", "_cmpx", bundle);
} else {
p3.h(c3Var3);
x.j0 j0Var = c3Var3.T;
String j9 = j0Var.j();
if (TextUtils.isEmpty(j9)) {
v2 v2Var4 = p3Var4.f10652i;
p3.k(v2Var4);
v2Var4.f10800h.b("Cache still valid but referrer not found");
} else {
long a12 = ((c3Var3.U.a() / 3600000) - 1) * 3600000;
Uri parse = Uri.parse(j9);
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;
}
p3.j(j4Var2);
j4Var2.y(str, "_cmp", (Bundle) pair2.second);
}
j0Var.k(null);
}
p3.h(c3Var3);
c3Var3.U.b(0L);
return;
}
return;
}
}
}