正在查看: FileWipe Pro v3.0.0 应用的 cl.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: FileWipe Pro v3.0.0 应用的 cl.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.startapp.sdk.internal;
import android.content.Context;
import android.hardware.display.DisplayManager;
import android.os.Build;
import android.webkit.WebSettings;
import android.webkit.WebView;
import com.startapp.sdk.adsbase.remoteconfig.ComponentInfoEventConfig;
import com.startapp.sdk.adsbase.remoteconfig.EnabledConfig;
import com.startapp.sdk.adsbase.remoteconfig.WeightedChoice;
import com.startapp.sdk.adsbase.remoteconfig.WvfMetadata;
import com.startapp.simple.bloomfilter.algo.OpenBitSet;
import com.tradplus.ads.common.serialization.util.IdentityHashMap;
import java.io.IOException;
import java.util.LinkedList;
import java.util.concurrent.Executor;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
public final class cl implements vk {
public final nb a;
public final nb b;
public final nb c;
public final nb d;
public final m7 e;
public final h3 f;
public final Context g;
public final ld.h h;
public final ld.h i;
public final ld.h j;
public final ld.h k;
public final LinkedList l;
public volatile String m;
public boolean n;
static {
Intrinsics.checkNotNullExpressionValue("cl", "getSimpleName(...)");
}
public cl(Context context, nb prefs, nb threadPool, nb uiExecutor, nb looperIdleDetector, m7 metadataHolder, h3 clock) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(prefs, "prefs");
Intrinsics.checkNotNullParameter(threadPool, "threadPool");
Intrinsics.checkNotNullParameter(uiExecutor, "uiExecutor");
Intrinsics.checkNotNullParameter(looperIdleDetector, "looperIdleDetector");
Intrinsics.checkNotNullParameter(metadataHolder, "metadataHolder");
Intrinsics.checkNotNullParameter(clock, "clock");
this.a = prefs;
this.b = threadPool;
this.c = uiExecutor;
this.d = looperIdleDetector;
this.e = metadataHolder;
this.f = clock;
if (Build.VERSION.SDK_INT >= 31 && !c7.a.u(context)) {
context = c7.a.e(context, ((DisplayManager) context.getSystemService(DisplayManager.class)).getDisplay(0));
Intrinsics.c(context);
}
this.g = context;
final int i = 0;
this.h = ld.i.a(new Function0(this) {
public final cl b;
{
this.b = this;
}
@Override
public final Object invoke() {
switch (i) {
case 0:
return cl.b(this.b);
case 1:
return Boolean.valueOf(cl.j(this.b));
case 2:
return cl.c(this.b);
default:
return Long.valueOf(cl.e(this.b));
}
}
});
final int i2 = 1;
this.i = ld.i.a(new Function0(this) {
public final cl b;
{
this.b = this;
}
@Override
public final Object invoke() {
switch (i2) {
case 0:
return cl.b(this.b);
case 1:
return Boolean.valueOf(cl.j(this.b));
case 2:
return cl.c(this.b);
default:
return Long.valueOf(cl.e(this.b));
}
}
});
final int i3 = 2;
this.j = ld.i.a(new Function0(this) {
public final cl b;
{
this.b = this;
}
@Override
public final Object invoke() {
switch (i3) {
case 0:
return cl.b(this.b);
case 1:
return Boolean.valueOf(cl.j(this.b));
case 2:
return cl.c(this.b);
default:
return Long.valueOf(cl.e(this.b));
}
}
});
final int i4 = 3;
this.k = ld.i.a(new Function0(this) {
public final cl b;
{
this.b = this;
}
@Override
public final Object invoke() {
switch (i4) {
case 0:
return cl.b(this.b);
case 1:
return Boolean.valueOf(cl.j(this.b));
case 2:
return cl.c(this.b);
default:
return Long.valueOf(cl.e(this.b));
}
}
});
this.l = new LinkedList();
this.n = true;
}
public static final WvfMetadata b(cl this$0) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
return (WvfMetadata) this$0.e.a();
}
public static final String c(cl this$0) {
WeightedChoice b;
String a;
Intrinsics.checkNotNullParameter(this$0, "this$0");
WvfMetadata wvfMetadata = (WvfMetadata) this$0.h.getValue();
return (wvfMetadata == null || (b = wvfMetadata.b()) == null || (a = b.a()) == null) ? "default" : a;
}
public static final long e(cl this$0) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
WvfMetadata wvfMetadata = (WvfMetadata) this$0.h.getValue();
return Math.min(Math.max(60000L, wvfMetadata != null ? wvfMetadata.d() : 2592000000L), 31536000000L);
}
public static final void g(cl this$0) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
this$0.getClass();
try {
if (this$0.f.a() < ((xf) this$0.a.a()).getLong("06202469550e108e", 0L) + ((Number) this$0.k.getValue()).longValue()) {
String string = ((xf) this$0.a.a()).getString("5b47fb537d32a117", null);
String c = string != null ? xi.c(string) : null;
if (c != null && !StringsKt.B(c)) {
this$0.m = c;
}
}
} catch (Throwable th) {
if (this$0.a(OpenBitSet.PAGE_SIZE)) {
i9.a(th);
}
}
((o8) this$0.c.a()).a.post(new hl(this$0, 1));
}
public static final boolean j(cl this$0) {
EnabledConfig e;
Intrinsics.checkNotNullParameter(this$0, "this$0");
WvfMetadata wvfMetadata = (WvfMetadata) this$0.h.getValue();
if (wvfMetadata == null || (e = wvfMetadata.e()) == null) {
return false;
}
return e.a(this$0.f);
}
public final boolean a(int i) {
ComponentInfoEventConfig a;
WvfMetadata wvfMetadata = (WvfMetadata) this.h.getValue();
if (wvfMetadata == null || (a = wvfMetadata.a()) == null) {
return false;
}
return a.a(i);
}
public final void d() {
try {
if (!this.l.isEmpty()) {
if (!this.n) {
return;
}
String str = this.m;
if (str != null && !StringsKt.B(str)) {
return;
}
}
ic icVar = (ic) this.d.a();
hl hlVar = new hl(this, 5);
synchronized (icVar) {
if (icVar.c != null) {
return;
}
Thread thread = new Thread(new hc(icVar, hlVar), "startapp-lid-" + ic.g.incrementAndGet());
icVar.c = thread;
thread.start();
}
} catch (Throwable th) {
if (a(256)) {
i9.a(th);
}
}
}
public final void f() {
try {
if (this.n) {
String str = this.m;
if (str != null && !StringsKt.B(str)) {
return;
}
this.n = false;
String str2 = (String) this.j.getValue();
if (Intrinsics.a(str2, "default")) {
e();
} else if (Intrinsics.a(str2, "headers")) {
a(c());
}
}
} catch (Throwable th) {
if (a(IdentityHashMap.DEFAULT_SIZE)) {
i9.a(th);
}
}
}
@Override
public final void b() {
throw new UnsupportedOperationException("Method not decompiled: com.startapp.sdk.internal.cl.b():void");
}
@Override
public final String a() {
String str = this.m;
if (str != null) {
if (StringsKt.B(str)) {
str = null;
}
if (str != null) {
return str;
}
}
String property = System.getProperty("http.agent");
if (property == null || StringsKt.B(property)) {
return null;
}
return property;
}
@Override
public final WebView c() {
WebView webView = (WebView) this.l.poll();
if (webView == null) {
webView = new WebView(this.g);
webView.setWebViewClient(new uk());
}
if (((Boolean) this.i.getValue()).booleanValue()) {
d();
}
return webView;
}
public final void e() {
try {
((Executor) this.b.a()).execute(new hl(this, 0));
Unit unit = Unit.a;
} catch (Throwable th) {
if (a(8)) {
i9.a(th);
}
}
}
public final void a(String str) {
if (str != null) {
try {
String g = xi.g(str);
if (g != null) {
wf edit = ((xf) this.a.a()).edit();
edit.a("5b47fb537d32a117", g);
edit.a.putString("5b47fb537d32a117", g);
long a = this.f.a();
edit.a("06202469550e108e", Long.valueOf(a));
edit.a.putLong("06202469550e108e", a);
edit.a.commit();
}
} catch (IOException e) {
if (a(2048)) {
i9.a(e);
}
}
}
}
public static final void b(WebView webView) {
Intrinsics.checkNotNullParameter(webView, "$webView");
webView.loadUrl("http://0.0.0.0");
}
public static final void d(cl clVar) {
clVar.getClass();
try {
String defaultUserAgent = WebSettings.getDefaultUserAgent(clVar.g);
if (defaultUserAgent != null) {
if (!StringsKt.B(defaultUserAgent)) {
clVar.m = defaultUserAgent;
}
clVar.a(defaultUserAgent);
}
} catch (Throwable th) {
if (clVar.a(16)) {
i9.a(th);
}
}
}
public static final void a(cl clVar) {
WebView webView;
clVar.getClass();
try {
if (clVar.l.isEmpty()) {
try {
webView = new WebView(clVar.g);
webView.setWebViewClient(new uk());
} catch (Throwable th) {
if (clVar.a(2)) {
i9.a(th);
}
webView = null;
}
if (webView != null) {
clVar.l.add(webView);
clVar.d();
return;
}
return;
}
clVar.f();
} catch (Throwable th2) {
if (clVar.a(1024)) {
i9.a(th2);
}
}
}
public final void a(WebView webView) {
try {
webView.setWebViewClient(new bl(this));
o8 o8Var = (o8) this.c.a();
o8Var.a.post(new il(webView, 0));
Unit unit = Unit.a;
} catch (Throwable th) {
if (a(32)) {
i9.a(th);
}
}
}
public static final void a(WebView webView, cl this$0) {
Intrinsics.checkNotNullParameter(webView, "$webView");
Intrinsics.checkNotNullParameter(this$0, "this$0");
webView.setWebViewClient(new uk());
this$0.l.add(webView);
}
public final void a(android.webkit.WebView r3, android.webkit.WebResourceRequest r4) {
throw new UnsupportedOperationException("Method not decompiled: com.startapp.sdk.internal.cl.a(android.webkit.WebView, android.webkit.WebResourceRequest):void");
}
}